Change Quick lunch Style using CSS



1. Add Webpart HTML Form Webpart in the page you want to change style.
2. Add this script css below in HTML Form Webpart :

<style>
/* |--------- Quicklaunch -----------| */
.s4-ql ul.root ul {
margin-bottom:5px;
}
/* Outher nav element */
#s4-leftpanel-content{
background-color:#eeeee!important;
border:1px #d8d6d7 solid!important;
border:0px!important
}
/* Inner nav element */
.menu-vertical {
padding-right:10px!important;
padding-left:10px!important;
}
/* Inner Inner nav element */
.menu-vertical > ul.root {
padding-top:3px;
}
/* mainlinks (Header) */
.menu-vertical > ul.root > li.static > .menu-item{
border-bottom:1px #555 solid!important;
padding:1px 1px 1px 0px!important;
color:#3c4fgb!important;
font-weight:bold;
}
/* Sublinks */
.menu-vertical > ul.root > li.static > ul.static  {
margin-top:5px; margin-bottom:5px;
}
.menu-vertical > ul.root > li.static > ul.static > li.static > a > span > span {
margin-top:2px
}
/* Selected */
.menu-vertical > ul.root > li.selected > a {
background-color:transparent!important;
border:0px; margin:0px; padding:0px;
}
.menu-vertical > ul.root > li.static > ul.static > li > a.selected {
background-image:none!important;
background-color:transparent;
color:Green!important;
border:0px; margin-top:1px;
}
/* no border for the QL when no links */
.s4-specialNavLinkList {
border:0px
}
/* Liststyle square */
.s4-ql ul.root ul > li  {
padding-top:0px;
background-image:url('/sites/ProTest/LT/LS1/sp2010tmplt/sa/Arrow-Right.png');
background-repeat:no-repeat;
background-position:0.0em;
}
/* Liststyle square links */
.s4-ql ul.root ul > li > a {
display: inline-block!important;
padding-top:0px;
padding-bottom:0px!important;
padding-left:0px!important;
margin-left:16px;
vertical-align:top!important;
}
</style>

3. After you copy the css script close text editor and then save.  J

Komentar

Postingan populer dari blog ini

You cannot view a list in Datasheet view on a SharePoint

CAML query with nested AND's and OR's for multiple fields in SharePoint

Synchronizing an Excel file with SharePoint