HTML table layout, making beautiful tables

Source: Internet
Author: User

Recent projects to write their own table layout, so give the big guy a look. long time no HTML code, are very unfamiliar, to practice more. This is copied from the Internet.

We do a simple site layout, the code is as Follows:

<TableAlign= "center"width= "$"Height= "the "Border=1bordercolor= "#00ff99"><tbody><TR><TDcolspan= "3"Align= "center">Site name</TD></TR><TR><TDwidth= "30%"Height= "+">Site Title</TD><TDcolspan= "2"Align= "right">Search box</TD></TR><TR><TDwidth= "30%">Left</TD> <TDwidth= "40%">Middle</TD> <TD>Right</TD></TR><TR><TDcolspan= "3"Align= "center">Site Bottom Information</TD></TR></tbody></Table>
Site name
Site Title Search box
Left Middle Right
Site Bottom Information

This is a whole table, the first row and the fourth row span three columns respectively, here with colspan= "3" to limit, and the second row of "search box" occupies two columns of position, with colspan= "2" control; align= " Center " is the alignment limit for text in the table, center represents the middle, right is on the left, and the other side is On.

HTML table layout, making beautiful tables

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.