I've been using <DIV ALIGN="CENTER"> to center blocks of text. But in IE 6 and N 6, the <FIELDSET> isn't centered on the page as expected. Can anyone shed any light on this embaffleating behavior?
A FIELDSET comparison using <DIV ALIGN="CENTER"> and <CENTER> methods appears below:
Thanks,
Gnubie
A FIELDSET comparison using <DIV ALIGN="CENTER"> and <CENTER> methods appears below:
Code:
<html>
<head>
<title>FIELDSET Center Test</title>
</head>
<body>
<div align="center" style="width: 75%" >
<fieldset title="FIELDSET Center Test #1">
<legend class="hdr2" align="center">FIELDSET Center Test #1</legend>
This version uses <DIV ALIGN="CENTER"><br>
Why isn't the WHOLE FIELDSET centered?
</fieldset>
</div>
<center>
<div style="width: 75%">
<fieldset title="FIELDSET Center Test #2">
<legend class="hdr2" align="center">FIELDSET Center Test #2</legend>
This version uses <CENTER> and is centered correctly.<br>
This is what I want.
</fieldset>
</div>
</center>
</body>
</html>
Thanks,
Gnubie