Click to See Complete Forum and Search --> : remove space in <ul>


orelandboy
02-09-2004, 10:24 AM
I'm a newbie trying to eliminate the space between heading and bulleted list when I start an unordered list in html. How's this done?
Thanks

Sam
02-09-2004, 10:41 AM
Don't know off hand, but visit w3schools (http://www.w3schools.com) click Learn CSS on the left, then CSS Lists

pyro
02-09-2004, 10:42 AM
Clarify, please.

orelandboy
02-09-2004, 10:52 AM
<b>list heading</b>
<ul>
<li>etc.

Here is code. There is a space created between list heading and bulleted list which I am trying to eliminate.
Thanks

pyro
02-09-2004, 11:04 AM
First things first: heading tags are h1-h6, thus, we will use one of those.

<h2 style="margin-bottom: 0;">Heading</h2>
<ul style="margin-top: 0;">
<li>foo</li>
<li>bar</li>
</ul>