SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru htown's Avatar
    Join Date
    Mar 2005
    Posts
    671
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why does the border make the differance?

    Basically I have a page made of stacked div's. Where I intend on putting the content I have a background image that makes up the edges that will expand with the various lengths of each content page. However, fi the content has <P> in it puts a space above and below the div thereby creating a space in the edge of the page. (graduated black border)

    If I put a border around this same div using the spacing goes away. I of course do not want the border around the div so I can I get rid of the space that the <p> puts in? I was previously using:

    P {margin: 0}

    But then I can not get spacing between any paragraphs throughout the site. So how do I fix this. It seems to me that this would be a common problem so I must be missing something simple here I am sure.

    If you go to Without border you will see what I mean. Then of you click on "EQUIPMENT" you will see it with the border and the spacing will go away.

    Thanks
    Houston Brown
    Split Light Designs
    Bringing your ideas to light.

  2. #2
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    p
    {
       margin: 0;
       padding: 5px 0;
    }
    Should work?

    Regards,
    Jordan

  3. #3
    SitePoint Guru htown's Avatar
    Join Date
    Mar 2005
    Posts
    671
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, that was the quickest answer (solution) I have ever received on the net. I was making an edit and boom, there was my answer. Thanks "J"
    Houston Brown
    Split Light Designs
    Bringing your ideas to light.

  4. #4
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're welcome htown.

    Regards,
    Jordan


Bookmarks

Posting Permissions

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