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
Problem with inconsistent table widths...screws up alignment.
Old 02-25-2010, 08:01 AM Problem with inconsistent table widths...screws up alignment.
Junior Talker

Posts: 1
Trades: 0
Hi guys,

I have a problem with table widths used to arrange content on a website.

Why am I not using DIVs? Because it's too time consuming at the moment to convert it over, and my client is not familiar with DIVs and has no time to learn it. So I have to stick to using tables for him to maintain on his own.

Here's a quick rundown on my table layout.

-----------------------------
|TD1-------------|TD1a****|
------------------
|TD2-------------|********|
------------------
|TD3-------------|********|
------------------
|TD4-------------|********|
|Table 2----------|********|
------------------------------
|TD5-------------|********|
------------------------------

That's my attempt to illustrate my layout. I'm using * and - as fillers, the editor removes all the empty spaces...
My problem is, TD1 to TD3 and TD5 aligns nicely vertically - they all have the same / correct width.

However, TD4 with a table inside is slight shorter in width than it should. About 1 or 2 px. The following shows the screenshots.


zoomed in....


I need to get that TD4 with the table inside to have the same width as the others.

I have tried removing all BORDER and BORDERCOLOR codes from all the table tags, no use. I tried using both CSS and the table tag WIDTH to control it, still doesn't work.

Need suggestions!!

Please click here to see my code. It's a little messy...
http://www.thienkaiwei.com/index7.html
Kai2810 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-26-2010, 08:22 AM Re: Problem with inconsistent table widths...screws up alignment.
Skilled Talker

Posts: 52
Name: Steve
Location: Iowa
Trades: 0
Have you messed with cell spacing and padding?
1quick6 is offline
Reply With Quote
View Public Profile
 
Old 02-26-2010, 10:02 AM Re: Problem with inconsistent table widths...screws up alignment.
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
you probably dont want to hear this .. but..
maybe use DIV's instead?

You will find the layout more consistent and better to edit.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Old 02-27-2010, 03:15 PM Re: Problem with inconsistent table widths...screws up alignment.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I have to agree.. tables for layout belong back in the 90's, CSS-based layouts are a better, cleaner way to go.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem with inconsistent table widths...screws up alignment.
 

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.47142 seconds with 12 queries