Background-color top-menu doesn't change
-
Mod
Quote:However the color remains darkblue in Internet Explorer.That has has been an ongoing issue. To my knowledge, we don’t have a solution yet.
Mod
Quote:Isn’t there a way to use CSS to force a colorYou can always add the
!importantdeclaration to override CSS cascading and inheritance rules. But this only works if the browser in question supports it.Quote:where does it get the dark blue from?From its built-in default style sheet, presumably.
The real solution here is to encourage everybody to use a more standards-compliant browser. Maybe once Microsoft sees its market share dissipating, it will start doing things properly. (For what it’s worth, I teach six sections of computers each day—two in the middle school and four in the high school—and none of my students are allowed to use IE. They protest until they discover what they have been missing out on by not using Firefox or Chrome. Hopefully, they will take the word home with them.)
I already encourage people to use either Chrome or Firefox, it’s just so much easier for webdesigners and for the users aswell. I’m a Business IT & Management student so i know about the problems that IE has.
For this site however i expect lots a users still using Internet Explorer. It’s for a beauty parlour of a friend of mine and 95% of those costumers are older ladies, who most likely use IE.
For this situation it’s best to try and get a workaround. I´m trying to discover where the color (darkblue) is located in the CSS but i can´t seem to figure it out. Could you possibly try to find it, i can always give you the login-codes for the website if that’s easier.
It would really be a big help.
Mod
Quote:I´m trying to discover where the color (darkblue) is located in the CSS but i can´t seem to figure it out.It’s hard-coded into Internet Explorer itself (specifically, in the Trident rendering engine that MSIE uses). Every web browser has a built-in way of rendering items if there is not a style associated with it, or if the browser can’t figure out how to render it.
Quote:Is there a way to force IE to use a different CSS code for the #menu-wrap so we can force it to use #ddd as a color?You could try writing a custom function to pass some conditional CSS to all versions of IE. Here is a raw code. Put this anywhere between opening (
<?php) and closing (?>) php tags in your child theme’s functions.php file.function ie_header_menu_colour() {
?>
<!--[if IE]>
<style type="text/css" media="screen">
#header-menu-wrap {background: #ddd !important;}
</style>
<![endif]-->
<?php
}
add_action('wp-head','ie_header_menu_colour');
Viewing 7 posts - 11 through 17 (of 17 total)
- 1
- 2
- You must be logged in to reply to this topic.
