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

Thread: paragraph gap

  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    187
    Thanks
    5
    Thanked 0 Times in 0 Posts

    paragraph gap

    using css how do i remove the gap at the bottem of text that is applied automatically by the p tag?

  • #2
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Code:
    p {
    margin: 0;
    }
    would do the job I guess.

    EDIT:

    If you put

    Code:
    * {
    margin: 0;
    padding: 0;
    }
    in the stylesheet though, it will be a lot easier to work with and the default margin for <p> tags will also be eliminated and you can then add one to your liking.
    Last edited by Jutlander; 06-28-2007 at 11:16 PM.

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Posts
    187
    Thanks
    5
    Thanked 0 Times in 0 Posts
    thanks very much, i had already tried that, but with different classes and it dint work, but it turns out it has a margin at the top aswell, so if you have two diff classes, you need to set both with your suggestion. Thanks


  •  

    Posting Permissions

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