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

radtabstrp giving extra padding

3 Answers 148 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
shweta
Top achievements
Rank 1
shweta asked on 03 Dec 2010, 12:33 PM

I am migrating RadTabStrip from older classic  to new Ajax supported version .In the code we are not using css file but used Skin="Outlook".
In new page now its giving extra padding around the text . Attached is the image showing difference between older and new UI.

I have tried following lines of code in css file but still padding is not removed.

.RadTabStrip

 

.rtsOut,

 

.RadTabStrip

 

.rtsTxt,

 

.RadTabStrip

 

.rtsLI,

 

.RadTabStrip

 

.rtsLink,

 

.RadTabStrip

 

.rtsIn {

 

 

padding:0px 0px 0px 0px;

 

 

margin:0px 0px 0px 0px;

 

 

font-size:10px;

 

 

/*background-color:Red;*/

 

 

}


3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Dec 2010, 01:24 PM
Hello Shweta,

Please try modifying the preset CSS like below.

CSS:
.RadTabStrip .rtsLevel .rtsIn, .RadTabStrip .rtsLevel .rtsTxt
       {
           padding: 0 !important;
           color: Red !important;
       }

Regards,
Shinu.
0
shweta
Top achievements
Rank 1
answered on 03 Dec 2010, 02:24 PM
Its working. Thanks for your prompt reply. :)
Can you explain the significance of 0!important;
0
Shinu
Top achievements
Rank 2
answered on 04 Dec 2010, 05:29 AM
Hello Shweta,

CSS rules marked !important take precedence over later rules. Normally in CSS the rules work from top to bottom, so if you assigned a new style to an element further down the style sheet or in a secondary style sheet then the later rule would take precedence. !important ensures that this rule has precedence.

Please go through this link for more information.

Regards,
Shinu.
Tags
TabStrip
Asked by
shweta
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
shweta
Top achievements
Rank 1
Share this question
or