This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com.

Web Development - Tables - Give your Tables a Pre-Set Width

Tired of tables taking up too little/too much space? Want to set your table widths to a pre-defined amount? Have I got the tip for you!

When you write your <TABLE> tag to define a table, add this:

<TABLE WIDTH="width">

You can replace "width" with either a size in pixels or a percentage of the page. For example, the first table would have a width of 500 pixels, while the second table would have the width of 50% of the page width.

<TABLE WIDTH="500">

<TABLE WIDTH="50%">


 


Press the "print" button on your browser or select "File" - "Print" to print this tip. Then, return to Web Development - Tables - Give your Tables a Pre-Set Width
 
Standard disclaimer applies - read http://malektips.com/disclaim.html.