View Full Version : CSS2 and IE
sambartle
22-03-2004, 18:53
I have a bit of a problem with a site im trying to create (1st time using anything other than standard html), where IE doesnt do what i think it should
I may be wrong about what i think should happen but mozilla does what i expect so i suspect IE.
Instead of trying to explain i will instead link to http://www.sambartle.co.uk where the problem can be seen if you view in Mozilla then IE, the source is very very simple as i wouldnt want anyone to spend ages trying to read that.
In ie the background of the iframe isnt transparent like mozilla, and the whole content frame (a div really) doesnt bother to be 70% high as i set it.
If anyone can spare a few secs to look over it and has any ideas it'll save me going back to tables/frames, which id rather not do. (im trying to learn CSS/xHTML really)
Well you can fix it by removing the first line of your markup.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
This would suggest that IE's XHTML renderer doesnt work with CSS2. IE has CSS2 issues with element positioning / sizing in HTML4, forcing IE to use the stricter XHTML with CSS2 is asking for trouble. Off the top of my head i cant think how to fix this without falling back to HTML4.0 Transitional.
Also, your XHTML document is not valid, check it out using:
http://validator.w3.org/
sambartle
10-04-2004, 01:02
Clarksy cheers for that and thanks for looking over the code..
I've given up on the current approach because no matter what i did there was no way to get IE and Mozilla happy AND validate as xHTML/CSS Strict
The XHTML invalidation is probably caused by me messing with the page after i posted, i meant to make a copy but of course forgot so what you looked at may not have been exactly what i was attempting to fix.
CSS is impressive but i think that w3c need to stop developing XHTML and CSS and wait until the browser support is there, there are enough incompatibilities now that trying to code a standards based page without any kind of tricks or workrounds is just impossible, without the standards charging off even futher into the distance.
Someone really does need to take control, things are getting ridiculous.
Originally posted by sambartle
Clarksy cheers for that and thanks for looking over the code..
I've given up on the current approach because no matter what i did there was no way to get IE and Mozilla happy AND validate as xHTML/CSS Strict
The XHTML invalidation is probably caused by me messing with the page after i posted, i meant to make a copy but of course forgot so what you looked at may not have been exactly what i was attempting to fix.
CSS is impressive but i think that w3c need to stop developing XHTML and CSS and wait until the browser support is there, there are enough incompatibilities now that trying to code a standards based page without any kind of tricks or workrounds is just impossible, without the standards charging off even futher into the distance.
Someone really does need to take control, things are getting ridiculous.
I see what your saying, but I don't agree.
Just take a look at the Zen Gardens (http://www.csszengarden.com/). A fabulous website, every single design validates to xhtml 1.0 strict, and I believe every single design also looks fine in most if not all css-supporting browsers. Of course, you miss out on some funky stuff if you use IE, but that's up to you.
As for the normal user, I don't consider myself a web-professional on any level, but I managed to create and maintain a funky xhtml 1.1 compliant pure-css website - http://zyon.org
It takes abit more effort, but it's far from impossible.
shifty.ricky
10-04-2004, 13:26
I think the browsers should change not w3c. Its is MS trying to introduce its own standards.
w3c set the standards. Browers have to follow. Not theother way round.
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.