CSS Library: Horizontal CSS Menus: Here
Shade Image Tabs Menu
Author: Dynamic Drive
This is an attractive "blue shading" image tab menu. The shade effect is created using two gradient background images, one for the overall tabs, and the other, for the currently "active" tab. Based partially on the Basic Tabs menu, Shade Image Tabs Menu supports three commonly requested features:
- Ability to align the menu tabs "left", "center", or "right" on the page
- Highlight a particular tab so it appears selected/ active,
- Change the width of the tab menu (so the underline beneath it spans a length other than the entire width of the page.
Demo:
The two images (resized for easier download):
![]()
The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 8 of 8 pages « First < 6 7 8
eyvallah on numara olmus fiyat diyor bunu
love the menu script, but for some reason i can't get the selected page function to work. been pulling out what little hair i have left. would really appreciate some feedback. thanks.
here's the code i'm using:
.shadetabs{
border-bottom: 1px solid gray;
width: 84%;
margin-bottom: 1em;
}
.shadetabs ul{
padding: 3px 0;
margin-left: 0;
margin-top: 1px;
margin-bottom: 0;
font: 9px Verdana;
list-style-type: none;
text-align: center;
}
.shadetabs li{
display: inline;
margin: 0;
}
.shadetabs li a{
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 1px solid #778;
color: #2d2b2b;
background: white url(../image/shade.gif) top left repeat-x;
}
.shadetabs li a:visited{
color: blue;
}
.shadetabs li a:hover{
text-decoration: underline;
color: #2d2b2b;
}
.shadetabs li.selected{
position: relative;
top: 1px;
}
.shadetabs li.selected a{ /*selected main tab style */
background-image: url(../image/shadeactive.gif);
border-bottom-color: white;
}
.shadetabs li.selected a:hover{ /*selected main tab style */
text-decoration: none;
}
the list code is in a .js file could tat be my problem?????
OneLove, OneHeart
Amari
here's the code i'm using:
.shadetabs{
border-bottom: 1px solid gray;
width: 84%;
margin-bottom: 1em;
}
.shadetabs ul{
padding: 3px 0;
margin-left: 0;
margin-top: 1px;
margin-bottom: 0;
font: 9px Verdana;
list-style-type: none;
text-align: center;
}
.shadetabs li{
display: inline;
margin: 0;
}
.shadetabs li a{
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 1px solid #778;
color: #2d2b2b;
background: white url(../image/shade.gif) top left repeat-x;
}
.shadetabs li a:visited{
color: blue;
}
.shadetabs li a:hover{
text-decoration: underline;
color: #2d2b2b;
}
.shadetabs li.selected{
position: relative;
top: 1px;
}
.shadetabs li.selected a{ /*selected main tab style */
background-image: url(../image/shadeactive.gif);
border-bottom-color: white;
}
.shadetabs li.selected a:hover{ /*selected main tab style */
text-decoration: none;
}
the list code is in a .js file could tat be my problem?????
OneLove, OneHeart
Amari
If you change the
<div class="shadetabs"></div>
to
<span class="shadetabs"></span>
then the tabs will rest directly on top of the next HTML, instead of spaced slightly above.
<div class="shadetabs"></div>
to
<span class="shadetabs"></span>
then the tabs will rest directly on top of the next HTML, instead of spaced slightly above.
Nice tutorial
thanks
thanks








