SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: css coding

  1. #1
    SitePoint Zealot bkflash's Avatar
    Join Date
    Apr 2006
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question css coding

    Ive been looking at other sites and ive noticed a feature that they have that i can't figure out how they are doing it. For example on gamespot.com there body is aligned to the up most top of the page and at the bottom of there page the content ends after the last cell and there are no spaces between. I was wonder how this is done, i believe they do it with css but i don't no how, anybody half any ideas?

  2. #2
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    margin:0

  3. #3
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to set padding to 0 as well for Opera.
    Code:
    html, body {
      margin: 0;
      padding: 0;
    }
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


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
  •