faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

34 of 77 people (44%) answered Yes
Recently 4 of 10 people (40%) answered Yes


Looking to create resizable tables based on viewer screen size and amount of text to be displayed. Used on php.net, but can't find code to do this - ?

Mar 15th, 2008 21:23
dman, ha mo, chris stewart, Dravon Redsong, http://www.ttnr.org

To create sizable tables, percentages work wonderful and you won't 
need PHP to do it. The tag <table> can have a width <table 
width="100%"> which will always be the length of the screen. <td> tags 
can have width attributes as well <td width="25%"> they can also have 
<td width="*">. The * (star) will basically fill what ever are needs to 
be fit with. It is best to experiment w/ * to see how it works best.
But if your looking for a variable number of the persons desktop size, 
Javascript can do that best.