The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

lend me your eyes (solved)

  • # December 8, 2008 at 4:01 am

    can someone please review the following code for me. basicly im using the fix chris mentioned in this video [url]

    everything works fine, except that its only working for 2 of my pages. im guessing that i may have typed something wrong someone. this is what ive added to my css file

    body#photos ul.nav a {
    background: url(images/navphotos.jpg) bottom no-repeat;

    body#news ul.nav a {
    background: url(images/navnews.jpg) bottom no-repeat;

    body#about ul.nav li.about a {
    background: url(images/navabout.jpg) bottom no-repeat;

    body#contact ul.nav a {
    background: url(images/navcontact.jpg) bottom no-repeat;

    this is the code that i used from the video…


    < ?php $page = $_SERVER['REQUEST_URI']; $page = str_replace("/","",$page); $page = str_replace(".php","",$page); $page = str_replace("?s=","",$page); $page = $page ? $page : 'default' ?>


    again, the first two pages are working fine, its just the about page and the contact page to which are not taking on the active state. do anyone see anything that i may have mistyped, particularly in the first bit of code??

    one more detail which i just discovered. everything is working in FF, it appears that only the 2 of the states are working in IE. weird

    folks i tellya, i sat up here and trouble shooted this thing for at least an hour before i decide to ask for help to no avail. then all of a sudden will checked to see if anyone responded, i checked IE and its working. man does it normally take so long for changes to take effect in IE? it usually doesnt for me. anyhow its working. maybe next time i need to delete the history or something?

    # December 8, 2008 at 11:38 pm

    Hi Dave, it was probably a caching problem.

    Ctrl+F5 (Hard Refresh) usually takes care of this problem

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed