Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Use node # as CSS class names?

by adrianh (Chancellor)
on Dec 30, 2002 at 14:14 UTC ( [id://223031]=note: print w/replies, xml ) Need Help??


in reply to Use node # as CSS class names?

2. Add a <div></div> with a class of the current pages node number (again prefixed by "node") around each page.

Now I'm awake again, I've realised that it would be better to add an id attribute to the <body> tag, rather than adding a separate <div>. Something like:

<body id="www-perlmonks-org 1234">

Where 1234 is the node number of the page in question.

This kind of thing has become known as a CSS signature and allows you to do funky things with user-style sheets. See this css-discuss thread for more info.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://223031]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found