Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Active Link or On Page identification, highlight menu


coopster - 7:28 pm on Apr 26, 2008 (gmt 0)


yes you can coop, but with an id on the body element

Oh, trust me, I do indeed understand what you are saying here! That is why I clarified my statement by including the comment ...

What I mean is, if the only reason you have an id on the body element is to "match it up" with the navigational anchors to change link status you can remove the id on the <body> element

My emphasis added

Also, I know exactly what you are referring to when you say ...

that's not something that most scripters would think about when building a template.

But, but, but ... I'm not "most scripters" ;)
I won't try to kid you and tell you I didn't make a few mistakes on my first go round with my PHP markup class. You know me, I'm not a designer. I can make do in a pinch but I have always been the first to admit it just isn't my forte. Realizing this, quite a few years ago I developed a very dynamic markup class in PHP which today extends full control to the designer. Zero limitations. The designer develops the template and is in complete control of the HTML and CSS (and client-side scripting), including the header (DOCTYPE, language, charset, title, metas, style, scripting, etc.) navigation, body and footer. Yet behind the scenes the repetitive code is fully automated by server-side technology and the designer is relieved of the extra effort that was often required.

so add in the basic CSS ID hook at the beginning

That, my friend, is completely controlled by the designer :)
No PHP required. Slick. Now we just work on automating more tasks, like rotating entire CSS files or adding markup based on date/time or other agents of change.


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