| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Menu a:hover CSS | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Back again having fun playing with the CSS!
This is what i have so far; Code:
Problem with this is that the .navbar seems to have a property that keeps the a:hover grey and I can't seem to change it what so ever! any thoughts?
__________________
X-Cart Version: 5 License products: X-Cart Gold Product Configurator Feature Comparison Refine Filters |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Please read about the CSS specificity:
https://www.smashingmagazine.com/2007/07/css-specificity-things-you-should-know/ I believe you can solve this by adding an extra CSS class to the selectors.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
![]() Quote:
When I add this code into the .navbar it makes the whole bar itself hover with yellow but the actual menu items remain grey when hovered... I'm stumped!
__________________
X-Cart Version: 5 License products: X-Cart Gold Product Configurator Feature Comparison Refine Filters |
|||||||
#4
|
|||||||||
|
|||||||||
![]() No! I mean you should add an extra class to selectors like this:
".navbar-inverse .navbar-nav > li > a:hover" For example, ".navbar.navbar-inverse .navbar-nav > li > a:hover". Or "#page .navbar-inverse .navbar-nav > li > a:hover". This will increase the CSS specificity of these rules and make them override other rules that make menu items gray.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#5
|
|||||||
|
|||||||
![]() Really appreciate the help, I'm obviously not experienced and learning as I go
The line of code you mentioned above; ".navbar-inverse .navbar-nav > li > a:hover" Is already within the CSS, 12th row.
__________________
X-Cart Version: 5 License products: X-Cart Gold Product Configurator Feature Comparison Refine Filters |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Yes, it is in the custom CSS. But I believe there is another CSS file having the same selector, and since that file is loaded later, its rules override yours.
So, you should add one more tag, or a css class, to the selector. Like this: ".navbar.navbar-inverse .navbar-nav > li > a:hover". Or this: "#page .navbar-inverse .navbar-nav > li > a:hover". Perhaps you need more extra selectors.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#7
|
|||||||
|
|||||||
![]() i am having the similar issues no matter what code i put in the custom css the top menu has pink links can someone help heres my page for people to look what i mean also how do i get that background image to fill the whole page instead of just half way thanks in advance www.heinz57beans.com/xcart
__________________
5 |
|||||||
#8
|
|||||||
|
|||||||
![]() i have the same issue can someone please help me my navbar menu is staying a pink color no matter what code i put in css also have issue with background image only showing half screen please take a look at my page so you can see faults what i mean
__________________
5 |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Quote:
Code:
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#10
|
|||||||
|
|||||||
![]() Hi guys,
I got mine working just fine using qualiteam's code; Quote:
__________________
X-Cart Version: 5 License products: X-Cart Gold Product Configurator Feature Comparison Refine Filters |
|||||||
|
|||
X-Cart forums © 2001-2020
|