SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    margin-top cross browser

    Hi,

    I regularly run into problem margin-top not recognized by browser situation. In IE sometime it works sometime not. Whilst I prefer using margin-top to padding-top in creating space between elements.

    I want to know when ie will accept margin-top and when not, so I can stop wasting time sampling it.
    Last edited by runrunforest; May 22, 2009 at 20:40.

  2. #2
    Design Your Site Team bronze trophy Erik J's Avatar
    Join Date
    May 2007
    Location
    Countryside, Sweden
    Posts
    3,407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll get the knowledge here on SitePoint Reference.
    Happy ADD/ADHD with Asperger's

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Basically just add a 1px vertical padding to allow it to accept the vertical margins (or use a border)
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work


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
  •