what does this do?

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Can someone tell me what this script does? I have replaced the <> with **

*style*
*!-- .navigation { }--*
*/style*

Thanks,
DM

Suzanne's picture

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?

Smiling Suzanne

sersun's picture

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's picture

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.