TabStrip vertical text

1 Answer 34 Views
TabStrip
Hadrian
Top achievements
Rank 1
Iron
Hadrian asked on 21 Jan 2025, 11:23 AM

Probably a bit of a vague question, but is there any way to make the “TabStrip” component tab texts appear vertically or is it planned to support this behavior sometime? I've tried modifying it a bit via css but I'm having problems with containers. I think I'm probably not using the right component for what I want to achieve... but if it helps anyone who is looking for the same idea it is already reflected here.

1 Answer, 1 is accepted

Sort by
1
Accepted
Hristian Stefanov
Telerik team
answered on 21 Jan 2025, 12:03 PM

Hi Hadrian,

To make the text inside each tab appear vertically, you can use the following CSS:

<style>
    .k-tabstrip .k-link-text {
        writing-mode: vertical-rl; /* Rotate text to vertical layout */
        text-orientation: mixed; /* Orient characters naturally */
        display: inline-block; /* Ensure proper layout handling */
    }
</style>

<TelerikTabStrip>
    <TabStripTab Title="First">
        First tab content.
    </TabStripTab>
    <TabStripTab Title="Second">
        Second tab content.
    </TabStripTab>
    <TabStripTab Title="Third">
        Third tab content.
    </TabStripTab>
</TelerikTabStrip>

Additionally, upon interest, here are the available built-in tab position settings: TabStrip - Position and Alignment.

Regards,
Hristian Stefanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TabStrip
Asked by
Hadrian
Top achievements
Rank 1
Iron
Answers by
Hristian Stefanov
Telerik team
Share this question
or