Is your max-width or max-height css not working in IE8? Neither was mine. I found plenty of hacks and ways around it, but none of them solved the issue once and for all.

One great little snip-it I found along the way was how to add inline hacks to the CSS file, for example:

width:200px9; /* ie8 and earlier */
height:200px9; /* ie8 and earlier */

You can use that, or 8 for IE7 and previous, etc. Great little trick.

BUT, the real culprit? The doctype! Apparently IE8 doesn’t recognise this:

!doctype html

But it DOES recognise this:

!DOCTYPE html

/end.


We'd love to
hear from you

We've prepared a simple project planner to get started.

Lets get started

Or send us a
message

Phone: (07) 3878 1151

Address: Level 2 19 Hope Street,
South Brisbane, 4101, QLD, Australia

  • This field is for validation purposes and should be left unchanged.
css.php