sona
sona

Reputation: 1552

How to set the background color of tab panel with default css class?

I have a tab panel where i have used "ajax__tab_xp" default css class.BUt i want to set the background color with the existing css class.

My code:

<asp:TabContainer ID="TabContainer2" runat="server" Height="258px" Width="100%" ActiveTabIndex="0" TabStripPlacement="Top" CssClass="ajax__tab_xp" useverticalstripplacement="true"  verticalstripwidth="100px">


.ajax__tab_xp .ajax__tab_body {font-family:verdana,tahoma,helvetica;font-size:10pt;border:1px solid #999999;border-top:0;padding:8px;background-color:#ffffff;}

I have almost tried every possibilities but it is not working.

Upvotes: 1

Views: 1397

Answers (1)

Deep Sharma
Deep Sharma

Reputation: 3473

apply !important to property like:

.ajax__tab_xp .ajax__tab_body {font-family:verdana,tahoma,helvetica;font-size:10pt;border:1px solid #999999;border-top:0;padding:8px;background-color:#ffffff !important;}

Upvotes: 2

Related Questions