craigsman
09-16-2005, 11:27 PM
Hi all,
Just wondering how I create child css formatting. Not sure if my jargen is right so here is my code:
.productsnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: xx-small;
font-weight: bold;
color: #333333;
text-decoration: none;
}
.navbar {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small;
font-weight: bold;
color: #333333;
text-decoration: none;
}
{
I want to be able to add another instance on to these. i.e a hover formatting for navbar, but also a different hover instance for productsnav
I have tried things like .navbar:hover with no luck.
The following formating is what i am after:
[NAVBAR - HOVER]
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small;
font-weight: bold;
color: #FFFFFF;
text-decoration: underline;
}
[PRODUCTSNAV - HOVER]
{
text-decoration: underline;
color: #FFFFFF;
font-weight: bold ;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: xx-small;
}
Thanks everyone :)
Just wondering how I create child css formatting. Not sure if my jargen is right so here is my code:
.productsnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: xx-small;
font-weight: bold;
color: #333333;
text-decoration: none;
}
.navbar {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small;
font-weight: bold;
color: #333333;
text-decoration: none;
}
{
I want to be able to add another instance on to these. i.e a hover formatting for navbar, but also a different hover instance for productsnav
I have tried things like .navbar:hover with no luck.
The following formating is what i am after:
[NAVBAR - HOVER]
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small;
font-weight: bold;
color: #FFFFFF;
text-decoration: underline;
}
[PRODUCTSNAV - HOVER]
{
text-decoration: underline;
color: #FFFFFF;
font-weight: bold ;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: xx-small;
}
Thanks everyone :)