I think he's talking about the spacing around block level elements. Like if
you type <h1>text</h1> you will get a double space after but if you type
<span class="h1">text</span><br /> you will get a normal space after
(provided you've made a class named h1 that is identical to the h1 tag).

I've not tried this but it seems making the <ol> have a display: inline it
might remove the double space but it also might try to put all the <li> on
one line.

Let me know if it works...

Mike

-----Original Message-----

Eric Price wrote:
> Hi;
> I don't know if this is possible, but I know this is the right list to 
> ask
> ;) I don't like the out-of-the-box behavior (or interpretation by the
> browsers) of lists. I would like to tweak it so that it only gives one 
> <br /> at the beginning and end of the list, instead of the default of
two.
> Possible? If so, how?
> TIA,
> Eric

Eric, the space above and below lists is not created by inserted <br>
elements, but with CSS styling information - normally a large upper and
lower margin. By setting your own margin styling info, you can reduce the
space around the list.

ul, ol
{
   margin: 0;
}

...would eradicate extra spacing around the list (although the space below
is most likely caused by the top-margin of the following element).

Regards,
Barney


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to