Reputation: 47
I am new to magento,
I have a project in Magento but Its layout is breaking in IE8,
I tried
<!--[if IE 8]>
.category-grid .item {
display:inline-block !important;
}
<![endif]-->
these codes in css file but no effect.
Upvotes: 0
Views: 417
Reputation: 41852
CSS styles should be written in <style>
tag. like this:
<!--[if IE 8]>
<style>
.category-grid .item {
display:inline-block !important;
}
</style>
<![endif]-->
Upvotes: 0
Reputation: 26
display:inline-block will not work in IE8 if you dont have <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
before your HTML tag.
Upvotes: 1