SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    centering the entire layout

    What would I need to make this entire layout centered so that it expands to fit either 800x600 resolution, and 1024x768? I know there is a way to do it..but I can't seem to recall the CSS code for it.

    http://host40.ipowerweb.com/~justswe...ers/index.html

    Thanks in advance
    -Sparkie
    Sherice Jacob - Web Improvement Expert
    Improve Website Conversions | eBook Covers
    Follow Me on Twitter!

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    put this in your CSS:
    Code:
    body {
       margin-left: auto;
       margin-right: auto;
    }
    This will work after you specify a proper DOCTYPE declaration above your <html> tag on each page.

  3. #3
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ooooh! that worked wonderfully! Thanks Vinnie!

    But now my form fields don't have the CSS backgrounds that they used to..How do I get those back?
    Sherice Jacob - Web Improvement Expert
    Improve Website Conversions | eBook Covers
    Follow Me on Twitter!

  4. #4
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oops. Well, I thought it worked wonderfully..but when I resize to 1024x768 resolution, it still has a big gap on the right.
    Sherice Jacob - Web Improvement Expert
    Improve Website Conversions | eBook Covers
    Follow Me on Twitter!


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
  •