Click to See Complete Forum and Search --> : my div wont center
dfrieber
09-07-2005, 10:49 PM
Hi all,
Here's a simple question:
why does my page ( www.frieber.com ) look centered on a mac (safari), but not on a pc (ie)?
im sure the answer is simple, i just cant think of the answer to this one.
Thanks a lot
CompGeek01
09-08-2005, 11:19 AM
Are you being forced in to using frames? Or was it by choice? Seems like unneeded complication.
*edit*
Oh, and just add text-align: center; to your body css definition.
Strawbs
09-08-2005, 12:11 PM
I guess it worked, It looks centered in FF. :shrugs:
dfrieber
09-08-2005, 01:26 PM
AHH of course...
thanks very much!
i feel like an idiot
CompGeek01
09-08-2005, 02:30 PM
Don't feel that way. It's an IE quirk, i'ts not standard..but yet another thing dev's need to do to apease all browsers. :) Glad I could help.
phil drury
09-13-2005, 11:59 AM
in case your interested the most stable way i have found accross all browsers to center your div is to simply add to the margin elements left/right the auto attribute or paste this into your style sheet>your holding div>
margin: auto auto
Tony2005
09-26-2005, 07:33 PM
wouldn't margin: auto; be enough instead of repating it twice?
SysOpt.com
Copyright Internet.com Inc. All Rights Reserved.