Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-21-2002, 03:10 AM   PM User | #1
SpydermanLA
New to the CF scene

 
Join Date: Jul 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
SpydermanLA is an unknown quantity at this point
Question Change spacing around <p> and <ul> tags?

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
SpydermanLA is offline   Reply With Quote
Old 07-21-2002, 07:31 AM   PM User | #2
MCookie
Regular Coder

 
Join Date: Jun 2002
Location: NL
Posts: 421
Thanks: 0
Thanked 0 Times in 0 Posts
MCookie is an unknown quantity at this point
Hi, try this: <p style="margin:0px;"></p> and or this: <ul style="margin:0px;"></ul>
MCookie is offline   Reply With Quote
Old 07-21-2002, 08:15 AM   PM User | #3
SpydermanLA
New to the CF scene

 
Join Date: Jul 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
SpydermanLA is an unknown quantity at this point
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
SpydermanLA is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:48 AM.


Advertisement
Log in to turn off these ads.