I am using HTML5 < section > tag in my application, padding for < section > tag works fine in chrome,ff and safari but its not working in IE..
I tried adding display:block; with the section style but its not useful…
any solution?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Many older browsers don’t understand HTML5 tags like
sectionand use the fallback of treating them as inline items in the flow of the document.IE goes a step beyond this and totally ignores HTML5 tags. To fix this, you’ll need to add the tags to the document via Javascript. Fortunately, there’s a very nice HTML5Shiv that you can embed in the head of your html like so:
Any IE less than IE9 will now use this script to enable the common HTML5 blocks.
You will still need to use CSS to make the tags display as blocks. I use: