Solved

ASP.NET Tab Control Style

Posted on 2013-01-10
3
545 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hovering effect 9 47
Rolling back a sequence of stored procedures 12 38
Anyway to make "All" the default in the dropdown? 6 34
Error on Add method 1 38
AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now