You are not logged in.
#1 17 Aug 2006 13:52
- WarpNacelle
- Lowter Dude
- From: Washington State
- Registered: 29 Sep 2005
- Posts: 218
- Message
HTML noggin scratcher...
Came across a strange quirk - in IE of course - that I'd thought I'd stick here to see if anyone could figure it out.
Displays fine in FF and Opera - as usual.
(I've already got a work around so it's not an issue, but I'm really stumped as to why this is happening.)
Why is the second <fieldset> offset and not centered like the first <fieldset>?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title></title> </head> <body> <div style="width: 500px; margin: 0 auto; border: 2px solid #000;"> <form action="newaccount.php" method="post"></p> <fieldset style="width: 400px; margin: 5px auto"> <legend>Personal Details, required</legend> <p>•First Name:<br /> <input type="text" size="30" maxlength="35" name="first" /></p> <p>•Last Name:<br /> <input type="text" size="30" maxlength="35" name="last" /></p> <p>•E-mail Address (will be hidden):<br /> <input type="text" size="30" maxlength="50" name="email" /></p> </fieldset> <fieldset style="width: 400px; margin: 10px auto"> <legend>Account Details, required</legend> <p>•Account User Name:<br /> <input type="text" size="20" maxlength="20" name="user_name" /></p> <p>•Account Password:<br /> <input type="password" size="20" maxlength="15" name="password" /></p> </fieldset> <p class="c"><input type="submit" value="Create Account!" name="submit" /></p> </form> </div> </body> </html>
The one who figures it out wins .... a nice smiley in my reply!
Offline
#2 17 Aug 2006 15:03
Re: HTML noggin scratcher...
Trying using something like:
<style type="text/css">
fieldset {
width: 400px;
margin: 10px auto;
}
</style>
IE may have issues with inline styles or something. Otherwise, I don't see much wrong with anything. Code looks to validate (which can cause styling issues) and everything else is in order.
Offline
#3 18 Aug 2006 10:42
Re: HTML noggin scratcher...
just one of those things i would say
Meaning of life: we learn a bunch of stuff then we die.
http://www.thehardcorelife.com
http://blog.thehardcorelife.com
Offline