I am creating a basic form with only css. I am having issues were the label and input fields are not lining up on the left hand side in Internet Explorer. But in firefox they line up correctly. A sample of the form can be seen at
Can someone tell me what I am doing wrong??
the code I used for the form is below
Newbie in search of knowledge
Can someone tell me what I am doing wrong??
the code I used for the form is below
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xml:lang="en-US" lang="en-US">
<head>
<title>Form Lookup</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
body {font-family: verdana; font-size: 12px;}
fieldset{width: 500px; margin: 0 0; padding: 0 0;}
p {float:left; margin: 0 10px 10px; padding: 0 0;}
p input {width: 125px; margin: 0 0; padding: 0 0;}
p label {width: 75px; margin: 0 0; padding: 0 0;}
p.submit {clear:left; }
p.submit input{width: 50px; }
</style>
</head>
<body>
<form method="post" action="" >
<fieldset>
<p><label for="fname">First Name<br /></label><input type="text" name="fname" id="fname" /></p>
<p><label for="lname">Last Name<br /></label><input type="text" name="lname" id="lname" /></p>
<p><label for="form_id">Form ID<br /></label><input type="text" name="form_id" id="form_id" /></p>
<p class="submit"><input type="submit" name="submit" value="Find" /></p>
</fieldset>
</form>
</body>
</html>
Newbie in search of knowledge