Click here to Skip to main content
15,915,029 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
the labels and text boxes are not aligned properly in IE8 and IE9 browsers.
where as there are showing propery in ie 7 and previous versions
Posted
Comments
VishwaKL 13-Dec-12 5:30am    
http://www.mojoportal.com/fixing-design-problems-in-internet-explorer check this link it may helpful

1 solution

You can do it by adding different style sheets for different IE browsers as we do in our projects.

You need to do like below in your pages head section.
XML
<!--[if !IE]><!-->
    <link rel="stylesheet" type="text/css" href="Styles/style.css" />
<!--<![endif]-->
<!--[if IE 7]>
    <link href="Styles/ie7-style.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 8]>
    <link href="Styles/ie8-style.css" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if IE 9]>
    <link href="Styles/ie9-style.css" rel="stylesheet" type="text/css">
<![endif]-->

So, you will have three different style sheets for different IE browsers.
Then you can write whatever styles you want to do in those files separately by checking them in browsers F12 window.

Thanks...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900