View Full Version : Change spacing around <p> and <ul> tags?

07-21-2002, 03:10 AM
Is it possible to change/remove the verticle space around a <p> or <ul> tag? Specifically I want to create a bulleted list that doesn't have the leading space above it.

I also want to create an indented paragraph that follows a regular paragraph, without the space in between them.



07-21-2002, 07:31 AM
Hi, try this: <p style="margin:0px;"></p> and or this: <ul style="margin:0px;"></ul>

07-21-2002, 08:15 AM
Hey thanks! I was playing with the padding instead of the margins. After a bit of fiddling, the correct answer (based off your suggestion) ends up being:

<p style="margin:0px;">blah blah</p>
<ul style="margin-top: 0px;">

You have to set the margin equal to 0 in *both* for it to work. Also, you can only set the top margin in the <ul> tag or your bullets disappear off the left edge of the page.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum