wright67uk
06-11-2012, 10:31 PM
Can anybody share some advice on how I can align my text with my form fields. This is what I have;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#midright1 {width:205px; height:130px; margin-bottom:10px; margin-left:10px; padding:5px; font-size:100%; clear:both; }
.emailtext {margin-top:16px;}
.firstname {margin-right:6px; float:right; }
.email {margin-right:6px; float:right; margin-bottom:4px; margin-top:4px;}
</style>
</head>
<body>
<div id="midright1">
<span style="font-weight: bold;">Free Report</span><hr />why do my form fields not align?<br /><br />
<span style="font-weight: bold;">Name </span> <input type="text" name="firstname" class="firstname"/><br/>
<span style="font-weight: bold" class="emailtext";>Email</span> <input type="text" name="email" class="email" /> <input type="submit" value="submit" /></div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#midright1 {width:205px; height:130px; margin-bottom:10px; margin-left:10px; padding:5px; font-size:100%; clear:both; }
.emailtext {margin-top:16px;}
.firstname {margin-right:6px; float:right; }
.email {margin-right:6px; float:right; margin-bottom:4px; margin-top:4px;}
</style>
</head>
<body>
<div id="midright1">
<span style="font-weight: bold;">Free Report</span><hr />why do my form fields not align?<br /><br />
<span style="font-weight: bold;">Name </span> <input type="text" name="firstname" class="firstname"/><br/>
<span style="font-weight: bold" class="emailtext";>Email</span> <input type="text" name="email" class="email" /> <input type="submit" value="submit" /></div>
</body>
</html>