9 comments | Posted: 29 November 05 in Books, by Nathan Smith
a:hover handles it better and with less code.
This book relates to the reader in a manner that assumes a shared basic knowledge of XHTML and CSS. It is full of examples of selecting nodes via the
getElementByTagName() method, not unlike the way CSS interacts with the DOM. By using CSS, every
H1 in a document can be given a certain style.
class name to them, and control the styles via CSS, the way you normally would.
He also shows how to impliment current-page indicators in a navigation system, but conceeds that things like this are better handled with server-side scripting. It is refereshing to see an author who is humble about his area of expertise, presenting it as a piece of a larger system, and showing areas in which it might not be the best fit for the task at hand.
Discuss This Topic
Comments closed after 2 weeks.