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

How to edit Css files for RadTabStrip

9 Answers 508 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
p
Top achievements
Rank 1
p asked on 30 Oct 2008, 10:19 AM

Hi,

I am following this link to implement RadTabStrip:

http://demos.telerik.com/ASPNET/Prometheus/TabStrip/Examples/Appearance/CustomCssClasses/DefaultCS.aspx

My problem is the following:

1. I want to align the text for the tabs in the center. At present, they are getting aligned to the left by default.

2. The enabled tab should have the text in black and the not-selected tab should have text in white.

Please let me know how is that possible.

Thanks.




9 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 30 Oct 2008, 12:01 PM
Hello,

1. The text for the tabs is aligned in the centre by default, it has equal padding on both sides.
2. Please use cssClass and SelectedCssClass  as in the example or you can set these colors like this:

<style type="text/css">  
  .RadTabStrip_Default .rtsLink {  
          colorwhite !important;  
   }      
  .RadTabStripTop_Default .rtsSelected,   
  .RadTabStripTop_Default .rtsSelected:hover {  
          colorblack !important;  
   }  
</style> 

Best wishes,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
p
Top achievements
Rank 1
answered on 30 Oct 2008, 12:24 PM

Hi Yana,

Thanks for your reply.

1. It works now.
2. still does not work. I tried using the following: 

 

<telerik:RadTabStrip AutoPostBack="true" ID="TabStrip" runat="server" MultiPageID="RadMultiPage1"

 

 

EnableEmbeddedSkins="False" SelectedIndex="0" Align="Center">

 

 

<Tabs>

 

 

<telerik:RadTab PageViewID="PageView0" Text="Details" SelectedCssClass="SelectedTab"

 

 

runat="server" Font-Size="8" Font-Names="Verdana" CssClass="UnselectedTab"

 

 

Font-Underline="false" Width="33%" Height="20px" Selected = "true">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab PageViewID="PageView1" Text="Elementen boekingsomschrijving" CssClass="UnselectedTab"

 

 

runat="server" Font-Size="8" Font-Names="Verdana" Font-Underline="false" Width="33%" SelectedCssClass="SelectedTab"

 

 

Height="20px">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

My css looks like this:

 

 

.SelectedTab

 

 

 

{

 

background-color: #bee903;

 

 

font-size : 8;

 

 

font-family : "Verdana";

 

 

color: Black;

 

 

text-align: center;

 

}

 

 

.UnselectedTab

 

 

 

{

 

background-color: #7e9a0e;

 

 

font-size : 8;

 

 

font-family : "Verdana";

 

 

color: White;

 

 

text-align: center;

 

}

This does not seem to work! Please help.

0
Yana
Telerik team
answered on 30 Oct 2008, 02:37 PM
Hi,

Please use fixed width for tabs instead of percentages.

All the best,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rohit
Top achievements
Rank 1
answered on 24 Nov 2010, 01:16 PM
Can you let me know as to how to change the color of the indivudual tab in Telerik:RadTab control without setting "Enableembeddedskins = false"
By default I am using "Default" as default skin which has tab color as light gray.

Thanks


0
Yana
Telerik team
answered on 29 Nov 2010, 01:25 PM
Hello Rohit,

You can set CssClass property of the tab as demonstrated here.

Kind regards,
Yana
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Rohit
Top achievements
Rank 1
answered on 29 Nov 2010, 01:47 PM
Hi,
Thanks fro your reply.

The demo shows how to change the font style of the tab text.
I want to change the color of the tab itself. By default I am using "Default" as default skin which has tab color as light gray.
Keeping the border style and font style same, how can I change the color of default gray of tab to some other color.
Attached is what our requirement is. I have checked that all default available skins of Telerik so not provide such tab skin style.

Awaiting for your reply.

Thanks and Regards
0
Yana
Telerik team
answered on 02 Dec 2010, 03:46 PM
Hello Rohit,

Could you please tell us which version of the controls exactly you're using?

All the best,
Yana
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Rohit
Top achievements
Rank 1
answered on 02 Dec 2010, 04:06 PM
Hi,

I am using 2010.3.1109.40 version of  Telerik control.

0
Yana
Telerik team
answered on 07 Dec 2010, 03:53 PM
Hi Rohit,

In this case you should modify the background sprite image of the Default skin and overwrite only the following css style:

div.RadTabStripTop_Default .rtsLevel .rtsLink,
div.RadTabStripTop_Default .rtsLevel .rtsOut,
div.RadTabStripBottom_Default .rtsLevel .rtsLink,
div.RadTabStripBottom_Default .rtsLevel .rtsOut,
div.RadTabStripTop_Default_Baseline .rtsLevel,
div.RadTabStripBottom_Default_Baseline .rtsLevel {
   background-image: url('newTabStripStates.png');
}

I've attached the backround image and here the sprite is explained in details.

All the best,
Yana
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
TabStrip
Asked by
p
Top achievements
Rank 1
Answers by
Yana
Telerik team
p
Top achievements
Rank 1
Rohit
Top achievements
Rank 1
Share this question
or