Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

How does SharePoint 2010 apply css classes to list items (links) in quick launch?

$
0
0

I have CSS applied to my quick launch to change the color of a selected link (so you know where you are visually)

.menu-vertical > ul.root > li.static > ul.static > li > a.selected{
color: pick any color!important;
}

Anyone notice that if SharePoint generated the link to the QL (i.e. create a library/list/etc.) this works fine. Upon render, SharePoint applies the class <a class="static selected menu-item">.  However, if you go to site actions --> site settings --> navigation and add a link to the QL SharePoint renders as <a class="static menu-item">.   Notice, no "selected" so the CSS for a.selected will NEVER get applied. 

Anyone know how to remedy this?


thanks,
Stephen


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>