No, don't do either of those. :-) I mean, sure it will work
visually, but tables are for tabular data and break tags are . . . well let's face it, generic line breaks, usually applied for layout when you can't figure out how else to do it. You want semantic HTML with CSS.
I'd do *something* like this,
<p class="input_form"><label for="user_name">Choose a user name:</label>
<input type="text" class="txtfield" name="user name" id="user_name">
</p>
<p class="input_form"><label for="pwd">Choose a password:</label>
<input type="password" class="txtfield" name="password" id="pwd">
</p>
<p class="input_form"><label for="pwd_conf">Reenter password:</label>
<input type="password" class="txtfield" name="reenter_password" id="pwd_conf">
</p>
<p class="input_form">
<input type="
submit" value="Submit" name="submit_button" id="submit_button">
</p>
Then do this.
This is not copy and paste code. You will have to play with it. The idea is to set input_form narrow enough so it
forces the line breaks. (Note "input" may conflict if you apply javascript.)
/* Too much space in the p's? add margin:0; padding:0; */
.input_form { width: 300px; }
.input_form .txtfield { width: 300px; }
#submit_button {
width: 150px;
height: 40px;
border: none;
outline: none;
background: url(/images/submit_button.jpg) top left no-repeat;
text-indent:-5000px; /* hides the "submit" value */
}
#submit_button:hover {
background-position:bottom left;
}
Revise your submit button so it has the mouseover state at the bottom. So if the button is 40px high, make it 80, and the bottom half a diferent color.
--------------
... SUBMIT ...
--------------
*** SUBMIT *** <--- mouseover state
--------------
You'll have to play with it, but this will work . . and is semantically more correct. Say no to tables for layout and generic break tags. :-)