-
1. Re: Help centering divs
phyllisj9 May 12, 2011 6:31 AM (in response to phyllisj9)Wait, I did get it to center without the negative margins (by putting in text-align: center all over the place). But the page doesn't function in Internet Explorer (some items -- including the background image -- are shoved halfway off the screen). This is driving me crazy! Any help would be appreciated. Thanks, Phyllis
-
2. Re: Help centering divs
phyllisj9 May 12, 2011 6:44 AM (in response to phyllisj9)I got the background images to move over onto the page since I can specify those as left: 0. I can't do that with the 950-pixel wide divs though. So they're still all messed up.
I love CSS, but I really miss the "center" tag (I learned basic HTML a long time ago when everything was done with table-based layouts -- it was super-easy to center stuff).
Thanks, Phyllis
-
3. Re: Help centering divs
darose2444 May 12, 2011 9:00 AM (in response to phyllisj9)I cannot see your css, but did you try adding "display: inline-block;" to the outer <div>?
-
4. Re: Help centering divs
phyllisj9 May 12, 2011 9:22 AM (in response to phyllisj9)I figured it out! Well, sort of. I just redid everything from the beginning. I think the problem was that I had a wrapper element set to absolute positioning. I guess it has to be relative positioning in order to center to the page? So if I want a fixed-width navigation that's absolutely positioned I need to put it inside a wrapper that's relatively positioned with auto margins?
new version (please let me know if it doesn't work on your version of IE!):
http://pjutter.com/Sessions/Advanced...indexNew2.html
Thanks, Phyllis -
5. Re: Help centering divs
sweetpea01 May 13, 2011 6:10 AM (in response to phyllisj9)I got a 404 error when I clicked your link.
-
6. Re: Help centering divs
Nancy O. May 13, 2011 3:31 PM (in response to phyllisj9)Can't see your page. But static (unspecified) positioning is all that's required for 98% of page layouts. I very rarely use APDivs except for special situations like disjointed rollovers, lightbox windows or flyout menus. And then I wrap them inside a position:relative container.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb



