Daybreak_0
11-14-2003, 03:35 PM
In my stylesheet I have defined UL and LI
Below that I have defined a class say .classUL and .classLI
In my html I have the following
<ul class="classUL">
<li class="classLI">text</li>
<li class="classLI">text</li>
<li class="classLI">text</li>
</ul>
I have searched but can't seem to find anything on this but -
Why do my UL and LI definitions overide the class definition.
I originally had a div surrounding the list and had the following defined
.surroundingdiv UL { }and also
.surroundingdiv UL LI { }
but again the original definitions for UL and LI kept overiding the other definitions.
Do I have to forgo defining a default UL and LI? as I am inheriting styles I do not want
Regards
Day
Below that I have defined a class say .classUL and .classLI
In my html I have the following
<ul class="classUL">
<li class="classLI">text</li>
<li class="classLI">text</li>
<li class="classLI">text</li>
</ul>
I have searched but can't seem to find anything on this but -
Why do my UL and LI definitions overide the class definition.
I originally had a div surrounding the list and had the following defined
.surroundingdiv UL { }and also
.surroundingdiv UL LI { }
but again the original definitions for UL and LI kept overiding the other definitions.
Do I have to forgo defining a default UL and LI? as I am inheriting styles I do not want
Regards
Day