![]() |
|||
Your Guide to Professional |
•
HTML Tips • HTML Codes • Web Development |
•
Web Design
Tips • JavaScript Codes • 216 Web Safe Colors |
•
CSS
Tutorial • JavaScript Tutorial • ASCII Character Codes |
![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
| Web Site Development | HTML Codes | HTML Tips | Web Design Tips | Javascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial | |
![]() |
Browser View:
Set HTML Table Width as a
Percentage
|
<TABLE
BORDER="2" CELLPADDING="2" CELLSPACING="2" WIDTH="50%"> <TR> <TD>Column 1</TD> <TD>Column 2</TD> </TR> </TABLE> |
Browser View:
Column 1 | Column 2 |
<TABLE
BORDER="2" CELLPADDING="2" CELLSPACING="2" WIDTH="300"> <TR> <TD WIDTH="100">Column 1</TD> <TD WIDTH="200">Column 2</TD> </TR> </TABLE> |
Browser View:
Column 1 | Column 2 |
In addition,
you can set the widths of your TABLE columns to display your columns at a
specific width. In the following example, the column widths are set to 50%.
<TABLE
BORDER="2" CELLPADDING="2" CELLSPACING="2" WIDTH="100%"> <TR> <TD WIDTH="50%">Column 1</TD> <TD WIDTH="50%">Column 2</TD> </TR> </TABLE> |
Browser View:
Column 1 | Column 2 |
In the following
example, the first column width is set to 25% and the second column is set
to 75%.
<TABLE
BORDER="2" CELLPADDING="2" CELLSPACING="2" WIDTH="100%"> <TR> <TD WIDTH="25%">Column 1</TD> <TD WIDTH="75%">Column 2</TD> </TR> </TABLE> |
Browser View:
Column 1 | Column 2 |
|
|
||
Enter your email address and password to enter the private membership
area:
Lost Password? |
|
||
• Web Design Mastery • Mastering Web Hosting • eBook Starter |
|
||
• Site Build It! • Web Site Templates |
|
||
• HTML Tips • PC Security • CSS Tutorial • HTML Codes • Web Design Tips • JavaScript Codes • JavaScript Tutorial • Java Applet Tutorial • 216 Web Safe Colors • Web Site Development • ASCII Character Codes |
Follow Us |
|
Web Site
Development | HTML
Codes | HTML Tips
| Javascript
Snippets | |