Can CSS be used to pad a label control with a certain amount of spaces, or to make a certain length?
Posted on 2012-09-20
Hello, I have some data which I am laying out using
the fieldset command and CSS
So basically on my web page I have several labels and
text box controls. Below is how the data will look on the screen.
So here is my question. Is their a way to style my label controls so that they are always a
certain length, and left justified? If so, how can this be done. For example below, you
can see that the word "phone" represented by a label control is 4 characters in length. How
can I style my label controls, so that they are all a lenght of say at most 12 characters.
Is their a way to do this using CSS?
Otherwise, I am having to use tags to create spaces, and this seems more like hacking
than a real solution.
First Name __________ Last Name____________
Phone __________ Email ____________