View Full Version : Change spacing around <p> and <ul> tags?
SpydermanLA
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.
Thanks!
Spyderman
MCookie
07-21-2002, 07:31 AM
Hi, try this: <p style="margin:0px;"></p> and or this: <ul style="margin:0px;"></ul>
SpydermanLA
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;">
<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
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.