You are not logged in.

#1 17 Aug 2006 13:52

Lowter Dude
From: Washington State
Registered: 29 Sep 2005
Posts: 218

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>?


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" xml:lang="en" lang="en">

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />



<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>&bull;First Name:<br />
<input type="text" size="30" maxlength="35" name="first" /></p>

<p>&bull;Last Name:<br />
<input type="text" size="30" maxlength="35" name="last" /></p>

<p>&bull;E-mail Address (will be hidden):<br />
<input type="text" size="30" maxlength="50" name="email" /></p>

<fieldset style="width: 400px; margin: 10px auto">
<legend>Account Details, required</legend>
<p>&bull;Account User Name:<br />
<input type="text" size="20" maxlength="20" name="user_name" /></p>

<p>&bull;Account Password:<br />
<input type="password" size="20" maxlength="15" name="password" /></p>

<p class="c"><input type="submit" value="Create Account!" name="submit" /></p>



The one who figures it out wins .... a nice smiley in my reply!

Support bacteria - they're the only culture some people have.
Faith Based Theater Community...



#2 17 Aug 2006 15:03

Lowter Staff
From: Minneapolis, MN
Registered: 20 Jan 2005
Posts: 6960
Message  Website

Re: HTML noggin scratcher...

Trying using something like:

<style type="text/css">
fieldset {
width: 400px;
margin: 10px auto;

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.

Ethan, Managing Director of Lowter
Blog | American Swedish Institute | Save the Internet



#3 18 Aug 2006 10:42

Loco Lowter Member
From: UK
Registered: 25 Jan 2005
Posts: 2503
Message  Website

Re: HTML noggin scratcher...

just one of those things i would say

Meaning of life: we learn a bunch of stuff then we die.



Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson