Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 02-13-2010, 09:40 PM table cell size
jfl
Novice Talker

Posts: 10
Trades: 0
I am trying to design a webpage that will have a graphic serve as the background for a table that will have weblinks and a date display in certain of the table cells. If I put &nbsp in each table cell each cell in the table remains the same size. But if I put so much as 1 character of text in any cell every cell in its column ends up much larger than the other cells and way too large for the simple text that is being displayed.

I have tried width and colspan tags in individual cells and I have tried colgroup tags for the entire table but as soon as I put text of any kind in a cell I have the same problem with the size for the cells in the column that has the cell with the text.

Can someone explain how and why text distorts the size of table cells and what I can do about it?
jfl is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-13-2010, 10:00 PM Re: table cell size
Extreme Talker

Posts: 201
Name: Brian
Trades: 0
Have you tried setting the entire table to a specific width and height instad of individual cells?
bdg1115 is offline
Reply With Quote
View Public Profile
 
Old 02-13-2010, 10:17 PM Re: table cell size
jfl
Novice Talker

Posts: 10
Trades: 0
Quote:
Originally Posted by bdg1115 View Post
Have you tried setting the entire table to a specific width and height instad of individual cells?
I designed the background graphic to cover most of the browser’s display area (so I can set the background color for the entire page and have a border around the table) and then I set the table’s width at 98% of that area and used enough <tr></tr> to make the table large enough to display the entire background graphic from left to right and top to bottom.

I was not aware that you could set a table’s height, or either I used to know about it but cannot remember due to time and illness since I designed my last website back in 2003. I am having to re-learn what I once knew how to do. How do I set a table’s height? And if I set the height, how does this affect the number and height of the rows?

I used bitmap images in my last website, but I cannot make heads or tails out of the code that I wrote for it. I am hoping that I can save some time and effort by using tables.
jfl is offline
Reply With Quote
View Public Profile
 
Old 02-14-2010, 04:30 AM Re: table cell size
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Can someone explain how and why text distorts the size of table cells and what I can do about it?
because that's what table cells do.

Get away from tables for layout!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-15-2010, 09:52 AM Re: table cell size
Skilled Talker

Posts: 90
Location: Iowa
Trades: 0
Can you post the URL of the site so we can have a look at the code?
__________________

Please login or register to view this content. Registration is FREE
Christian Hosting and Design

Please login or register to view this content. Registration is FREE
mcorton is offline
Reply With Quote
View Public Profile Visit mcorton's homepage!
 
Old 02-15-2010, 05:44 PM Re: table cell size
jfl
Novice Talker

Posts: 10
Trades: 0
Quote:
Originally Posted by mcorton View Post
Can you post the URL of the site so we can have a look at the code?
I don’t have a url yet. The website only exists on my hard drive at the moment.

The online tutorials I had been using were less than clear. I tried using colgroup with span and width, but for some reason it didn’t work. I wasn’t sure where to put the tags or where to put the closing tags or how many I needed to use.

But I finally managed to put a width tag in each <td> and I think this has worked. I have enough rows and columns to make the whole background graphic display and I put %nbsp in all of the <td>’s and then put some sample text in one of them to make sure the cells remained the same size. I may have to adjust the width tags once I have a better idea of what I want them to contain, but I think it will work.
jfl is offline
Reply With Quote
View Public Profile
 
Old 02-18-2010, 06:07 AM Re: table cell size
frobak's Avatar
Novice Talker

Posts: 10
Name: Alan Smith
Location: Milton Keynes
Trades: 0
you need to check css my friend!!!
__________________

Please login or register to view this content. Registration is FREE
frobak is offline
Reply With Quote
View Public Profile Visit frobak's homepage!
 
Reply     « Reply to table cell size
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40708 seconds with 12 queries