Solved

ASP.NET Tab Control Style

Posted on 2013-01-10
3
554 Views
Last Modified: 2013-01-10
I have a tab control on my page.  Everything works fine.  How can I change the actual Tabs so they are higher?
0
Comment
Question by:rrhandle8
3 Comments
 
LVL 21

Accepted Solution

by:
masterpass earned 150 total points
ID: 38765244
you will need to style your tabs accordinly using css, an example is here : http://www.c-sharpcorner.com/uploadfile/raghavau/css-style-sheet-for-ajax-tabcontainer-control-in-Asp-Net-2-0/

Alternativly, you can download the http://ajaxcontroltoolkit.codeplex.com/ ajaxtoolkit controller and get a better idea.

Hope this helps :)
0
 
LVL 7

Assisted Solution

by:Element1910
Element1910 earned 150 total points
ID: 38765281
What do you mean by higher? Are you using the ASP.NET AJAX tabs? If so, you'll need to override the current CSS being applied to the tabs. To change the height of the tab, you'll need to set this style in either the <HEAD> of your .aspx page or within a linked *.css document that is loaded onto your page.

I recommend overriding two CSS styles:

.ajax__tab .ajax__tab_tab {
        height:100px;
        margin:0;
        padding:10px 4px;
}

.ajax__tab .ajax__tab_body
{
        position:absolute;
        top:100px; /* here */
        width:205px;
}

Open in new window

0
 

Author Closing Comment

by:rrhandle8
ID: 38765369
This is a complete stylesheet for the tab control.
 http://www.c-sharpcorner.com/uploadfile/raghavau/css-style-sheet-for-ajax-tabcontainer-control-in-Asp-Net-2-0/

This is how to make the tab higher, but watch out.  As soon as you do, you may find there are other styles that need to be updated especially if you are using images for the borders of your tabs.  But it did answer my question.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question