By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,738 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,738 IT Pros & Developers. It's quick & easy.

Help with tables

P: 67
I just built a website and am having some trouble setting the height of a table cell.

the site is

The problem i am having is the top left cell (with the logo) is not responding to a height="" attribute and is pushing the navigation down the page. It seems to work fine with firefox however ie does not.

I would paste the code here but it might be easier if someone could just go to the site and look at it. heres a link to a problem page:

Any help would be appreciated,
Jan 16 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 5K+
P: 7,435
I would never use tables for layout, and I never have, so I have a lot of trouble helping people who do. The validator complains about your encoding and can't figure out line 35 for some reason. The problem goes away when you use a proper doctype.

New pages should always use a strict doctype. But you are using deprecated code which will force you to use a transitional one. The one you are using is incorrect. Use this one:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

Once you do that, putting a margin:0; padding:0; on your img in your css decreases the gap but you have not closed all your tags in some areas. Validate your html and fix those errors.
Jan 16 '07 #2

P: 67
Thanks for the help, it got me a little closer to what i am looking for. If you dont use tables for layout how do you go about it? I used to build pages when i was a teen so im sure my methods are a little outdated.

Jan 18 '07 #3

Expert 100+
P: 1,892
You use <div>'s and CSS to address all/most of the attributes. Here is a link that should help get you started.
Jan 18 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.