Hello!
I have a quick question regarding CSS and having it applied to all
elements. I am trying to eliminate the gap between a paragraph and a
list that usually occurs in html and I've found away to do that with
this code:
<p>a</p>
<ul style="margin-top: -20; padding-top: 0">
<li>1</li>
</ul>
However I was hoping to use CSS to do it to all elements and without
using <DIV id="">. Here is an example of the CSS code I have so far,
but you need to use <div id="squish"> around them.
<style type="text/css">
#squish {
width: 10em;
}
#squish ul {
margin-left: 1em;
margin-top: -20;
padding-top: 0;
padding-left: 0;
}
</style>
Is there a way to apply this to all bullets <UL> <LI> on the page
using CSS without having to use <div id="">?
Thanks for your help!
Shaun