Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, try this: <p style="margin:0px;"></p> and or this: <ul style="margin:0px;"></ul>

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •