Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my menu is become unmanageable on various browsers and look proper i have to adjust page zoom. please have a look my css i can not find the exact problem.
CSS
div.xxnav {
    background-image:url(../assets/nav.png);
    background-repeat:repeat-y;
    background-position:top left;
    /*width:1200px;*/
    height:30px;
    margin: 5px auto  0 27px;
    padding-right:714px;
    text-transform:uppercase;
    font-weight:bold;
    padding-top:12px;
}


XML
<div class="xxnav">
<ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="../UserPanel/Default.aspx">Home</a></li>
        <li><a  href="../UserPanel/AboutUs.aspx">About</a></li>
        <li><a  href="../UserPanel/frmGallery.aspx">Gallery</a></li>
        <li><a  href="../UserPanel/Services.aspx">Services&nbsp;</a></li>

        <li><a  href="../UserPanel/Contact.aspx">Contact</a></li>
      </ul>
    </div>
Posted
Updated 26-Oct-13 0:22am
v2

IE is BOSS. From the start browsers era w3c has given many standards almost all browsers following and updating as per standard. IE is going on his own way.
To solve this either apply css using jquery or use two style sheet one for IE and one for other
by checking appname (navigator.AppName)

Hope this helps

use like below

XML
<script type="text/javascript">
var browser=navigator.appName;
if browser == "Microsoft Internet Explorer" {
document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\"IE.css\">");
}
else {
document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\"generic.css\">");
}
</script>
 
Share this answer
 
Comments
Mohd Arif Khan 26-Oct-13 7:04am    
Thanks Zubair. but problem is arising on firefox and chrome and Also The IE
It may be because of having older and newer version of browser!!!

you can go with the following script

XML
<script type="text/javascript">
var browser=navigator.appName;
if browser == "Microsoft Internet Explorer" {
document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\"IE.css\">");
}
else if browser == "Firefox" {
document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\"FF.css\">");
}
else {
document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\"generic.css\">");
}
</script>
 
Share this answer
 
v2

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