Set div width issue in IE7
# April 30, 2013 at 11:38 am
I’m facing a css issue. In IE7, I set a div width to “auto” to set the div width according to the div content. But it does not work. IE8 works fine. All css property I set in the div are
/* Inline properties */
/* style applied using a class */
font-family: “Lucida Grande” , “Arial” , sans-serif;
border: 2px solid black;
filter: alpha(opacity = 100) !important;
For reasons, I could not change Inline properties( position, overflow, top, left, zIndex, display, marginLeft, and marginTop).
If I remove width or minwidth, div width became 0. div width change with the value of minwidth or width. But I want that div width should change with it’s content.
Any help on this is much appreciated.# April 30, 2013 at 10:37 pm
This isn’t an answer but a reason why IE7 should be dropped from your browser list, currently global statistics show IE8 at around 9% of all web traffic which is extremely low and IE7 is even lower at 2-3% of all web traffic. Considering how low these numbers are I would personally set the baseline as IE9 as the chances someone visiting your website in IE 7/8 is extremely low as around 95-98% of corporations in the world use them still use them.
From a consumer level you would see higher traffic sources coming from Google Chrome, Firefox, Safari and IE9+
You must be logged in to reply to this topic.