feeble_fuel
06-24-2008, 06:10 AM
1) Script Title: Drop Down Tabs: Blue Tabs
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/droptabmenu.htm
3) Describe problem:
1. The drop downs do not appear in Fire Fox but they do in IE7.
2. I would like to change the tabs to a solid navigation bar instead of tabs, but can't seem to figure out how to get rid of the spacing between tabs.
3. Also, I am trying to use a background image for the top level nav bar that is 28px high, but it seems the tab height is more determined by the size of the font, so the image is either cut off or shrunk down. Is it controlled in the javascript?
Here is a link to a test url:
http://www.stickpeopleproductions.com/WholeAthlete/dropdowntabsdemo.htm
You can see what the gray main navigation background and size would look like here:
http://www.stickpeopleproductions.com/WholeAthlete/
My CSS is below. I've made some modifications here and there but nothing too drastic at this point.
Any help is greatly appreciated!
Cheers,
Kelly
.bluetabs{
border-bottom: 0;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
font-size: 11px;
}
.bluetabs ul{
padding: 3px 0;
margin-left: 0;
margin-top: 1px;
margin-bottom: 0;
list-style-type: none;
text-align: left; /*set to left, center, or right to align the menu as desired*/
}
.bluetabs li{
display: inline;
margin: 0;
}
.bluetabs li a{
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 0;
color: #000000;
background: white url(http://www.stickpeopleproductions.com/WholeAthlete/assets/graphics/NavGray.gif) repeat-x top left; /*THEME CHANGE HERE*/
height: 28px;
}
.bluetabs li a:visited{
color: #000000;
}
.bluetabs li a:hover{
text-decoration: none;
color: #ffffff;
}
.bluetabs li.selected{
}
.bluetabs li.selected a{
background-image: url(http://www.stickpeopleproductions.com/WholeAthlete/assets/graphics/NavGrayOver.gif); /*THEME CHANGE HERE*/
border-bottom-color: white;
height: 28px;
}
.bluetabs li.selected a:hover{ /*selected main tab style */
background-image: url(http://www.stickpeopleproductions.com/WholeAthlete/assets/graphics/NavGrayOver.gif);
height: 28px;
text-decoration: none;
color: #ffffff;
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv_b{
position:absolute;
top: 0;
border: 1px solid #918d8d; /*THEME CHANGE HERE*/
border-width: 0 0px;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
font-size: 11px;
line-height:28px;
z-index:100;
background-color: #e4e4e4;
width: 200px;
visibility: hidden;
}
.dropmenudiv_b a{
width: auto;
display: block;
text-indent: 5px;
border: 0 solid #918d8d; /*THEME CHANGE HERE*/
border-bottom-width: 1px;
padding: 2px 0;
text-decoration: none;
color: black;
}
* html .dropmenudiv_b a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv_b a:hover{ /*THEME CHANGE HERE*/
background-color: #999999;
}
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/droptabmenu.htm
3) Describe problem:
1. The drop downs do not appear in Fire Fox but they do in IE7.
2. I would like to change the tabs to a solid navigation bar instead of tabs, but can't seem to figure out how to get rid of the spacing between tabs.
3. Also, I am trying to use a background image for the top level nav bar that is 28px high, but it seems the tab height is more determined by the size of the font, so the image is either cut off or shrunk down. Is it controlled in the javascript?
Here is a link to a test url:
http://www.stickpeopleproductions.com/WholeAthlete/dropdowntabsdemo.htm
You can see what the gray main navigation background and size would look like here:
http://www.stickpeopleproductions.com/WholeAthlete/
My CSS is below. I've made some modifications here and there but nothing too drastic at this point.
Any help is greatly appreciated!
Cheers,
Kelly
.bluetabs{
border-bottom: 0;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
font-size: 11px;
}
.bluetabs ul{
padding: 3px 0;
margin-left: 0;
margin-top: 1px;
margin-bottom: 0;
list-style-type: none;
text-align: left; /*set to left, center, or right to align the menu as desired*/
}
.bluetabs li{
display: inline;
margin: 0;
}
.bluetabs li a{
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 0;
color: #000000;
background: white url(http://www.stickpeopleproductions.com/WholeAthlete/assets/graphics/NavGray.gif) repeat-x top left; /*THEME CHANGE HERE*/
height: 28px;
}
.bluetabs li a:visited{
color: #000000;
}
.bluetabs li a:hover{
text-decoration: none;
color: #ffffff;
}
.bluetabs li.selected{
}
.bluetabs li.selected a{
background-image: url(http://www.stickpeopleproductions.com/WholeAthlete/assets/graphics/NavGrayOver.gif); /*THEME CHANGE HERE*/
border-bottom-color: white;
height: 28px;
}
.bluetabs li.selected a:hover{ /*selected main tab style */
background-image: url(http://www.stickpeopleproductions.com/WholeAthlete/assets/graphics/NavGrayOver.gif);
height: 28px;
text-decoration: none;
color: #ffffff;
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv_b{
position:absolute;
top: 0;
border: 1px solid #918d8d; /*THEME CHANGE HERE*/
border-width: 0 0px;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight: bold;
font-size: 11px;
line-height:28px;
z-index:100;
background-color: #e4e4e4;
width: 200px;
visibility: hidden;
}
.dropmenudiv_b a{
width: auto;
display: block;
text-indent: 5px;
border: 0 solid #918d8d; /*THEME CHANGE HERE*/
border-bottom-width: 1px;
padding: 2px 0;
text-decoration: none;
color: black;
}
* html .dropmenudiv_b a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv_b a:hover{ /*THEME CHANGE HERE*/
background-color: #999999;
}