SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Jul 2002
    Posts
    286
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Inconsistent h2 and/or p behavior

    Can anyone tell me why there is less space between the "2007" h2 and the paragraph that follows it than there is between the "2006," "2005" and "2004" h2s and the paragraphs that follow them?

    http://www.northshoredesign.com/ackerman/pastconf.php

  2. #2
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's because of the image in the paragraph.If you make the line-height :0; then you can quite clearly see the problem. The easiest fix would be to crop the image tighter so that it's the same height as your base font size.

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The above is correct.... but you can hack it to look right by adding a margin: 10px 0 0 to p.


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
  •