SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Text no showing paragraphs

    I have body text on HTML with paragraph <p> tags but on the browser text appears without paragraph spacing.

    Please help.

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using some sort of 'CSS reset' like this one?
    Code CSS:
    * {margin:0; padding:0}

    This will remove all margin and padding from all elements, so you'll have to explicitly specify the margins and padding you do want. (This is one of the main reasons I don't like these generic CSS resets.) For instance,
    Code CSS:
    p {margin-bottom:1em}
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AutisticCuckoo View Post
    Are you using some sort of 'CSS reset' like this one?
    Code CSS:
    * {margin:0; padding:0}

    This will remove all margin and padding from all elements, so you'll have to explicitly specify the margins and padding you do want. (This is one of the main reasons I don't like these generic CSS resets.) For instance,
    Code CSS:
    p {margin-bottom:1em}
    Thank you. It worked perfectly. True I had used * {margin:0; padding:0}

    Thank you once again.


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
  •