Right (center) align DIV in firefox
Posted: Wed Apr 29, 2009 9:54 am
This works wonderfully in IE but of course not firefox and/or I assume other compliant browsers?
Apparently (from googling) FF and others should use margin-left: auto in order to center a DIV within another DIV
But how do you go about right aligning, etc?
Code: Select all
<div style="margin: auto 0; text-align: center"> <div style="background-color: white; border: 4px solid white; width: 400px; height: 30px"> Make this right align in FireFox? </div> </div> But how do you go about right aligning, etc?