Blog - .NET, ASP.NET, AJAX, Ruby and more
  • Google Banner 2

AJAX Control Toolkit – Tab Control – Themes

There seems to be a lot of issues on the ASP.NET Forums with “Theming” the AJAX Control Toolkit’s Tab Control. There are lots of requests for samples (one example), but there are limited resources out there. Looking at the Tabs sample page, you will find information on Theming, but it’s pretty basic. You will find the various styles that affect the tabs on the bottom of the sample page. Even with this, it leaves something out and people have problems.   I believe the thing that throws people off is how the sample states “If your CssClass does not provide values for any of those then it falls back to the default value.”; the default value for the tabs are extremely basic.  The style you most frequently see is the XP tab style (more on this later).

I feel you should begin by looking at the structure of the tab HTML to truly understand how it works. If you are curious about the other HTML structure, check out Firebug. The power of Firebug is truly amazing; this is a sample screenshot but doesn’t even come close to paying Firebug justice:

[If anyone from the Microsoft IE team is listening; PLEASE give us this power in IE7 or IE8, the Internet Explorer Developer Toolbar is ok, but it just feels crippled next to Firebug and "Firebug Lite" doesn't fill any of the real gap.]

Let’s take a closer look at the tab structure:

01 <span id=”…” class=”ajax__tab_active”>
02   <span class=”ajax__tab_outer”>
03     <span class=”ajax__tab_inner”>
04       <span id=”…” class=”ajax__tab_tab”>Tab 1</span>
05    </span>
06  </span>
07 </span>

 

As you can see, a tab is constructed of nested <span> tags. The class ajax__tab_outer defines the right side of the tab, the class ajax__tab_inner defines the left side of the tab, and finally ajax__tab_tab defines the middle of the tab as this image shows:

 

 

Now that we understand the tab structure, let’s work on some styles. In this example, we’ll clone the tab styles of Internet Explorer 7 (IE7) under Windows XP. The easiest way to create new styles is to copy that of the ajax__tab_xp which is the default style that you typically see. Browsing the source of the Tab control (which you can download from Codeplex), navigate to the AjaxControlToolkit\Tabs folder and open up Tabs.css. You will find a section called xp theme; this is what we are copying. Looking at the CSS you’ll see that the effects for the tab are created using images and for the IE7 style, we will do the same. So in copying the XP style, we create the following images:

  • tab-line.gif – Used to underline the header
  • tab-right – The right side of the inactive tab
  • tab-left – The left side (outer) of the inactive tab
  • tab – The inner portion (tab) of the inactive tab
  • tab-right-hover – The right side of the hover tab
  • tab-left-hover – The left side (outer) of the hover tab
  • tab-hover – The inner portion (tab) of the hover tab
  • tab-right-active – The right side of the active tab
  • tab-left-active – The left side (outer) of the active tab
  • tab-active – The inner portion (tab) of the active tab

 

…and finally create the styles (I have separated the background declarations from the other styles just for simplicity of listing and discussions)

First the backgrounds; this is a carbon copy of the ajax__tab_xp with just our new images replacing the embedded ones.

/* IE theme – Backgrounds */

.visoft__tab_xpie7 .ajax__tab_header {
     
background:url(tab-line.gif) repeat-x bottom;
}

.visoft__tab_xpie7 .ajax__tab_outer    {
     
background:url(tab-right.gif) no-repeat right;
}

.visoft__tab_xpie7 .ajax__tab_inner    {
    
background:url(tab-left.gif) no-repeat;
}

.visoft__tab_xpie7 .ajax__tab_tab {
    
background:url(tab.gif) repeat-x;
}

.visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_outer {
    
background:url(tab-hover-right.gif) no-repeat right;
}

.visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_inner {
    
background:url(tab-hover-left.gif) no-repeat;
}

.visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_tab {
    
background:url(tab-hover.gif) repeat-x;
}

.visoft__tab_xpie7 .ajax__tab_active .ajax__tab_outer {
    
background:url(tab-active-right.gif) no-repeat right;
}

.visoft__tab_xpie7 .ajax__tab_active .ajax__tab_inner {
    
background:url(tab-active-left.gif) no-repeat;
}

.visoft__tab_xpie7 .ajax__tab_active .ajax__tab_tab {
     background:url(tab-active.gif) repeat-x;
}

 

Finally, the rest of the styles which we’ll change a bit from the ajax__tab_xp styles:

.visoft__tab_xpie7 .ajax__tab_header {
    
font-family:verdana,tahoma,helvetica;
    
font-size:11px;
}

.visoft__tab_xpie7 .ajax__tab_outer {
    
height:29px;
}

.visoft__tab_xpie7 .ajax__tab_inner    {
     padding-left:3px;
}

.visoft__tab_xpie7 .ajax__tab_tab {
    
padding:8px 40px;
     margin:0;
}

.visoft__tab_xpie7 .ajax__tab_body
    
font-family:verdana,tahoma,helvetica
    
font-size:10pt;
    
border:1px solid #999999;
    
border-top:0;
    
padding:8px;
    
background-color:#ffffff;
}

