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?
Strange Problem
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
-
blackbeard
- Forum Contributor
- Posts: 123
- Joined: Thu Aug 03, 2006 6:20 pm
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.
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.