max-width is the property used for limiting the width of the image to predefined value. So it will help to show small sized pictures to display in their original size while resizing the large-sized images into a predefined maximum width.
By doing this we can keep avoid any misalignment of web page due to large-sized images while keeping quality of small-sized images.
But this max-width property won't work in IE 6(Internet Explorer 6).
So we can use the below workaround to make it work in IE6 also. The below style will limit the image width to 300px.
imgstyle {
max-width: 300px;
width:expression(this.width > 300 ? "300px" : this.width);
}
More Articles...
Friday, August 21, 2009
Search This Blog
Blog Archive
-
▼
2009
(257)
-
▼
August
(14)
- Framework in QTP
- Disadvantage of Descriptive Programming in QTP
- We have added enhanced features to our Quiz
- Google includes Label Cloud for Blogger Blogs
- Use className instead of class for IE.
- Medical and Health Care News
- Tamil News
- Google SMS Channel for getting Free SMS in India.
- Submit your Article link or URL of your website or...
- CSS - Workaround for max-width property in IE6
- "Hans Christian Ørsted" is getting introduced by ...
- Why Google is acquiring On2?
- FCC inquires Apple about reason for Google Voice r...
- SEO friendly URL or Pretty URL using Apache mod_re...
-
▼
August
(14)

AI Course | Bundle Offer | Unlocking AI | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | SQL ebook | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment