"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

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%">



Print This Tip

Get E-Mail When New Tips are Online

Return to the Web Development - Tables page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )