Forums > Web Design

I followed this tutorial http://www.creativepro.com/article/view-source-advanced-css-rollovers and went a step further to do the advanced, all images in one file approach however I cannot figure out how to set the "you are here" button state. I've assigned an id to each page's body tag. I can even get the button to reflect the active image as long as I hold down the button but as soon as I release it, it returns to the default state. Any ideas how to fix this?

Thank you.

1

Katherine, If you add an ID

Katherine,

If you add an ID to the body--a different ID for each section of the site--then you can create a third style for the "you are here" link. For example, if you add the ID "homePage" to the body tag, you could then create a new style like this:
#homePage #navbar #home and then adjust the background image placement settings to reposition the image for the "you are here" graphic to appear. Because this style will only apply when the body of the page has the ID homePage it won't apply to a page in the "services" section which would have a different ID (for example "servicesPage". Hope that helps

--dave mcfarland
#home #

Post a Comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <div> <br> <center> <img> <h2>
  • Lines and paragraphs break automatically.
  • Use <!--pagebreak--> to create page breaks.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.