D
Damien Sawyer
Hi,
I'm trying to learn CSS.
I found a site saying that you set up a 'class' like this
..MyClass
{
background-color: #468;
}
And that you can use the class in the actual document by using the class
keyword
<p class="menu">
Can someone please explain what the # is for? Are these like classes? What
are they called? They seem to me to do the same thing. Is there a
difference?
eg
#links
{
background-color: #468;
}
#links a
{
font-size: xx-large;
}
And then in to use them, use "ID" instead of "CLASS"
eg
<div id="links">
Thanks in advance
Damien Sawyer
I'm trying to learn CSS.
I found a site saying that you set up a 'class' like this
..MyClass
{
background-color: #468;
}
And that you can use the class in the actual document by using the class
keyword
<p class="menu">
Can someone please explain what the # is for? Are these like classes? What
are they called? They seem to me to do the same thing. Is there a
difference?
eg
#links
{
background-color: #468;
}
#links a
{
font-size: xx-large;
}
And then in to use them, use "ID" instead of "CLASS"
eg
<div id="links">
Thanks in advance
Damien Sawyer