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

CSS for "all tabs" or "selected tab"

3 Answers 76 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
David Rodriguez
Top achievements
Rank 1
David Rodriguez asked on 28 Jan 2011, 11:37 AM
Hi there,
We have been looking in the TabStrip forum is there any way to create a CSS class for the "selected tab" and for "All tabs". We have found in some examples that Telerik have a CSS for "first tab, second tab, etc". Our problem is that we created the tabs on the fly. It depends the number of roles we have in the database.
One way to make this possible would be to create as many tabs in the CSS as we can imagine and it will access to its number but we think this is not the best way to do it.
So our question is:
Is there any CSS class in the control for "All tabs" and one for the "selected tab"?.

Kind regards.

3 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 28 Jan 2011, 02:05 PM
Hello David,

The css for the RadTabStrip does not have a special style for each tab index like you described, they're is no second tab or third tab specific style. The RadTabStrip css has three tab styles first tab (rtsFirst), last tab(rtsLast) and normal tab (rtsLI). The other three styles for the tabs is the rendering of a tab when it's before the selected tab (rtsBefore) or after the selected tab (rtsAfter) and when a tab is selected (rtsSelected).

So to answer your questions All Tabs would be rtsLI and selected tab would be rtsSelected.

You can refer to this help article to learn the details of the css file used:

http://www.telerik.com/help/aspnet-ajax/tab_appearancecssselectors.html

I hope that helps.
0
David Rodriguez
Top achievements
Rank 1
answered on 29 Jan 2011, 06:56 AM
Hi Cori,
Sure your answer could help.
We have seen this reference in the documentation and we´ll make all changes in the CSS as describe the doc.

Thanks for your quick answer.

Kind regards
0
David Rodriguez
Top achievements
Rank 1
answered on 09 Mar 2011, 12:33 PM
Thanks for the answer.
I know it´s a bit late for greetings but it helped us a lot

Many Thanks again and sorry for the delay
Tags
TabStrip
Asked by
David Rodriguez
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
David Rodriguez
Top achievements
Rank 1
Share this question
or