Re: adding a class to the body tab -
04-02-2009
, 02:06 PM
[Q]I am learning css with dreamweaver cs3, there is an example in the book
where some links are going to have an arrow if you are in certain page, for
this you put a class in the body tag: <body class=" visiting">, my question is:
how can you do that and if you can do that while you are working with
templates.[/Q]
Firstly, you should build your template as if it were an ordinary webpage with
special features.
Secondly, your <body> tag contains a class attribute that refers to a CSS rule
called .visiting.
If it is written properly, this rule will be located either in the <head> tag
of your document, or in an attached CSS file. If it is located in the <head>
tag of your document, then you will find it contained in a <style> tag with a
type attribute whose value is "text/css".
Roddy :smile; |