Topic: CSS has large space in Wordpress

Mackenzie priority asked 3 years ago

Expected behavior*_I load my dependencies in functions.php and everything looks gorgeous._*Actual behavior*_everything has a big space on top._*Resources (screenshots, code snippets etc.){enter image description here

function theme_enqueue_scripts() {

wp_enqueue_style( 'css', get_template_directory_uri() . '/mdb.min.css' );

       wp_enqueue_script( 'MDB', get_template_directory_uri() . '/mdb.min.js', array(), '', true );


add_action( 'wp_enqueue_scripts', 'theme_enqueue_scripts' );

Grzegorz Bujański staff commented 3 years ago

It's hard to say what causes this error. Can you inspect this element and see what adds such large spaces? Maybe you are able to provide a link to the page where it will be visible? Have you added other CSS libraries or your own styles?

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: PC
  • Browser: Firefox
  • OS: Win10
  • Provided sample code: No
  • Provided link: No