Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all

The text of the main menus appear appropriate in chrome (in the center of each menu header), but they are not appear appropriate in IE and Firefox (the text alignment not in the center of each menu header) , the following is the style of one menu header of 6 menu headers

CSS
.tp_serv2
{
    margin: 30px  15px   0px 5px;
    direction:ltr;
    font-size:14px;
    position:relative;
    top: -1px;
    left: 815px;
    color: #ffffff;
    font-size: 11px;
    font-style: normal;
    font-variant: normal;
    font-weight: bold;
    line-height: 14px;
    font-family: "Trebuchet MS", verdana;
}


if i change the left property in css to be appropriate in ie it become not appropriate in chrome.

please help

thank you
Posted
Updated 25-Oct-13 12:38pm
v2
Comments
phil.o 25-Oct-13 17:15pm    
Could you define appropriate in your specific case? You may have troubles to find answers, if you don't :)
Medo-I 25-Oct-13 18:32pm    
i mean the alignment of the text of the header in the center, but in IE not in the center, and if i change the Left property in the css to make the header's text alignment in the center, that make the alignment not in the center in the Chrome, so if it is center in Chrome it will be not in the center in IE, and if it is Center in IE it will be not in the Center in Chrome

1 solution

IE is the boss. From start of browsers now many of the things have changed in w3c standards.
All browser implemented those changes but IE still going in its own way. What a headache..
So better if you apply css using jquery. Jquery will take care of yours headache.
Else apply CSS by checking condition using two style sheets in javascript by checking appname using (Navigator.appname)

Hope this helps!
 
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