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

Adjust tab text font alignment

1 Answer 60 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
SonicImaging
Top achievements
Rank 1
SonicImaging asked on 02 Oct 2008, 03:05 PM
Hi, I have a tabstrip in a table cell with 5 tabs.  how can i adjust the vertical position of the text in the tab without affecting the tab graphics.  EnableEmbeddedSkins="false" then I have my own CssClass, SelectedCssClass and HoveredCssClass from the examples

The TD vert alignment is set to middle but the text on the tab always shows in the top not the middle.

I created my own css class and if I add a margin or padding it moves the text down but also make the container bigger also.  all I want is to center the text vertically in the tab

The text is also left justified and if I change the padding-left it adds padding to both the tab and the text.  can I keep the distance between the tabs 1 pixels but move the text for the tab to the right a bit.  I dont want it centered I want it 5 pixels from the left of the tab graphic

Thanks
Keith

1 Answer, 1 is accepted

Sort by
0
SonicImaging
Top achievements
Rank 1
answered on 03 Oct 2008, 02:58 PM
Support helped me out with this one.  I had to add the following to my css

.RadTabStrip .rtsTxt { 
   padding-left: 5px !important; 
   padding-top: 3px !important; 
}  

That fixed it and now I can adjust the location of the tab text.
Tags
TabStrip
Asked by
SonicImaging
Top achievements
Rank 1
Answers by
SonicImaging
Top achievements
Rank 1
Share this question
or