Jump to content

[SOLVED] Tab Menu


ted_chou12

Recommended Posts

Hello, below is my tab menu css:

/***********************************************
* DD Tab Menu script- ?Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

.ddcolortabs{
padding: 0;
width: 100%;
background: transparent;
voice-family: "\"}\"";
voice-family: inherit;
}

.ddcolortabs ul{
font: bold 11px Arial, Verdana, sans-serif;
margin: 0;
padding: 0;
list-style: none;
}

.ddcolortabs li{
display: inline;
margin: 0 2px 0 0;
padding: 0;
}

.ddcolortabs a{
float: left;
background: #cccccc url(media/color_tabs_left.gif) no-repeat left top;
margin: 0 2px 0 0;
padding: 0 0 1px 0;
text-decoration: none;
letter-spacing: 1px;
}

.ddcolortabs span{
color: #333333;
float: none;
display: block;
background: transparent url(media/color_tabs_right.gif) no-repeat right top;
padding: 6px 6px 3px 8px;
}

.ddcolortabs a:hover{
background-color: #f2f2f2;
}

.ddcolortabs a.current, #ddcolortabs a.current span{
background-color: #f2f2f2;
}

.tabcontainer{
clear: left;
width: 100%;
height: 150px;
}

.tabcontent{
display: none;
background-color: #f2f2f2;
width: 100%;
height: 150px;
}

However, if you see here:

http://tedchou12.110mb.com/uploads/tabmenutest.html

I wish to match the tabs the same width as the content box, if you see the top, the tabs are all to the left.

Thanks

Ted.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.