Forum Moderators: open
margin: 40px auto;
Opera for some reason wants me to achieve the effect like so:
margin-top: 40px;
margin-right: auto;
margin-left: auto;
I read somewhere this can crash Netscape 4.x. margin: x x x x; is the way to go. Have you dealt with this matter yet? By the way, margin-top: 40px; works like a charm, it's when I go for the auto center things flip out.
Thanks again,
M
Here are the three test pages (screen captures) with commentary. Example one [bigbaer.com] ¦ two [bigbaer.com] ¦ three [bigbaer.com]
Madcat, I was able to get Opera to render div{margin:auto; margin-top:40px} which is a little more compact than div{margin-top:40px;margin-right:auto;margin-left:auto;}
DrDoc, your thread regarding declaring a padding value for the body ties in nicely here as you will see.
Cross-Browser Training 101
... just when we thought it was safe to go back in the water! ;)
- papabaer
... just when we thought it was safe to go back in the water!
div{margin:auto; margin-top:40px}
It seems to me any UA nowaday should be getting margins correct right off the bat-- If they're capable of making a browser with lightning quick speed especially;)
Thanks again-
M