SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: text to tabs in nav

  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,484
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    text to tabs in nav

    Im trying to make the text links in the navbar,
    http://www.urturt.com/
    to be images, what part of the css to I need to modify for this to happen, so far I tried

    div.nav {
    height: 45px;
    }
    .header .nav li a{
    text-decoration: none;
    font-size:20px;
    font-weight:300;
    text-indent:-999px
    }

    .nav li.page-item-896 a {
    background-image:url(images/nav_shop.png);
    width:100px;
    }
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,983
    Mentioned
    217 Post(s)
    Tagged
    2 Thread(s)
    Honestly, I'd leave it as it is. Text is much more accessible that images.

    Anyhow, if you must have images, you can just put the images in the HTML. BUT ... that's not good on lots of levels, as it means the fallback text won't show if images are off, and you won't have hover effects etc.

    The best method currently is to leave the text where it is (so that it appears if images are off) and place the images over the top of the the text, as shown here:

    http://www.pmob.co.uk/temp/headerreplacement3.htm

  3. #3
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,484
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    thanks
    "Oh, and Jenkins--apparently your mother died this morning."

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
  •