cstricklen
09-02-2006, 12:23 AM
DD Color Tabs
http://www.dynamicdrive.com/style/csslibrary/item/dd-color-tabs/
Can someone tell me what I did to cause this problem? I added a little top and left margin to move the link bar away from the edge of the div it's in, but I get bottom margin, too. I tried padding, but I get the same result--can't move it down and right without creating space at the bottom.
I really want the line snug up against the bottom of the tabs.
Sorry, the site isn't on a server yet, so I can't post a link.
Here is the ccs:
<style type="text/css">
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
#ddcolortabs {
margin-left: 4px;
padding: 0;
width: 100%;
background: red;
voice-family: "\"}\"";
voice-family: inherit;
padding-left: 5px;
}
#ddcolortabs ul {
font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
font-weight: normal;
font-size: small;
margin-top: 0px;
margin-left: 0px;
padding-top: 10px;
padding-left: 10px;
padding-bottom: 0px;
list-style: none;
}
#ddcolortabs li {
display: inline;
margin: 0 2px 0 0;
padding: 0;
text-transform: lowercase;
}
#ddcolortabs a {
float:left;
color: white;
background: #005500 url(images/color_tabs_left.gif) no-repeat left top;
margin:0 2px 0 0;
padding:0 0 1px 3px;
text-decoration:none;
letter-spacing: 1px;
}
#ddcolortabs a span {
float: left;
display: block;
background: transparent url(images/color_tabs_right.gif) no-repeat right top;
padding: 4px 9px 2px 6px;
}
#ddcolortabs a span {
float: none;
}
#ddcolortabs a: hover {
background-color: #007000;
}
#ddcolortabs a: hover span {
background-color: #007000;
}
#ddcolortabs #current a, #ddcolortabs #current span{ /*currently selected tab*/
background-color: #007000;
}
#ddcolortabsline {
clear: both;
padding: 0;
width: 100%;
height: 8px;
line-height: 8px;
background: #fff;
border-top: 1.5px solid #998659; /*Remove this to remove border between bar and tabs*/
}
#container {
position: absolute;
top: 50%;
left: 50%;
width: 600px;
height: 400px;
margin-top: -200px; /*set to a negative number 1/2 of your height*/
margin-left: -300px; /*set to a negative number 1/2 of your width*/
border-top: 4px solid #706141;
border-right: 3px solid #ddd5be;
border-bottom: 3px solid #ddd5be;
border-left: 4px solid #706141;
background-color: #fff;
}
#elegantbox {
position: absolute;
top: 50%;
left: 50%;
width: 250px;
height: 130px;
margin-top: -65px; /*set to a negative number 1/2 of your height*/
margin-left: -125px; /*set to a negative number 1/2 of your width*/
border-top: 4px solid #706141;
border-right: 3px solid #ddd5be;
border-bottom: 3px solid #ddd5be;
border-left: 4px solid #706141;
background-color: #005500;
}
.notes {
background-color: #e3e3e3;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
padding: 2px;
}
</style>
http://www.dynamicdrive.com/style/csslibrary/item/dd-color-tabs/
Can someone tell me what I did to cause this problem? I added a little top and left margin to move the link bar away from the edge of the div it's in, but I get bottom margin, too. I tried padding, but I get the same result--can't move it down and right without creating space at the bottom.
I really want the line snug up against the bottom of the tabs.
Sorry, the site isn't on a server yet, so I can't post a link.
Here is the ccs:
<style type="text/css">
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
#ddcolortabs {
margin-left: 4px;
padding: 0;
width: 100%;
background: red;
voice-family: "\"}\"";
voice-family: inherit;
padding-left: 5px;
}
#ddcolortabs ul {
font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
font-weight: normal;
font-size: small;
margin-top: 0px;
margin-left: 0px;
padding-top: 10px;
padding-left: 10px;
padding-bottom: 0px;
list-style: none;
}
#ddcolortabs li {
display: inline;
margin: 0 2px 0 0;
padding: 0;
text-transform: lowercase;
}
#ddcolortabs a {
float:left;
color: white;
background: #005500 url(images/color_tabs_left.gif) no-repeat left top;
margin:0 2px 0 0;
padding:0 0 1px 3px;
text-decoration:none;
letter-spacing: 1px;
}
#ddcolortabs a span {
float: left;
display: block;
background: transparent url(images/color_tabs_right.gif) no-repeat right top;
padding: 4px 9px 2px 6px;
}
#ddcolortabs a span {
float: none;
}
#ddcolortabs a: hover {
background-color: #007000;
}
#ddcolortabs a: hover span {
background-color: #007000;
}
#ddcolortabs #current a, #ddcolortabs #current span{ /*currently selected tab*/
background-color: #007000;
}
#ddcolortabsline {
clear: both;
padding: 0;
width: 100%;
height: 8px;
line-height: 8px;
background: #fff;
border-top: 1.5px solid #998659; /*Remove this to remove border between bar and tabs*/
}
#container {
position: absolute;
top: 50%;
left: 50%;
width: 600px;
height: 400px;
margin-top: -200px; /*set to a negative number 1/2 of your height*/
margin-left: -300px; /*set to a negative number 1/2 of your width*/
border-top: 4px solid #706141;
border-right: 3px solid #ddd5be;
border-bottom: 3px solid #ddd5be;
border-left: 4px solid #706141;
background-color: #fff;
}
#elegantbox {
position: absolute;
top: 50%;
left: 50%;
width: 250px;
height: 130px;
margin-top: -65px; /*set to a negative number 1/2 of your height*/
margin-left: -125px; /*set to a negative number 1/2 of your width*/
border-top: 4px solid #706141;
border-right: 3px solid #ddd5be;
border-bottom: 3px solid #ddd5be;
border-left: 4px solid #706141;
background-color: #005500;
}
.notes {
background-color: #e3e3e3;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
padding: 2px;
}
</style>