dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Not centering in IE/Mac?

  1. #1
    Join Date
    Apr 2005
    Posts
    77

    Not centering in IE/Mac?

    Can someone tell em why this isn't centering on IE6 for the Mac?

    The site is at: http://www.tech-genus.com/demos/smartSite/

    I have the body with text-align:center: set

    but it hasn't been working so I just threw up the old school HTML <center..> tag around the whole thing.

    Why is some of the page centering and the header box and footer box not centering?

    Any help would be great.

  2. #2
    Join Date
    Mar 2005
    Location
    Washington, USA
    Posts
    379
    Your #container div should wrap around all the content. Literally have <div id="container"> right after <body> starts and end it right before <body> ends. Then add this to the CSS in #container - margin: auto;

  3. #3
    Join Date
    Apr 2005
    Posts
    77
    Thanks sanim, initially that is how I had the site set up. Everything was in the "container." Things weren't working so I took the headers and footers out and voila! Let me give this margin: auto a shot and see what happens.

    Thanks again

  4. #4
    Join Date
    Apr 2005
    Posts
    77
    Yes. I didn't put everythiong in the container but instead just put in Margin:auto on the header and footer boxes. It seems to work fine.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles