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;}
Related
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 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
i have some trouble with my menu.
See:
http://marketing-für-immobilien.de/
when i hover over the menu the background color change to blue and the font color turns to white. when i hover to the submenu same procedure but the main menu font color turns into blue. I cound´t find the right css to keep the white color for the main menu when i hover to the submenu.
Would be very fine, if someone can help me
Cheers
Sven
You have 2 different :hover definitions.
The first on the li tag of your main menu. This set the li background to blue.
The second is on the a tag of your main menu. This set the font color of the main menu to white.
And here is your mistake. If you move your cursor to the submenu, the cursor is still on the li tag of main menu, BUT not on the a tag anymore. So the second hover get off.
ADD to your CSS:
header.navbar nav > div > ul > li:hover {
background-color: #004b96;
}
this one:
header.navbar nav > div > ul > li:hover a {
color: #fff;
}
And remove:
header.navbar a:hover {
color: #fff;
}
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/
I have this page HERE (its for a project). At the top I have a #font-face dingbat mail character after the word "contact" in the top nav. I am trying to get it to transition to the color red on hover along with the word contact but I am not sure how to accomplish this, as of right now its stays black. Also when on the contact page I would like it to stay red like the word contact created with a css class. But anything I try with the transition I can't get to work on this mail character. Is this possible?
Thank You!
CSS is here
Try using the selector:
nav#main-nav ul li a:hover span {
text-decoration: overline;
color: #F00;
}
See if it goes red now.