The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS What is this extra margin in theme?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #28315

    I’ve designed a theme, here’s the screenshot:
    Now, I want to convert it to a WP theme, The code [html/css] does not change, but I get this:
    Notice the margin in body element. And Firebug isn’t helping.

    Here’s the actuall theme, (It’s not complete yet, but) just in case.


    Thanks. I used a slightly modified version of Chris’s BLANK theme. It’s really a weird problem, and I have this in my other themes as well and I fixed by using Negative Margins.
    Any help will be appreciated.


    Hi guys,

    If I can attach a file, then here it is. The theme, all fixed. No extra margin at the top. At least on my end :)

    Hope this helps and works on your end just as well. Just replace the one I’m attaching with the one you got. Or mainly just the header.php file. :)

    Thank you,



    Thanks! It works.
    The problem was that header.php file is encoded in UTF-8. Converting it to ASCII fixed it.
    It’s really weird. :geek:

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.