Click to See Complete Forum and Search --> : Table column width


Rodders
06-10-2003, 05:07 PM
Hi

I am trying to setup a diary-style screen. It will have names of people down one side, and times across the top. I'd like it to look like a spreadsheet with boxes for each 15 minute interval from 7.00am to 21.00pm.

I'll be using server-side coding to fill in the diary with various codes.

How can I specify a fixed column width so that it is much neater and simple to use? I was hoping there would be a CSS attribute 'width' for <TD>, but I can't find it !

Any suggestions?

khaki
06-10-2003, 05:20 PM
hi Rodders...

<style type="text/css">
td {width:200px;}
</style>

this will do ALL columns at that width.
if you want to designate specific columns only use a class


<style type="text/css">
td.wider {width:500px;}
</style>

<tr>
<td>this will be 200 wide</td>
<td class="wider">this will be 500 wide</td>
</tr>

;) k

Rodders
06-10-2003, 05:32 PM
Here's a link to the basic HTML.....

CLICK (http://roundthebend.greater-peterborough.com/software/index.html)

khaki
06-10-2003, 05:52 PM
try :

<style type="text/css">
td {width:100px; text-align:center; border: 5px double #000; background-color: red;}
</style>

(and then modify it for yourself)
;) k