I been messing around with the css but i cannot get the layout I want..
I want to make all the input fields vertically aligned but its important that i still keep the dividers (since i use javascript on them)
I been playing around with different positions and float settings and i cannot seem to get it to work…
If somebody has a nice solution that will make it all vertically align (with labels directly on top of the input fields) I would really appreciate it
here is my messy code:
An alternative to Nightfirecat’s suggestion, if the plan is to get the labels above the text box, then this might do the trick:
BTW: I think there’s a typo in the jsfiddle.net/hYa9a/4/ code. In the password field one of the IDs is entered as usernameIn. Was this supposed to be passwordIn?
NB: If there was an option to modify the HTML code and not just the CSS, I would have suggested placing your form label and text box in a wrapper div. Something like:
Then you could clean up the CSS by removing all the styles on the individual labels and text boxes and set the width and floating to only the formobject div instead. Like: