WordPress.org

Ready to get started?Download WordPress

Forums

Getting rid of an ugly white line (12 posts)

  1. Ronin
    Member
    Posted 7 years ago #

    http://www.thepokerbiz.com/wordpress

    There are two areas in which a thin white line appears. Underneath the date of the sample post and under each menu item. How do I get rid of this?

    Thank you

  2. Ronin
    Member
    Posted 7 years ago #

    Anybody?

  3. rossz
    Member
    Posted 7 years ago #

    The lines are specified in the style sheet. The line under the date is from the "border-bottom" in the .time style. Not sure where the lines for then menu items are specified. Poke around.

  4. Ronin
    Member
    Posted 7 years ago #

    Okay, thanks. Got rid of that one line. And I think I've found the code that impacts the lines under the menu items, but when I change it to "hidden" or "0px 0px 0px 0px" the spacing between each item goes haywire. Here's the code:

    .navi li {
    border: solid;
    border-width: 0px 0px 1px 0px;
    margin-bottom: 0px;
    }

    That 1px is the line, but if I do anything to that border it really makes the menu items spacing look terrible. Any ideas?

  5. rossz
    Member
    Posted 7 years ago #

    Try setting the border-color to the same as the background.

  6. Ronin
    Member
    Posted 7 years ago #

    Thanks. Tried it and it does the same thing to the spacing that making it hidden or 0px does. Any other ideas I can try?

  7. rossz
    Member
    Posted 7 years ago #

    The layout problem does not occur in Firefox, only IE, which suggests it's an IE bug (big surprise). Notice the spacing between "Register" and "Login" is tighter than the others? Those two li tags are on a single line. A browser is supposed to ignore whitespace (which includes line breaks), but I know of a line-break bug in IE than can screw things up.

    This probably won't fix it, but see what happens when you remove "line-height: 12px;" from the style for div.navi.

  8. rossz
    Member
    Posted 7 years ago #

    BTW, don't forget to hold the shift key and click the page reload button to force IE to redraw the page from scratch, otherwise your changes won't get updated.

  9. Ronin
    Member
    Posted 7 years ago #

    Actually, looking at the code, Register doesn't have an Li tag, but I'm a newb and might be way off on this. So register doesn't have li around it and the spacing is fine.

    What does this mean? How can I correct this?

  10. rossz
    Member
    Posted 7 years ago #

    I looked at it, Register does have the li tag.

    I think one of the problems is the theme you started with looks like an "old-style" one designed for wordpress 1.x. You might be better off starting over with a more modern theme.

    A good place to look is http://themes.wordpress.net/

  11. Ronin
    Member
    Posted 7 years ago #

  12. vkaryl
    Member
    Posted 7 years ago #

    I think "register" is part of the meta stuff, which gets li tags thrown from core....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.