This is a migrated thread and some comments may be shown as answers.

change backgroundimage

2 Answers 36 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Sigma
Top achievements
Rank 1
Sigma asked on 24 Dec 2012, 08:28 AM

Hi,

How can I change the background image of RibbonBar?

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Dec 2012, 08:52 AM
Hi,

Try the following CSS to achieve your scenario.
CSS:
.RadRibbonBar_Default .rrbTabs
 {
   background-image: url("../Images/img.gif") !important;
 }

Thanks,
Princy.
0
Ivan Zhekov
Telerik team
answered on 25 Dec 2012, 01:17 PM
Hello,

While Princy's solution is correct and will indeed change the background image of the tab container, the complete answer is somewhat longer.

First, which parts of the RibbonBar do you want to change? Apart from the tab container, which Princy already covered, you have the following structure:

  • Ribbon
    • Tab container
      • Tab
      • Contextual tab
    • Commands area
      • Group
        • Item

With each part being able to have different background.

In addition, in order for the ribbon to have rounder corners in all browsers, we employ a certain amount of nesting to achieve this in terms, the actual selectors may vary.

And finally, there are a couple of skin which are different from the rest e.g. the Metro family skins.

So to properly answer your question, we need to know which skin you want to use (in case it's one of the metro skins) and then which part you would like to customize.

Regards,
Ivan Zhekov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
RibbonBar
Asked by
Sigma
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ivan Zhekov
Telerik team
Share this question
or