Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- CSS Beveled Button Effect


keimano_tokoyami - 7:31 am on May 16, 2003 (gmt 0)


Hi pageoneresults,

"Do I assign the ids to each a href?"

Yes, you would need unique id's for each button (a href) you want to have the active state applied to.

"And then place the appropriate id in the body tag for that page?"

No. Each page that corresponds to a button that you want to be affected would have its own id. For example, let's assume that your "cfp" link is the link for your homepage. Here's what you could have:

HTML of homepage document:

<body id="homepage"> <-- you assign an id for the page

CSS:

#homepage a#cfp {styles} <-- then you do something like this

This would work in an included file as well since each link will have its own unique id and each body tag of a web page, you want affected, would have its own unique id.

It may sound like a lot of code, but if the button active effect is the same across multiple links, you can list the selectors comma-like (what's the proper term?).

Example:
#homepage a#cfp, #about a#cmt {styles}

If you haven't already, feel free to download the example files (the link in my previous post) and hack them.

hth,
KT


Thread source:: http://www.webmasterworld.com/css/1025.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com