Title: IE CSS MaxWidth
Last modified: August 18, 2016

---

# IE CSS MaxWidth

 *  [piginzen](https://wordpress.org/support/users/piginzen/)
 * (@piginzen)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/ie-css-maxwidth/)
 * I am using the MX4 theme and the max-width css tag associated with an image is
   not working with IE…
 * Is there a work around someone has found?
 * Thanks
 * this is what i have in my header.php:
    <style> entry img {width:expression(if(
   this.clientWidth>300)this.width=300);} </style>
 * and this is in my css:
    .entry img { background-color: #ffffff; border: 1px solid#
   dddddd; /*-moz-border-radius:5px;*/ padding: 4px; max-width: 334px; }

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Orin](https://wordpress.org/support/users/orin/)
 * (@orin)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/ie-css-maxwidth/#post-195251)
 * Unfortunately, IE just doesn’t support some properties. One of those is max-width.
   Another is clip, as I discovered. Not much can be done about it.
 *  [joeedmon](https://wordpress.org/support/users/joeedmon/)
 * (@joeedmon)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/ie-css-maxwidth/#post-195321)
 * Check out [RJO](http://rjohara.net/server/css-figures-captions/) for some examples
   of what’s possible without having IE support for max-width.
 * There is also a special script language that MS uses called ‘expression’ that
   fits into your CSS. I used it a few years ago for a situation similar to yours.
   I think it’s just a way to pass on a javascript command to CSS. Unfortunately,
   I can’t find that little code snippet anymore. It worked like a charm though.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/ie-css-maxwidth/#post-195322)
 * There’s also a javascript: minmax.js. Works great, if you want it let me know
   and post an email, I’ll send it to you.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/ie-css-maxwidth/#post-195323)
 * Is it this one?
    [http://www.doxdesk.com/software/js/minmax.html](http://www.doxdesk.com/software/js/minmax.html)
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/ie-css-maxwidth/#post-195324)
 * Could be, don’t know for sure. I got it from kickass….

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘IE CSS MaxWidth’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 5 participants
 * Last reply from: [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/ie-css-maxwidth/#post-195324)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
