idea:This form is special, the left side is the text to the right of the input box, we can also have a floating method to achieve, the text plus lable tag, not because we want to define the style and join the lable, but this writing is one of the standard. A newline that is produced with a BR can also be used to define a clear left float. To sum up, that is, a lable definition of its left float, another input is the inline element so it will immediately follow the floating element, after adding a br to clear the float, the purpose of the purge is to not affect the next set of floating around.
The above form is simpler, so it can be used with style, but I recommend using tables for complex forms.
Supplementary NET Picks:
layout for a form http://www.5dlog.com/article.asp?id=126
When designing a form layout, it is often tempting to want to use table, and now Quirksmode teaches us to use tableless forms.
In fact, the principle is to let <label> and <input> (including other form elements, such as: <select>, <textarea>) display properties for block and then float to the left, At the end of the line there are <br/> responsible for clearing floats. There is a fixed width, and the text is aligned again, so the beautiful layout will come out!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.