CSS for "all tabs" or "selected tab"

4 posts, 0 answers
  1. David Rodriguez
    David Rodriguez avatar
    9 posts
    Member since:
    Mar 2010

    Posted 28 Jan 2011 Link to this post

    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.
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 28 Jan 2011 Link to this post

    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.
  3. David Rodriguez
    David Rodriguez avatar
    9 posts
    Member since:
    Mar 2010

    Posted 29 Jan 2011 Link to this post

    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
  4. David Rodriguez
    David Rodriguez avatar
    9 posts
    Member since:
    Mar 2010

    Posted 09 Mar 2011 Link to this post

    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
Back to Top