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

[Solved] Background image(s) and overlapping tabs

1 Answer 131 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ozzy Knox
Top achievements
Rank 1
Ozzy Knox asked on 04 Nov 2010, 09:28 AM
Hi,

I am in the process of a new development using ASP.NET MVC.  I need to reproduce a UI experience from an older application which uses Telerik ASP.NET AJAX controls.  My current focus is the TabStrip extension.  The equivalent Telerik AJAX control in our other application uses 3 background images to produce the look of the tab button and then it also produces an overlapping look.  

I would like to know if this look can be reproduced using the TabStrip MVC extension, or whether there are limitations on this.  If the exact approach is not possible, is there a way I can put in a single bg image per tab button and control padding within the tab button and also control margins by using a negative margin value in order to create the overlapping look.

Thanks for any helpful input.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 04 Nov 2010, 03:23 PM
Hello Ozzy,

Indeed, you can achieve this effect with negative margins (since there isn't enough rendered HTML to take the ASP.NET AJAX approach). Therefore:

  1. set the active tab state to be above all others, like this:
        .t-tabstrip li.t-state-active { z-index: 2 }
  2. set a negative left (or right) margin on all tabs, like this:
        .t-tabstrip-items .t-item { margin-left: -10px; }
  3. add padding to the items wrap so that the items stay within it
        .t-tabstrip-items { padding-left: 10px; }

The above steps (plus setting the tab backgrounds) should be sufficient to achieve the effect.
Regards,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabStrip
Asked by
Ozzy Knox
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or