- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I have used below mentioned css for fluid images but it works in some images and some images are not at all fluid and remain static.
what to do? no idea, pls help
img{
border:0; max-width: 100%; height: auto; width: auto9; /* ie8 */
}
are the small images which dont scale too small? e.g. the are may be 1000px but the image width might only be 900px wide?
See if width 100% fixes it or make the original image larger?
Images which are working fine are :
and not working images are
nothing defined in “img1” class
If you set the dimensions in “inline CSS” it will override anything you may have set in your CSS sheet (probably).
Try removing the dimensions from your HTML and see what happens.
img{ border:0; max-width: 100%; height: auto; width: auto9; /* ie8 */ }
What is with the “9” after the “width: auto”
It’s an IE hack
actually that isn’t necessarily inline css , its considered more of a html img attribute hence why I think his img css overrides those.
I’ve run into this program before in which IE8 or less just loads the actual img size so if our img 1 was like 600×400 it would load the whole thing and doesn’t resize.
Do you know what browsers are giving you the problem I know you can add -ms-interpolation-mode:bicubic; to make it resize more smoothly.