A simple CSS style of tabcontainer in ajaxcontroltoolkit

Source: Internet
Author: User

Because of project requirements, it is easier to use Ajax tabcontainer, but its default style is different from our existing style, so I checked the information and compiled a simple style.

:

CSS style:

<Style type = "text/CSS">
/* Following are tab control styles, special for outsourcing set-up process page */
/* Default tab */
. Ajaxtabstrip. Ajax _ tab_tab
{
Font-size: 12px;
Padding: 4px;
Width: 105px;/* your proper width */
Height: 16px;/* your proper height */
Background-color: # eaeaea;
}
/* When mouse over */
. Ajaxtabstrip. Ajax _ tab_hover. Ajax _ tab_tab
{
Font-weight: bold;
Text-Decoration: underline;
}
/* Current Selected tab */
. Ajaxtabstrip. Ajax _ tab_active. Ajax _ tab_tab
{
Background-color: # c2e2ed;
Font-weight: bold;
}
/* Tabpanel content */
. Ajaxtabstrip. Ajax _ tab_body
{
Border: 1px solid #999999;
Padding: 8px;
Background-color: # ffffff;
Margin-Right: 9px;/* your proper right-margin, make your header and the content have the same width */
Margin-top: 0px;
}
</Style>

Code in aspx

<PC3: tabcontainer id = "tabstrip11" cssclass = "ajaxtabstrip" runat = "server" activetabindex = "1"
Height = "121px" width = "590px">
<PC3: tabpanel id = "tabpanel1" runat = "server" headertext = "Tab 1">
<Contenttemplate>
Content of Tab 1
</Contenttemplate>
</PC3: tabpanel>
<PC3: tabpanel id = "tabpanel2" runat = "server" headertext = "Tab 2">
<Contenttemplate>
Content of Tab 1
</Contenttemplate>
</PC3: tabpanel>
<PC3: tabpanel id = "tabpanel3" runat = "server" headertext = "tab 3">
<Contenttemplate>
Content of tab 3
</Contenttemplate>
</PC3: tabpanel>
<PC3: tabpanel id = "tabpanel4" runat = "server" headertext = "tab 4">
<Contenttemplate>
Content of tab 4
</Contenttemplate>
</PC3: tabpanel>
<PC3: tabpanel id = "tabpanel5" runat = "server" headertext = "tab 5">
<Contenttemplate>
Content of tab 5
</Contenttemplate>
</PC3: tabpanel>
</PC3: tabcontainer>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.