Internet explorer 8 problem? CSS / PHP solution needed thanks.?

Question by Nik: Internet explorer 8 problem? CSS / PHP solution needed thanks.?
In Fire Fox I can use (min-width:940px;) but IE seems to ignore this including IE 8.
I found the following code which appears to work, at first.

(width:expression(document.body.clientWidth < 940? "940px": "auto" );) The problem I have found with this is if the visitor was to shorten the web browser window and then maximize it again my website disappears and i'm left with a black, blank screen. Although if you were to reload the web page it reappears. But the problem remains. So is there an alternate way for css to get the min-width code working for IE 7 upwards. Alternatively is there a code in PHP which can detect the clients browser being maximized and refresh the page automatically. I don't want to use JS as it can be turned of PHP can't. Thanks for any help. Best answer:

Answer by Mr. Caveman
IE Bugs: http://www.positioniseverything.net/explorer.html

IE’s Conditional Comments: http://msdn.microsoft.com/en-us/library/ms537512.aspx

Choosing Dimensions for Your Web Page Layout:

In Search of the Holy Grail: http://www.alistapart.com/articles/holygrail/
http://www.elated.com/articles/choosing-dimensions-for-your-web-page-layout/
How to create flexible sites quickly using standards like CSS and XHTML: http://www.ibm.com/developerworks/web/library/wa-rapid/

Care With Font Size: http://www.w3.org/QA/Tips/font-size

Why Validate?: http://validator.w3.org/docs/why.html
CSS Validator: http://jigsaw.w3.org/css-validator/
HTML Validator: http://validator.w3.org/#validate_by_uri+with_options
But it Doesn’t Validate : http://net.tutsplus.com/articles/general/but-it-doesnt-validate/

Ron

Give your answer to this question below!

Revisions

There are no revisions for this post.

Tags: , , , , , ,

No comments yet.

Leave a Reply