SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot JZ Design's Avatar
    Join Date
    Jun 2009
    Location
    Midwest U.S.
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Image Replacement

    I'm currently re-designing my site, and i want to put a horizontal navigation menu in the header.

    I know that it's best practice to put navigation in a list. And I also want to use CSS sprites and CSS image replacement for the navigation menu icons.

    But when I use display:block to get rid of the text with text-indent:-9999px, it overwrites the display:inline that makes the menu horizontal.

    What's the solution?

  2. #2
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    You can float your li elements.
    Maleika E. A. | Rockatee | Twitter | Dribbble



  3. #3
    SitePoint Zealot JZ Design's Avatar
    Join Date
    Jun 2009
    Location
    Midwest U.S.
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha, i feel dumb, thank you.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •