473,322 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

IE's max-width hack not working

Hi

I tried the max-width hack from Sven Tofte' for IE
(http://www.svendtofte.com/code/max_width_in_ie/)
But it seems it doesn't work 100%

The images are always shown on there max size even if they are smaller.
It seems IE just ignores the else value (the value after :)
What effects in ugly images.

You can see my test at http://www.hetpoppenhuisje.be/test/index.html
(You can look at the source to see how what the code is.)

Scroll over the images and you will see they all are shown at the max size while 1 is much smaller in reallity.

How can i work around this bug? Has anyone else had experience with this?
Or what am i doing wrong...

Thanks
Mar 21 '06 #1
1 3292
Teco
1
Super8man:


Try this:

.class {
width: expression(this.width > 533 ? 533: true);
}

I had the same problem, and it worked for me.

See more:
http://cavemonkey50.com/2005/12/the-ultimate-ie-hack-guide/

I hope you enjoy. ;)
Nov 6 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Samuel | last post by:
Is there anyway to get IE to cache a redirected image? For example, I have an page with the following: <html><body> <img src=http://site1.com/redir.php?id=12> </body></html> The image is...
2
by: Philipp | last post by:
Dear CSS list reader, IE6 does not support min-height, max-height. Is there a workaround for the following problem? http://www.scentech.ch/public/htmlcss/test1.html The left cell - where is...
1
by: ree32 | last post by:
I know IE doesn't support max height but is there anyway to get around it. As I have a Div which is scrollable. The size of the data varies so when its short I dont want a huge between this div and...
2
by: Fabri | last post by:
I would like to ask you the following: I use Macromedia Dreamweaver as an editor for HTML and Js. It also writes some js functions to simply validate forms. I always used it with no bugs. ...
15
by: greenflame | last post by:
First of all I only have IE for testing. Ok. I have a script that is supposed to show, not evaluate, the indefinite integral of something. When I run the script it just craches IE. I have tried...
9
by: torbs | last post by:
Hi I am creating a page for stretchfilm. In this page you can chose between a short medium and long version of the film at any point in the film. It is in norwegian, but just press play. URL:...
2
by: JimO | last post by:
I know IE doesnt' support a max-height property. I'm just curious, though, if there is a way to stop my #container height from growing every time I put something in it. I've tried to give it an...
1
by: RC | last post by:
I have a simple CSS as tbody { max-height: 30em; overflow: scroll } I got horizontal and vertical scroll bars for the tbody tag in Netscape and Firefox, but IE I got nothing! Any idea? Is IE...
7
by: psybert | last post by:
Hello everyone, Long time lurker, first time poster. I'm a beginner coder, and I've taught myself everything with the help and expertise of users and websites like this one. I normally figure out...
19
by: Eugeny Myunster | last post by:
I know, only simple one: #include <stdio.h> int main() { int min=0,max=0,i,arr; for(i=0;i<12;i++) arr=rand()%31-10; for(i=0;i<12;i++)
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.