i have a issue with menu that i cant change text color in mini fixed meni in this site
I tryed to add this CSS to custom CSS:
.classic-menu .menu-item a {
color: #000;
}
but when set color to #000 then color in main menu is turn black. So i want color in main menu to be white in black background, and in mini fixed menu when scroll down, to be white background with black font color. How to do this?
Thanks.
Do this in your CSS:
.classic-menu .menu-item a {
color: #fff;
}
.mini .menu-item a {
color: #000;
}
.classic-menu is basically the regular state of your menu (when the background is black)
.mini-active is basically when the mini menu is activated, this way you'll get black for the mini menu and white for the regular one.
Hope that helps!
Try this
write this code for your main menu, I think this is your main menu class
.classic-menu .menu-item a
{
background-color:#000;
color:#fff;
}
write this code for your sticky menu or scroll menu class, i don't know your scroll menu class
{
background-color:#fff;
color:#000;
}
to override this class use !important
Related
I want to keep the text in the Get Quote Button white on downward scrolling. Currently, it changes to grey along with the other navbar font. I need to isolate this button text using custom CSS so it is white at all times, but does not affect navbar menu text.
This is the code I am currently using for the menu font color.
.menu-transparent .navbar .nav>li>a {
color: #fff;}
Add this style.
.menu-transparent .navbar-fixed-top.navbar.top-nav-collapse .nav > li.getquote > a { color: #fff !important;}
I've almost successfully changed the default white text and gray background menu color in the TwentySeventeen theme for WordPress by adding the lines below to a childtheme style.css stylesheet.
Menu ScreenShot
However, the menu still very briefly displays the default menu color as I mouse off any given selection in the sub-menus. I'm a hack when it comes to CSS and have spent hours trying to find a solution on line. Any suggestions? Thank you very much.
/*Change Drop Down Menu and Sub-Menu Hover and Text Color */
.menu a:hover,
.menu li:hover>a {
background-color: rgb(220, 225, 200) !important;
/* light green */
color: #000000 !important;
}
Seems like that because that there are 2 backgrounds, one on the li
and second on the a
The grey background is on the li so you just need to "reset" it
.main-navigation li li:hover,
.main-navigation li li.focus {
background: none;
}
There's a collapsed navbar on this website
The background color of the tabs is white, and I want to change it. I tried this code in CSS:
#media (max-width: 767px) {
.nav-collapse
{
background-color: red;
}
}
And it sort of works, it adds red lines under each tab, but it does not change the background color.
You can see what it does if you visit the site on mobile and click the navbar to collapse it.
I'm trying to change this only for MOBILE.
I'm sure there's an easy solution to this, but I can't figure it out.
Can someone help?
it is because your grey background is set on anchors and not on NAV it self
if you do this:
.header ul.nav li a {
background: red;
}
it will work..
I just checked again and you have background added to 3 elements you have red on your outer wrapper, you have white added to list element and grey on your anchors
Basically in your html there is inline style either remove that or change there the color or if you wanted that to change through css use following code:
.nav-collapse ul li { backgroud-color: red !important; }
Inline style Refrence Image
I am using bootstrap's dropdown from a navigation div, and I'd like to change the color of the the sub-menu links on hover. Nothing I'm attempting works, and I can't make sense of it. It's not having any effect even when trying to run things from the chrome console.
I have created a css file where I override the defaults. The background change for normal a tags work, but the hover doesn't. Why is that? I also tried affecting the li and using !important, but none of that is having any effect.
I'm using Bootstrap 3.1.1. Here's my css:
.dropdown-menu > li > a {
color: white; /* This has an effect */
}
.dropdown-menu > li > a:hover {
background-color: red; /* This doesn't... why? */
}
And check out this jsfiddle too for a demonstration (for some reason you need to drag the result panel a whole lot to the left before you see the button). Any ideas?
edit
Note I am trying to change the background color for the links in the dropdown, not for the main button which is MyProfile.
Bootstrap defines a background image for the elements to override some clashes in their media queries. Remove the image to use a simple fill color.
You can redefine your hover as follows:
.dropdown-menu > li > a:hover {
background-image: none;
background-color: red;
}
http://jsfiddle.net/sW7Dh/4/
UPDATE: For clarity, I added the yellow background color to see what "shows through" or is "transparent"
I can't seem to figure out how to keep the same styling in this nav bar, but make the background color white, not transparent. I'd also like to get rid of the transparency between each of the drop down menu items.
http://jsfiddle.net/trevoray/VZ7qD/20/
Any help would be greatly appreciated!
Trevor
.nav {
border-radius:4px;
box-shadow: 0 3px 4px #8b8b8b;
}
You need to set background-color in following CSS class
.nav > li
{
background-color:white;
}
JS Fiddle Example