Most of the styles are arbitrary (and most are copies from the ajax__tab_xp styles), but the two import styles that effect the tab are the height and padding, underlined in the sample above. The height matches that of the tab images while the padding increases the width and centers the text vertically and horizontally. You could set different left and right paddings to change the text alignment, but in this example we have it centered.

The last thing we need to do is to add the custom CssClass to the Tab Container:

<ajaxcontroltoolkit:tabcontainer id=”tabContainer” runat=”server” height=”300″ cssclass=”visoft__tab_xpie7″>

Finally, everything in place; we get the following tab style:

The three styles are represented in the image: tab, active, and hover. Not a bad reproduction from the original. Obviously, we don’t have an image in the header in this example, but this can always be added using the <headertemplate> of the Tab Panel. You can also go a bit farther with the replication and add the thin bar that is below the tabs.

 

 

If you’d like, you can download the files for this sample: Full Solution | CSS and Images Only

This entry was posted in AJAX, AJAX Control Toolkit, ASP.NET, CSS and tagged , , . Bookmark the permalink. Both comments and trackbacks are currently closed.

Damien White is a developer in Connecticut that simply loves coding. Ever since he was young, he has had a driving passion for computers and software development, and a thirst for knowledge that just cannot be quenched. He’s happy to share what he knows in his quest to learn as much as possible.

