I was using the advice given here: https://stackoverflow.com/a/5174967 to lay out some form elements inline. It suggested using word-spacing: -1em;
on the parent element and then resetting the spacing back to normal. I found that I didn't need to reset the word-spacing
on the form
elements inside the <form>
tag.
form
{
word-spacing: -1em;
}
input,
textarea
{
width: 90%;
display: inline-block;
vertical-align: middle;
}
label span
{
display: inline-block;
width: 10%;
vertical-align: middle;
}