SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Aug 2010
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE isn't the problem this time?!?

    If you go to the site i'm working on: www.facetofacetutoring.com in any browser but IE you'll see the third column (right of the picture in the middle) top-aligned. That's only after the fact I gave it a negative margin in CSS.

    With a 0 margin, it top-aligns perfectly in IE (Like how I would except it to have worked with all browsers?), yet is down a little bit in all other browsers.

    Any ideas?

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,567
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Hi, that's because the <p> has a top margin set on it by default and as a result the <p> is pushed down. Just remove the margin on the <p> element to get it normal
    Code:
    <style>
    p{margin:0;}
    #right{margin:0;}
    </style>
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  3. #3
    SitePoint Addict
    Join Date
    Aug 2010
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by RyanReese View Post
    Hi, that's because the <p> has a top margin set on it by default and as a result the <p> is pushed down. Just remove the margin on the <p> element to get it normal
    Code:
    <style>
    p{margin:0;}
    #right{margin:0;}
    </style>
    Great thank you very much...I'm still learning!

  4. #4
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,567
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    As are we all . You're welcome.
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  5. #5
    SitePoint Addict
    Join Date
    Aug 2010
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by RyanReese View Post
    Hi, that's because the <p> has a top margin set on it by default and as a result the <p> is pushed down.
    is that for all browsers except IE?


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
  •