0

I want to define a blue border for all the top navigation ribbons, so using Firebug I have detected the classes which are responsible for the ribbon as shown in the below two images:-

So I use the following CSS rules inside my custom CSS document:-

.ms-cui-tabBody{
    border-color:#008CD2 #008CD2 #008CD2 #008CD2 !important;
    border-top-color:#008CD2 !important;

}
.ms-cui-tabBody.ms-cui-tabBody-gr{
    border-color:#008CD2 #008CD2 #008CD2 #008CD2 !important;
border-top-color:#008CD2 !important;
}

But unfortunately this has changed only the buttom boarder colour to be blue, while the “Calendar” tab still have green upper boarder, and “Page Option” tab have no upper boarder color ? can anyone advice on how I can change the boarder to be all blue? Thanks.

2
  • 3
    From a user experience perspective it's not a wise decision to make all tabs uniform. They use different color for different purposes to make it easier for the user to find the correct tab. Take a look at your Word or Excel there are different colors too. Sep 29, 2013 at 11:21
  • i know , but this what users is asking to have all colors within sharepoint to be blue.
    – John John
    Sep 29, 2013 at 18:20

1 Answer 1

2

You need to know that each ribbon has a different background color, border, etc. to differentiate functionality. It is indeed not necessarily recommended to make them all uniform. Neverthelless, each ribbon has also it's own CSS selector and if you really want them all, you would need to change all, one by one and keep testing in various contexts (libraries, lists) as well as RTE context (Formatting, Image, etc.) - see here https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-2010-Ribbon-CSS-Classes-Explained.aspx

2
  • thanks for the link, but it is talking about the tab it self, and tit did not mention how to chnage the boarder color for the ribbon ?
    – John John
    Sep 29, 2013 at 18:45
  • 1
    Also it shows SharePoint 2010, but he is working on 2013! Sep 30, 2013 at 8:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.