![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I am trying to create a page with a background image at the top left, and another on the bottom right. In my ignorance (should have looked at the compatibility matrix before I did it) I set a min-height on the container I use for my left hand column so that if the content is short it will be padded out, i.e. body { font-family: arial, helvetica, sans-serif; font-size: x-small; color: #000; background: #fff url(images/bottomRight.jpg) no-repeat bottom right; margin: 0px; } /* * The main containter for the content */ #container { background: url(images/topLeft.jpg) no-repeat top left; padding: 0px 16em 0px 110px; margin: 0px; min-height: 700px; } Of course Internet Explorer (blessed be its name) ignores the min-height and truncates the image. Has anyone got a clue how I can get round this, preferably without using tables. I have looked at Andrew Clover's minmax.js, but this seems to rely on the attribute actually being in the HTML file, and not the CSS. |
#2
| ||||
| ||||
|
|
set up a class which sets the HEIGHT property. |
|
then use ASP/PHP whatever to detect the browser |
|
and if IE, create a div with that class, else create a div without the class. |
|
this way IE will get the height property which it will respect but it will be hidden from mozilla which will just see your existing style using min-height. this method doesnt use JS so will work in any browser. |
#3
| |||
| |||
|
|
Disclaimer: I don;t actually do this myself (I try to produce pages for the WWW, not pander to one specific browser, no matter how popular it might be), so I don't have a working recipe, but if I had to do it, that's where I'd be looking first. I gather that the syntax goes something like this !--[if IE] .. ![endif]-- |
![]() |
| Thread Tools | |
| Display Modes | |
| |