SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot ameerulislam's Avatar
    Join Date
    Jul 2011
    Posts
    145
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    zeroing out margins paddings borders (Not working!)

    I just read the tip from

    http://webdesign.about.com/cs/css/qt/tipcssmargins.htm

    that you can zero out default borders, margins and padding with this. which seemed pretty good idea. I tried but for some reason it didn't work, IE still has its default border around image links, h4 tags has its margins. I'm not sure if it works in html5 documents..

    HTML Code:
    html, body {
      margin: 0px;
      padding: 0px;
      border: 0px;
    }

  2. #2
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,821
    Mentioned
    34 Post(s)
    Tagged
    2 Thread(s)
    it would appear you didn't include IMG in your reset definitions

    try:
    Code:
    html, body {
      margin: 0px;
      padding: 0px;
    }
    img {border: 0px;}
    hope that helps


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
  •