• Hi everyone,

    I’m being driven mad by an unusual (at least to me) CSS problem.

    I’m building a site at http://www.uniglobethetraveltimes.com/wordpress/ using a custom template. I am trying to eliminate the 28px margin at the top of the page.

    What is unusual is that the top margin is being set by some CSS code that WordPress is somehow inserting in to each page:


    <style type="text/css">
    html { margin-top: 28px !important; }
    * html body { margin-top: 28px !important; }
    </style>

    This CSS code is not present in any of my theme files. I believe that my my <head> and <html> are styled correctly. I considered the possibility that this code was present in a CSS file used by one of my plugins, but I shut them all off and emptied my cache to no avail.

    This top margin only appears in Firefox 4. It does not show up in Chrome, Safari or older versions of Firefox that I have tried. Even more frustrating, because of “|important” I can’t override it.

    Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • This code is being added by the Admin Bar.

    Be sure you have added the <?php wp_footer(); ?> tag, immediately before the closing </body> tag in your footer.php or whatever appropriate template file.

    Thread Starter BuckBeaver

    (@buckbeaver)

    Thanks, it had been accidentally deleted from footer.php.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Inserting CSS Styles Not Found in my Theme’ is closed to new replies.