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

rtsScroll Width not set properly when tabs have margins

3 Answers 43 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 31 Jul 2013, 04:55 PM
Hello,

I am using RadTabStrip with ScrollChild="true" but the last LI is always getting bumped to the bottom row. My tabs (.rtsLI) have a margin-right: 5px. I found out that if I remove that margin, it fixes the issue of the last tab getting bumped down. But, that is breaking the overall style. I have attached screen shots.

EDIT: I forgot to mention these tabs are dynamically generated.

Any help would be appreciated. Thank you.


Ryan

3 Answers, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 1
answered on 01 Aug 2013, 04:44 PM
Is my question too vague? Should I provide some code? Has anyone had a similar issue? I can't be the only person to put a margin between my tabs and have ScrollChildren="true"!
0
Ryan
Top achievements
Rank 1
answered on 02 Aug 2013, 12:28 PM
I solved this problem myself, by simply using a border-right: 5px solid #fff, instead of margin-right: 5px. Hope this helps anyone with the same issue.
0
Nencho
Telerik team
answered on 05 Aug 2013, 10:00 AM
Hello Ryan,

Thank you for sharing your approach with the community.

Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
TabStrip
Asked by
Ryan
Top achievements
Rank 1
Answers by
Ryan
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or