SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict RamsayX's Avatar
    Join Date
    Oct 2003
    Location
    Canada
    Posts
    324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Margins problem after vertical centering, using CSS.

    http://www.ramsaystudios.ca/index.php
    http://www.ramsaystudios.ca/css/layout.css

    Hey everyone, my temp index is 99% fixed now, took a while to get the vertical centering right with CSS, just have the gap at left and right to fix .. can't seem to get this right though ... can someone help me out? Thanks very much!
    Personal Portfolio
    Paul O'B is the CSS god

  2. #2
    SitePoint Evangelist ClevaTreva's Avatar
    Join Date
    Jan 2004
    Location
    Chipping Campden, UK
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by RamsayX
    http://www.ramsaystudios.ca/index.php
    http://www.ramsaystudios.ca/css/layout.css

    Hey everyone, my temp index is 99% fixed now, took a while to get the vertical centering right with CSS, just have the gap at left and right to fix .. can't seem to get this right though ... can someone help me out? Thanks very much!
    Hi

    Try adding this to the style sheet:

    html, body {margin: 0; padding: 0; border: 0}

    and doing away with the body style you have (the above will supercede it).





    Trevor

  3. #3
    SitePoint Addict RamsayX's Avatar
    Join Date
    Oct 2003
    Location
    Canada
    Posts
    324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect! Thanks very much!
    Personal Portfolio
    Paul O'B is the CSS god


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
  •