Kerry Kobashi wrote:
> Is the use of classes and id together well supported in browsers today?
>
> Any thing to be aware of that will end up in gotchas later on through its
> use?
There are two possible gotchas in IE6.
Ingo
http://www.w3.org/TR/html4/strict.dtd";>
gotchas with class-class o
Kerry Kobashi wrote:
Is the use of classes and id together well supported in browsers today?
Any thing to be aware of that will end up in gotchas later on through its
use?
Hi Kerry,
there is no problem using classes and id's together just remeber that an
id may only be used once in a document
> Doing this presupposes that you will only have one blue item and one red
> item on a page. What if you want to create anything else on the page with a
> blue background? I would keep them all classes and use the structure below
>
> .box {border: 1px solid black; }
> .blue{background-color: blu
Hi Kerry,
Doing this presupposes that you will only have one blue item and one red
item on a page. What if you want to create anything else on the page with a
blue background? I would keep them all classes and use the structure below
.box {border: 1px solid black; }
.blue{background-color: blu
Is the use of classes and id together well supported in browsers today?
Any thing to be aware of that will end up in gotchas later on through its
use?
For example:
.box
{
border: 1px solid black;
}
#blue
{
background-color: blue;
}
#red
{
background-color: red;
}