GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Jan-2003, 02:32
smoky smoky is offline
New Member
 
Join Date: Sep 2001
Posts: 2
smoky is an unknown quantity at this point
Question

table question


how to make the table the same size ? I mean the <td> - i put the width but it becoming bigger after i ad some words to it and the next <td> is empty or smaller words? You get me?
  #2  
Old 05-Jan-2003, 02:45
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Yeah, smoky I get you...

Your best bet is to use (or learn to use) CSS' table-layout property like this:

HTML Code:
<html> <head> <!-- THIS IS THE CSS ( s t a r t ) --> <style type="text/css"> <!-- td.fix300 { table-layout:fixed; width:300px } --> </style> <!-- THIS IS THE CSS ( e n d ) --> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="fix300">This column is 300 pixels wide.</td> <td>blah...</td> </tr> <tr> <td class="fix300">This column is 300 pixels wide.</td> <td>blah...</td> </tr> <tr> <td class="fix300">This column is 300 pixels wide.</td> <td>blah...</td> </tr> </table> </body> </html>

The <td> where you want to control the size you just add:
HTML Code:
<td class="fix300">
instead of
HTML Code:
<td>

This should work with browsers with good CSS support (which is nearly every latest browser available).
 

Recent GIDBlogPrepping for deployment by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a C input question tmike C Programming Language 1 16-Sep-2003 02:31
Recall table row misunderstood MySQL / PHP Forum 3 23-Aug-2003 08:56
form in a table cell blelisa Web Design Forum 1 19-Aug-2003 09:14
[Tutorial] MySQL Basics nniehoff MySQL / PHP Forum 15 23-Mar-2003 19:42
using a button to change table contents. demtro MySQL / PHP Forum 20 02-Mar-2003 15:07

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:07.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.