Levi
Ultimate Member
Ok so I'm doing my new website and something I thought would be fairly simple is turning out to be completely annoying/stupid/pita.
I'm using unordered lists to create my menu, menu layout works fine, links all work etc etc
Start styling it up and get it working fine for hover using the ul li a:hover and setting a background colour. Thought highlighting the 'active page' would work the same way using ul li a:active but no.... this doesn't work like the other selectors when used with unordered lists, it works fine with normal links :angry:
So seeing as I want to highlight some anchor links which are also in a unordered list I now need to figure out some work around so if anyone wants to suggest anything would be greatly appreciated.
I've found a jquery/javascript script for the anchor list and I know I can add a class to the menu to 'highlight' the required background but seriously this is what :active is for so it's got to be easier than me needing to use javascript or additional markup!!!!
I'm using unordered lists to create my menu, menu layout works fine, links all work etc etc
Start styling it up and get it working fine for hover using the ul li a:hover and setting a background colour. Thought highlighting the 'active page' would work the same way using ul li a:active but no.... this doesn't work like the other selectors when used with unordered lists, it works fine with normal links :angry:
So seeing as I want to highlight some anchor links which are also in a unordered list I now need to figure out some work around so if anyone wants to suggest anything would be greatly appreciated.
I've found a jquery/javascript script for the anchor list and I know I can add a class to the menu to 'highlight' the required background but seriously this is what :active is for so it's got to be easier than me needing to use javascript or additional markup!!!!