PDA

View Full Version : Tab Content Script (v2.2)



Horde3
09-28-2010, 04:50 PM
script: Tab Content Script (v2.2)
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

Recently I used Tab Content Script (v2.2) on my website and I am very happy.

I have a question about adjusting the width of the tab, the tab is as wide as the text. If a number of tabs to each other with different sizes, this is not pretty.

How can I set a default size of eg 10 characters make.
I have the document tabcontent.css .shadetabs try to include:
- [width:10%;] or
- [width:25px;]
but that does not work.

I hope someone can help me, thank you.

To get an idea of what exactly I mean please visit:
http://www.toncomputerjunkie.nl/deze/frameabc.htm

ddadmin
09-29-2010, 02:49 AM
On the page containing the vertical tabs where you wish their widths to be uniform, try adding the below to the HEAD section of your page, following the reference to tabcontent.css:


<style type="text/css">

.shadetabs li a{
display: block;
width:100px;
}

</style>

Setting the A element of each tab to display:block lets you adjust the width of the element.

Horde3
09-29-2010, 06:24 AM
Fantastic, it works.
I am very happy.

Regards, Ton
;):)