0

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.

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

magento provides the doctype declaration by default. there is no need to alter it.
@ArunWilson check my answer below. you forgot <style> tag.
0

CSS styles should be written in <style> tag. like this:

<!--[if IE 8]>
  <style>
      .category-grid .item { 
          display:inline-block !important; 
      }
  </style>
<![endif]-->

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.