strict HTML and centering forms

liunx

Guest
I'm trying to do a strict html page, but i'm stuck at the very beginning at centering a form.<br />
I use<br />
<style TYPE="text/css"><br />
.centre<br />
{<br />
text-align: center;<br />
}<br />
</style><br />
and then<br />
<form class=centre action="action.php" method="post"><br />
....<br />
</form><br />
<br />
This works on IE6 but not on mozilla nor Opera, so i suppose this isn't the STRICT way of doing it, any idea?<!--content-->no such thing as strict HTML. put your form in a table and then center the table.<!--content-->
 
Back
Top