Forums

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
    Posts
  • #28315
    shazdeh
    Member

    I’ve designed a theme, here’s the screenshot:
    [img]http://www.roboimages.com/thumb/ri54480/2.jpg[/img]
    Now, I want to convert it to a WP theme, The code [html/css] does not change, but I get this:
    [img]http://www.roboimages.com/thumb/ri54478/1.jpg[/img]
    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.

    #72308
    shazdeh
    Member

    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.

    #72314
    xhtmlit
    Member

    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,

    AJ

    #72325
    shazdeh
    Member

    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.