HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
vary cell width
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
donnam



Joined: 25 Jul 2008
Posts: 3

PostPosted: Fri Jul 25, 2008 10:12 am     vary cell width Reply with quote

This is my first time using HTML. I using Survey Monkey, a web-based survey design & hosting site, and it supports some HTML within the "canned" formats.

I am trying to create an HTML table to serve as a page header.
The table consists of 1 row, with 6 cells.
The text in the cells varies in width, but I'd like the cells themselves to be uniform in size, with the text centered within.
No luck so far.
I would greatly appreciate some help!

My latest attempt at coding this is below:

<font size="3" face="Ariel">
<table frame="box">
<tr>
<td align=center>Introduction</td>
<td align=center>Law School</td>
<td align=center>Costs of Education</td>
<td align=center>Career Patterns</td>
<td align=center>Work & Family</td>
<td align=center>Demographics</td>
</tr></font>
</table>
Straystudio



Joined: 14 Apr 2008
Posts: 264
Location: Nord Italy

PostPosted: Fri Jul 25, 2008 10:50 am     Reply with quote

Arial, not Ariel

Automatically, table-cells auto-resize based on which volume of the content.

Otherwise, You can assing width="" to each cell; or to one cell.

Value can be either in pixel or % percentuage; and even both, part of cells in px, other in %.
Do
Code:
 <td width="15%" align=center>
15% x 6 = 90% not 100%, I know.
It works fine the same, though as what it matters is all the cell having equal width-value.
Computer understands "keep same width".

Then, You can enter width="100%" in TABLE tag, too; while border="1" helps graetly to visualize how layout sorts out (after, You will set border as zero).
donnam



Joined: 25 Jul 2008
Posts: 3

PostPosted: Fri Jul 25, 2008 10:58 am     Thank you! Reply with quote

I'll give this a try.

And, so that's why my font wasn't changing! I suppose there is no "little mermaid" font, huh?
donnam



Joined: 25 Jul 2008
Posts: 3

PostPosted: Fri Jul 25, 2008 11:21 am     It worked! Reply with quote

Thanks for your prompt and extremely helpful reply!
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial