Forums

Sidebar list is all wrong in Internet Explorer. (5 posts)

  1. AshleyxCore
    Member
    Posted 2 years ago #

    The theme I'm making validates, but I'm having problems with my sidebar lists' padding in Internet Explorer. I gave the links in my list 13px of padding on the left, but it shows up more like 26px of padding in IE. I have see the fix to add margin:0 and padding:0 to the entire stylesheet, but there must be a better way, right?

    Here are screenshots of the lists in IE and in Firefox.

    Can someone take a look at my site or my stylesheet and give me some advice? I'd be very grateful for your help! :)

  2. AshleyxCore
    Member
    Posted 2 years ago #

    Anyone think they could help me out with this?
    Thanks in advance! :]

  3. saphod
    Member
    Posted 2 years ago #

    Well, looks like the good ol' box-model problem to me:
    http://webdesign.about.com/od/css/a/aaboxmodelhack.htm

  4. AshleyxCore
    Member
    Posted 2 years ago #

    Could you explain this to me? I read the page you linked, but looking at my css, I don't have a width defined for my lists, just the sidebar itself, so I don't see how I can use that fix. And the "about", "recent comments", "recent posts", etc all show up correctly. It's only the links in li tags that are pushed so far right, the rest of the sidebar is fine.

    I think I'm missing something, could you elaborate? Thanks so much in advance :)

  5. Root
    Member
    Posted 2 years ago #

    Its to do with the padding and margins on ul li. Remember they cascade down to ul li ul li. HTH.

Topic Closed

This topic has been closed to new replies.

About this Topic