...

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



SpydermanLA
07-21-2002, 04: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.

Thanks!

Spyderman

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

SpydermanLA
07-21-2002, 09: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;">
<li>listing</li>
</ul>

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.

Cheers,

Spyderman



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum