Strange Problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Strange Problem

Post by wizzard »

Hello,

I have a strange problem with my tables.

http://www.vakantiebegin.be/contact.html

http://www.vakantiebegin.be/

Visit the above 2 links and you will see that the colums width is changing and i don't know whats wrong because i set in my css file the width for the left middle and right table.

But when i add a table in my middle table then the size is changing automatic even when i set the width on 300px when the main width of the middle column is 490px.

Can someone give me any advice please?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The tables stay the same in FF. What browser are you using to check?
blackbeard
Forum Contributor
Posts: 123
Joined: Thu Aug 03, 2006 6:20 pm

Post by blackbeard »

If I remember right, you need to set the width on the table itself, not the elements. Use table-layout: fixed in your CSS declaration. After setting the width on the table, then you can set the td element widths as needed.

As a side note, if you're using CSS, you'd probably be better off using div tags, and using them to separate out your content.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

The tables stay the same in FF.
Ditto for Bon Echo
Post Reply