what does this do?
Can someone tell me what this script does? I have replaced the <> with **
*style*
*!-- .navigation { }--*
*/style*
Thanks,
DM
Can someone tell me what this script does? I have replaced the <> with **
*style*
*!-- .navigation { }--*
*/style*
Thanks,
DM
Suzanne posted this at 07:55 — 20th August 2001.
She has: 5,507 posts
Joined: Feb 2000
Ideally there would be something in between the curly braces, but that's called CSS. Also it should have style="text/css" in the tag, too.
Why do you ask?
Suzanne
sersun posted this at 08:05 — 20th August 2001.
They have: 32 posts
Joined: Aug 2001
This is a style sheet.
The *!-- and --* prevent non CSS-enabled browsers from trying to parse the stylesheet.
The ".navigation" is a class selector. You can use class selectors to more than one style for a single HTML element, such as the DIV tag.
This style sheet doesn't do anything because there are no style definitions between the "{}". If you put "color : red;" in there, you'd have a style to work with, but only if you put "class=navigation" in an HTML element, such as: *P class=navigation*
sersun
disaster-master posted this at 08:47 — 20th August 2001.
She has: 2,154 posts
Joined: May 2001
I saw in while doing a view source on a web site and just wondered what the heck it could be.
thanks!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.