Topic: center everything (~strange)
hello,
i set #punwrap to a width of 45em. now i want to have #punwrap centered.
how can i do this?
it's a bit strange, because when i set text-align:center; at body, nothing will happen.
thx for help!
greetz,
flx
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → center everything (~strange)
hello,
i set #punwrap to a width of 45em. now i want to have #punwrap centered.
how can i do this?
it's a bit strange, because when i set text-align:center; at body, nothing will happen.
thx for help!
greetz,
flx
#punwrap {width: 45em;padding:0;margin: 12px auto}
If you care about IE5 then
BODY {margin:0;padding:0; text-align:center}
#punwrap {width: 45em; text-align:left;margin: 12px auto; padding:0}
Text-align does what it says i.e. it aligns content inside a container, it does not align the containers in relation to the page except in IE5 which gets it wrong.
thank you, thank you, thank you!
margin auto was missing..
greetz,
flx
PunBB Forums → PunBB 1.2 troubleshooting → center everything (~strange)
Powered by PunBB, supported by Informer Technologies, Inc.