93 Comments

  1. Holly
    Posted June 18, 2008 at 10:32 am | Permalink

    Thank you very much. Just what I was looking for :)

  2. Ronnie Mukherjee
    Posted June 5, 2008 at 6:57 am | Permalink

    Very helpful, thanks.

  3. locoHost
    Posted May 28, 2008 at 1:58 pm | Permalink

    Fantastic article!! Works perfectly. You saved me so much time!

  4. Posted May 9, 2008 at 9:01 pm | Permalink

    @Mark & Damien

    RE: styling of individual tabs

    I recently had this requirement come up with a client… Normally I would have used the Telerik Tab control to do this, but they were unwilling to budge on that regard. So I looked through the TapContainer control in the toolkit and was able to successfully apply unique styles. This blog post outlines my experiences in dealing with, and work around the TabPanel limitations imposed by the control toolkit.

    http://clanmonroe.com/Blog/archive/2008/05/09/applying-unique-styles-to-tabs—ajaxcontroltoolkit.aspx

  5. Joop Stringer
    Posted April 4, 2008 at 4:06 pm | Permalink

    Hi Damien,

    Don’t know what went wrong.
    It works fine now.

    My CSS is in the App_themes folder and the styles for the tabs are like this:
    .visoft__tab_xpie7 .ajax__tab_inner { background:url(images/tab/tab-left.gif) no-repeat; }

    tab-pictures are in App_Themesgalchoimagestab

    Thanks,
    Joop

  6. Posted April 3, 2008 at 6:28 am | Permalink

    Joop -
    To use themes, you can put your CSS in your "App_Themes/galcho" folder. You can call it tab.css. Also, you can have your images folder in your theme (e.g. "App_Themes/galcho/images") as well. Add all your images for your theme in there. For the CSS, you don’t have to specify a <link> in the master page for it since the theme will automatically add the tab.css to your page. Once you have this structure, you can simply use a path relative to the CSS file (so just "images/tab/tab-hover.gif" instead of the full "App_Themes/galcho/images/tab/tab-hover.gif" path). If you need more help, check out http://quickstarts.asp.net/QuickStartv20/aspnet/doc/themes/default.aspx.

    -Damien

  7. Posted April 3, 2008 at 5:47 am | Permalink

    Hi there,

    I’m trying to use Theming (App_themes folder ) in the CSS, but then the gif’s are not shown. It only works when I put the images in images folder under the root.

    .visoft__tab_xpie7 .ajax__tab_header { background:url(images/tab/tab-line.gif) repeat-x bottom; }
    .visoft__tab_xpie7 .ajax__tab_outer { background:url(images/tab/tab-right.gif) no-repeat right; }
    .visoft__tab_xpie7 .ajax__tab_inner { background:url(images/tab/tab-left.gif) no-repeat; }
    .visoft__tab_xpie7 .ajax__tab_tab { background:url(images/tab/tab.gif) repeat-x; }
    .visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_outer { background:url(App_Themes/galcho/images/tab/tab-hover-right.gif) no-repeat right; }
    .visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_inner { background:url(App_Themes/galcho/images/tab/tab-hover-left.gif) no-repeat; }
    .visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_tab { background:url(App_Themes/galcho/images/tab/tab-hover.gif) repeat-x; }
    .visoft__tab_xpie7 .ajax__tab_active .ajax__tab_outer { background:url(images/tab/tab-active-right.gif) no-repeat right; }
    .visoft__tab_xpie7 .ajax__tab_active .ajax__tab_inner { background:url(images/tab/tab-active-left.gif) no-repeat; }
    .visoft__tab_xpie7 .ajax__tab_active .ajax__tab_tab { background:url(images/tab/tab-active.gif) repeat-x; }

    Here the HOVER images are not show.
    Any suggestion ?

  8. Posted April 2, 2008 at 4:45 pm | Permalink

    Reymes-
    If you don’t set a CSSClass for the inner tab control, do you get the standard "XP" styles? I haven’t tested nested tabs before, so I’m interested as to what happens.

  9. Reymes M-R
    Posted April 2, 2008 at 4:07 pm | Permalink

    Hi there Damien,
    Thanks a lot for sharing that info about Tab-themes. I dealing with some other problem. I am trying to used those themes, but at the same time I need to put another Tab Control inside each Panel of a general Tab-Control. The problem is that the inner-Tab-Controls do not display the specified theme. Theme is showed only one for the outer Tab-Control.
    Any idea of what is going on?
    Thanks in advance

  10. Posted March 31, 2008 at 4:16 pm | Permalink

    Damien,
    EXCELLENT Post.

    My only addition is that I added ["border-top: #B9D3FB 5px solid;" to the .visoft__tab_xpie7 .ajax__tab_body {} style. That gives a solid blue line accross the whole bottom of the TabContainer Control (by putting it on the TOP of the content block).

    Sean D.

  11. Kartik
    Posted March 25, 2008 at 8:36 am | Permalink

    Is there any way to set all tabs vertically ?

  12. Posted March 22, 2008 at 9:34 am | Permalink

    Mark,
    I don’t think changing the individual tab style (e.g. the background) is possible without modifications to the Tab Control’s source code. You can do some customization using the HeaderTemplate, but this doesn’t change the full rendering of the tab, it just adds your header template code into the inner most SPAN of the tab itself. Also, if you are trying to disable a tab, you would need more than just CSS to accomplish this. There is a post on the ASP.NET forums that may help you out in doing this, although I haven’t taken the time to try it out for myself: http://forums.asp.net/t/1074319.aspx.

    -Damien

  13. mark
    Posted March 22, 2008 at 7:50 am | Permalink

    Hi Damien

    I’ve been looking every where for this answer so i’m hoping you can help

    I’m looking to style individual tabs, i want to change the colour of a few of them (grey them out)
    I’ve changed the CSSCLASS on the individual tabs but it doesn’t seem to get applied to the tabs

    can you tell me if this is possible or how i can tackle it?
    thanks

  14. Posted March 17, 2008 at 7:04 pm | Permalink

    Chris,
    It looks correct, however is the path correct? For example, you are using a relative link, but based on the position of the page your path maybe off. One thing you can try is set your link to be runat="server" and use a path of ~/StyleSheets/visoft__tab_xpie7.css assuming the StyleSheets folder is off of the root. You can also use FireBug (http://getfirebug.com) in FireFox and it will show you the loaded CSS files.

    I’m not sure if you use themes, but it maybe a good idea since theme stylesheets are included automatically and the path will be correct. You can get more information on MSDN: http://msdn2.microsoft.com/en-us/library/ykzx33wh.aspx.

    -Damien

  15. Chris
    Posted March 17, 2008 at 6:40 pm | Permalink

    [quote]
    Chris -
    You need to include the CSS stylesheet for the tab styles either in your MasterPage or you can add a stylesheet for the specific page using the technique found here: snipplr.com/…/.

    Hope this helps!
    -Damien
    [/quote]
    I tried including the css file in both ways mentioned, however, that didn’t seem to help. Below is the code for the master page.

    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="myMaster.master.cs" Inherits="myMaster" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

    <html xmlns="http://www.w3.org/1999/xhtml&quot; >
    <head runat="server">
    <title>Untitled Page</title>
    <link type="text/css" rel="stylesheet" href="Stylesheets/visoft__tab_xpie7.css" />
    <link type="text/css" rel="stylesheet" href="Stylesheets/StyleSheet.css" />
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
    </asp:contentplaceholder>
    </div>
    <br />
    <br />
    <span class="Test">This is another test.</span>
    </form>
    </body>
    </html>

    Below is the final rendering of the head tag only.
    <head><title>
    Untitled Page
    </title><link type="text/css" rel="stylesheet" href="Stylesheets/visoft__tab_xpie7.css" /><link type="text/css" rel="stylesheet" href="Stylesheets/StyleSheet.css" /><link href="StyleSheets/visoft__tab_xpie7.css" rel="stylesheet" type="text/css" /><link href="/scorecard/WebResource.axd?d=oMNrY_T3KXTsOSsbu9yz1pcY2cFaQlMpY6g0TgmJfxm290LkzUJJakdWKIU5zCGyidjWWvInGD14h12ipbeT-w2&amp;t=633310672420000000" type="text/css" rel="stylesheet" /></head>

    (I’ll take out one of the two visoft__tab_xpie7 references when this starts to work)

    I added a css class called "Test" which turns text green and included it in StyleSheet.css and then cut/pasted it into visoft__tab_xpie7.css, both times it turned the text green as it should. So the stylesheet is getting loaded. Is there something I’m forgeting? Thanks for your help Damien.

  16. Posted March 15, 2008 at 7:51 pm | Permalink

    Prasad -
    Thanks for sharing these, I’m sure these will help out many users.

    -Damien

  17. Posted March 15, 2008 at 7:46 pm | Permalink

    Inspired by this post, I made some more nice looking themes. here you go

    http://digdotnet.blogspot.com/2008/03/aspnet-ajax-tab-control-colorful-themes.html

    Prasad.

  18. Posted March 15, 2008 at 12:52 am | Permalink

    Chris -
    You need to include the CSS stylesheet for the tab styles either in your MasterPage or you can add a stylesheet for the specific page using the technique found here: http://snipplr.com/view/3824/adding-css-link-to-a-c-master-page-from-a-child-codebehind-page/.

    Hope this helps!
    -Damien

  19. Chris
    Posted March 14, 2008 at 3:41 pm | Permalink

    Great example. I was able to open/run it without any problems.

    However, I copied/pasted the ajaxtoolkit source from default.aspx into a content page like:
    <%@ Page Language="C#" MasterPageFile="~/myMaster.master" AutoEventWireup="true" CodeFile="dummy.aspx.cs" Inherits="dummy" Title="Untitled Page" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ScorePlaceHolder" Runat="Server">
    <asp:scriptmanager id="ScriptManager1" runat="server"></asp:scriptmanager>
    <ajaxToolkit:tabcontainer id="tabContainer1" runat="server" height="300" cssclass="visoft__tab_xpie7">
    <ajaxToolkit:tabpanel id="tabPanel1" headertext="Tab 1" runat="server">
    <contenttemplate>Test – Tab 1</contenttemplate>
    </ajaxToolkit:tabpanel>
    <ajaxToolkit:tabpanel id="tabPanel2" headertext="Tab 2" runat="server">
    <contenttemplate>Test – Tab 2</contenttemplate>
    </ajaxToolkit:tabpanel>
    <ajaxToolkit:tabpanel id="tabPanel3" headertext="Tab 3" runat="server">
    <contenttemplate>Test – Tab 3</contenttemplate>
    </ajaxToolkit:tabpanel>
    <ajaxToolkit:tabpanel id="tabPanel4" headertext="Tab 4" runat="server">
    <contenttemplate>Test – Tab 4</contenttemplate>
    </ajaxToolkit:tabpanel>
    </ajaxToolkit:tabcontainer>
    </asp:Content>

    The CSS stopped working. I don’t know why(the page will load and function, no styling). Is there something specific you have to do to make CSS/Content work with AJAX/Tabs? I included the css file in the master page header.

  20. AC
    Posted February 22, 2008 at 8:15 am | Permalink

    Awesome – a great, clear and easy to follow piece of advice – thanks very much!

  21. Mohammed Adel El-Khodary
    Posted February 20, 2008 at 12:01 pm | Permalink

    Thank you so much for your valued post.

  22. Thiago Loureiro
    Posted February 19, 2008 at 9:15 am | Permalink

    Congratulations, your code works perfect here!! thank you!!!

  23. Robert Jackson
    Posted February 5, 2008 at 2:04 pm | Permalink

    I’m trying to change the color based on the tab selected through client side. Probably within the OnClientActiveTabChanged. Has anyone been able to do this?

  24. Posted January 29, 2008 at 2:15 pm | Permalink

    Very cool. I am working with the YUI theme and found your examples very clear and concise. Good job.

  25. Poornima
    Posted January 22, 2008 at 7:01 am | Permalink

    hai,In my tab control the header text is displaying half of the text and remaining is white space.?thanks

  26. Posted January 11, 2008 at 11:46 am | Permalink

    Hans -Tabs on the Left are a bit tricky, but not impossible. You will need to modify the source for the Tabs control, the good news is all you need to modify is the rendering and not the logic.There are also other products out there that do this, for example: http://dhtmlx.com/docs/products/dhtmlxTabbar/-Damien

  27. Posted January 11, 2008 at 11:42 am | Permalink

    Matt – For a fixed width, just set a width on the ajax__tab_tab. For example:width:100px;Note that this may mess up your layout a bit though based on the overall width of your tabs, so you may have to play around with it. -Damien

  28. Matt
    Posted January 10, 2008 at 3:15 pm | Permalink

    Is there anyway to make the tabs all the same length no matter what the header text length is?

  29. Hans
    Posted January 9, 2008 at 7:24 am | Permalink

    Hi,Is there a way to put the tabs on the left side and not on top?greetings,hans

  30. Posted January 3, 2008 at 8:19 am | Permalink

    Mahbubul – Are you looking for the source code? It’s available at the end of the article: Look for the line “If you’d like, you can download the files for this sample: Full Solution | CSS and Images Only“-Damien

  31. Mahbubul Alam
    Posted January 3, 2008 at 1:19 am | Permalink

    my need AJAX Control Toolkit – Tab Control – Themes

  32. jana
    Posted December 11, 2007 at 2:43 pm | Permalink

    Hi,You explanation si very good and useful. I am trying to use this, Everything is working fine but background image is not coming. I am using IE7.Images are copied to respective dir.Could you please suggest me what else could be wrong.?

  33. Posted December 6, 2007 at 8:48 pm | Permalink

    Jay – Your best bet is to use an image or something within the HeaderTemplate for the tab to indicate there is something “special” about it.-Damien

  34. Jay K
    Posted December 6, 2007 at 6:21 pm | Permalink

    Do you know a way to change the style for just one of the tab panels? For example, if I have a container w/ 3 panels and if the user meet a cetain criteria, I would like to “flag” the third tab (highlight in red or something like that) so the user knows to go there after looking over the info on the default panel.Thanks

  35. Posted November 21, 2007 at 8:29 pm | Permalink

    Dondi,No, you don’t need to recompile at all. Just add your stylesheet to your page and add your custom CSS class name. Download the demo and it should be clearer.

  36. Dondi
    Posted November 21, 2007 at 8:18 pm | Permalink

    I still don’t quite get it. Does that mean I replace the css in the ajax project recompile it and then reinstall ajax on my pc for the changes to take affect?

  37. Damon
    Posted November 21, 2007 at 12:14 pm | Permalink

    Brilliant explanation. Clear and precise. Saved me alot of time

  38. Posted November 6, 2007 at 12:56 pm | Permalink

    It works! u were totally in the first thing u thought: I had a SPAN style definition. The problem: line-height:30px.Thx so much, u’ve helped a lot and I’ve learnt also.

  39. Posted November 6, 2007 at 12:25 pm | Permalink

    Oscar-Your old DOCTYPE should be correct:<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>.Make sure you don’t have anything before the doctype, such as the XML declaration or a comment. IE6 gets pushed into Quirks Mode when there is something before the DOCTYPE. Look at the source of your rendered page to make sure the DOCTYPE is the first line.If it isn’t quirks mode causing your issue, it could be possible that you have another style on your site that may be effecting it. For example if you have something like SPAN { padding: 10px; }, this will apply a 10px padding to all SPANS, causing you issues with your tabs.I’d recommend using the IE Developer Toolbar to attempt to troubleshoot your issue. Sometimes these things are pain to track down…Does the “standard” XP style work successfully for you? If this does, then you may have to adjust the padding or something when you create your new theme. Hope you find your issue!-Damien

  40. Posted November 6, 2007 at 11:57 am | Permalink

    Ok, let’s see if i’ve understood:my old configuration was:<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>and checking the wiki article, for having A (S is not possible) in IE6 i’ve to put:<?xml version=”1.0″ encoding=”UTF-8″?><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>That is the same save to the line <?xml…>But this doesn´t fix the problem. Am i doing right?thx

  41. Posted November 6, 2007 at 10:34 am | Permalink

    Thx so much for ur quick answer. I’m gonna check it just now and I’ll tell u!Bye

  42. Posted November 6, 2007 at 7:42 am | Permalink

    Oscar,It looks to me like IE6 is being pushed into “Quirks Mode” (see http://en.wikipedia.org/wiki/Quirks_mode). The Toolkit assumes the IE is in standards rendering mode… I believe the faulty box model is IE6 Quirks Mode is to blame for you issue. Check the Wiki and make sure you use one of the standard-rendering DOCTYPE declarations. Hope this helps!-Damien

  43. Posted November 6, 2007 at 7:15 am | Permalink

    Very good post and nice result, but it’s giving me problems in IE 6.0:http://www.hagasesuweb.com/imagenes/problem_explorer.gifAny suggestion is welcomedThx

  44. Posted October 25, 2007 at 1:24 pm | Permalink

    kw7566 -It’s not impossible, but it will involve some work. You will need to modify the source for the Tabs control, the good news is all you need to modify is the rendering and not the logic.-Damien

  45. kw7566
    Posted October 25, 2007 at 1:07 pm | Permalink

    this works great! – Next question – any way to change the tab location? I need the tabs on the bottom and on the left (vertical). I have seen 3rd party controls accomplish this feat but was hoping it was feasible with toolkit – wishful thinking?

  46. Sree
    Posted October 25, 2007 at 9:44 am | Permalink

    Thanks a Trillion sir. Exactly waht i was looking for.

  47. Posted October 24, 2007 at 8:18 am | Permalink

    Gustavo,Glad this helped you! Thanks for the comment.-Damien

  48. Gustavo Sarti
    Posted October 24, 2007 at 8:07 am | Permalink

    Thank you very much!!!You solved and saved my life with this post!!!Its a very good site!Bye

  49. Brad
    Posted October 8, 2007 at 7:33 pm | Permalink

    What about styling each tab panel differently? I am trying to implement a simple style where I have three tabs and each one is a different color (red, green, blue) Styling the container works but it gives me the same style for each tab. I would like to be able to override the styles for the individual tab panel seperatley.ideas?

  50. james
    Posted October 4, 2007 at 6:30 pm | Permalink

    sweet, just what i was looking for :D thanks very much