Gang,
I am trying to create/update webpages using CSS and modern
programming (getting away from using tables to place text and
objects). I am running into an issue using ul's. I will give you the
code below:
<ul class="liCol1">
<li>Vendor name</li>
<li>Address</li>
<li>City St, Zip</li>
<li>Phone number</li>
<li class="liSpacer "> </li>
<li>Data directory</li>
<li>Temp directory</li>
<li class="liSpacer "> </li>
<li>DSA keys</li>
</ul>
and here is the css from an external file:
..ulCol1 {
list-style: none;
text-decoration: none;
margin: 0px;
padding: 0px;
}
..liCol1 li {
margin: 4 0 0 0;
height: 17px;
}
..liSpacer {
margin: 0px;
padding: 0px;
height: 12px;
font-size: 10px;
}
This works just fine for the li's that have text in them. The ones
that have the class="liSpacer " don't seem to use css that is given.
Why would this not take effect? Is there a way that I can stop
inheritence from the ".liCol1 li" section? Any help would greatly be
appreciated.
Also note, that there may be several of these on a page so I was
trying to avoid giving each ul an id.
I am trying to create/update webpages using CSS and modern
programming (getting away from using tables to place text and
objects). I am running into an issue using ul's. I will give you the
code below:
<ul class="liCol1">
<li>Vendor name</li>
<li>Address</li>
<li>City St, Zip</li>
<li>Phone number</li>
<li class="liSpacer "> </li>
<li>Data directory</li>
<li>Temp directory</li>
<li class="liSpacer "> </li>
<li>DSA keys</li>
</ul>
and here is the css from an external file:
..ulCol1 {
list-style: none;
text-decoration: none;
margin: 0px;
padding: 0px;
}
..liCol1 li {
margin: 4 0 0 0;
height: 17px;
}
..liSpacer {
margin: 0px;
padding: 0px;
height: 12px;
font-size: 10px;
}
This works just fine for the li's that have text in them. The ones
that have the class="liSpacer " don't seem to use css that is given.
Why would this not take effect? Is there a way that I can stop
inheritence from the ".liCol1 li" section? Any help would greatly be
appreciated.
Also note, that there may be several of these on a page so I was
trying to avoid giving each ul an id.
Comment