zedan85
08-11-2011, 12:06 AM
Hi i am being confused with this css code which i came across
ul.errorlist { background-color: blue;............;}
.errorlist li {background-color: red;...;}
I get the first line which means that errorlist is the classname and ul is the tag
so in order to use those properties i would so something like this
<ul class="errorlist">This will have a background blue colour </ul>
What i dont understand is the second statement
.errorlist li {background-color: red;...;}
What does that mean it doesnt have a tag in front of it and its just a .classname ? how would you go about using its properties ??? Any explaination would be appreciated...
ul.errorlist { background-color: blue;............;}
.errorlist li {background-color: red;...;}
I get the first line which means that errorlist is the classname and ul is the tag
so in order to use those properties i would so something like this
<ul class="errorlist">This will have a background blue colour </ul>
What i dont understand is the second statement
.errorlist li {background-color: red;...;}
What does that mean it doesnt have a tag in front of it and its just a .classname ? how would you go about using its properties ??? Any explaination would be appreciated...