Click to See Complete Forum and Search --> : IE and tables
rottiemom
08-01-2006, 06:04 PM
Hi,
I really need help with tables in IE... they are fine in other browsers. The last person who posted an answer to the thread only railed on IE being behind the times... yeah well, 80% of my web viewers use IE... so I have to program for the audience...
Anyway, origianally my tables were going haywire...I finally centered my graphic and things got a little better... now it's just the upper left cell. It seems to be too small and not conforming to the size of the cell the data sits in. Please help!
The offending page.
http://www.800soberliving.com/JRC731.html
Holly
drhowarddrfine
08-01-2006, 07:15 PM
That was probably me but I'll say it again. If it works fine in other browsers, but you want to fix your code to work in IE, then when it works in IE, it won't work in the other browsers. Until you understand you need a doctype to fix IE, you will never get your code to work. And if you don't wish to understand the basics, then you cannot be helped.
EDIT: In addition, saying you must design for IE because 80% of your users use IE means you are designing to a bug. 20% of your users may not be able to view your site properly. Learn to code correctly using a modern browser, then adjust your code for buggy IE. Just like the professionals do.
rottiemom
08-02-2006, 12:05 AM
Better 20 % not see it than 80%... I understand... I just have no idea where to start. I have no idea what a doctype is...
Does anyone have any idea how to fix the problem??/
Thanks
kiwibrit
08-02-2006, 04:11 AM
DOCTYPE reference (http://www.w3.org/QA/2002/04/valid-dtd-list.html).
DOCTYPE and Quirks mode explained (http://hsivonen.iki.fi/doctype/)
Bearing in mind the code you already have, I would recommend you using HTML 4.01 transitional.
At the very beginning of each page, even above <html> include the following code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Then validate your page mark up (http://validator.w3.org/), and your CSS (http://jigsaw.w3.org/css-validator/).
Fix the problems the validators throw up.
Then read up why IE is showing any differences you see from other browsers, and fix that - then re-validate. You may have to run conditional statements to get IE to work properly.
Come back here if you get stumped at any stage.
Good luck.
rottiemom
08-02-2006, 11:41 AM
Kiwi,
Thanks so much!
Holly