Dealing with styling in IE7 can be quite challenging, especially when working within a WebCenter Portal application where conditional statements cannot be used to load specific stylesheets. Instead, skins are utilized, which are essentially CSS files.
Is there a way to specify a particular CSS attribute value for IE7 without compromising the design for other browsers?
For example, let's say we have a class called "filterbox":
.filterbox{
padding:12px 0;
margin:12px 0
}
The margin setting works well for most browsers, but not in IE7. If we set margin:0;
for IE7, the style looks great in IE7 but breaks in other browsers.
How can we adjust this margin within the same CSS class to accommodate both IE7 and non-IE7 browsers?
Looking forward to your suggestions.