Synthia
12-10-2008, 05:17 PM
1) Script Title: Chrome CSS Drop Down Menu v2.5
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/chrome/
3) Describe problem:
I was able to test the functionality of this script and all looked good on my local drive.
But when I insert the code into my page's header (using a Wordpress theme), everything looks good until you scroll over the drop down links ("services" and "portfolio"). See in the attached screenshot that the submenu appears too far to the right.
The site's url is http://www.nectardesign.com.
I have modified the CSS to fit my theme. Here it is below:
.chromestyle{
position: absolute;
right: 10px;
top: 27px;
margin-right: 5px;
width: 490px;
}
.chromestyle ul{
font-size:12px;
margin:0;
padding:0;
float: right;
}
.chromestyle ul li{
/* display: inline; */
}
.chromestyle ul li.page_item {
float:left;
list-style:none;
margin:0;
padding:0;
}
.chromestyle ul li a{
border-right:1px solid #b0b0b0;
color:#808080;
display:block;
margin: 0;
padding: 1px 8px;
text-transform:lowercase;
float: left;
}
.chromestyle ul li.no_bar a{
border: none;
}
.chromestyle ul li a:hover {
color:#FE6E19;
text-decoration:none;
}
.chromestyle ul li.current_page_item, .chromestyle ul li.current_page_item a {
color: #FE6E18; /* orange */
text-decoration:none;
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #b0b0b0; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
}
.dropmenudiv a{
width: auto;
display: block;
text-indent: 3px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 0;
text-decoration: none;
text-align: left;
color:#808080;;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #F0F0F0;
}
Any help to get my submenus lined up correctly would be greatly appreciated! I like this script very much.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/chrome/
3) Describe problem:
I was able to test the functionality of this script and all looked good on my local drive.
But when I insert the code into my page's header (using a Wordpress theme), everything looks good until you scroll over the drop down links ("services" and "portfolio"). See in the attached screenshot that the submenu appears too far to the right.
The site's url is http://www.nectardesign.com.
I have modified the CSS to fit my theme. Here it is below:
.chromestyle{
position: absolute;
right: 10px;
top: 27px;
margin-right: 5px;
width: 490px;
}
.chromestyle ul{
font-size:12px;
margin:0;
padding:0;
float: right;
}
.chromestyle ul li{
/* display: inline; */
}
.chromestyle ul li.page_item {
float:left;
list-style:none;
margin:0;
padding:0;
}
.chromestyle ul li a{
border-right:1px solid #b0b0b0;
color:#808080;
display:block;
margin: 0;
padding: 1px 8px;
text-transform:lowercase;
float: left;
}
.chromestyle ul li.no_bar a{
border: none;
}
.chromestyle ul li a:hover {
color:#FE6E19;
text-decoration:none;
}
.chromestyle ul li.current_page_item, .chromestyle ul li.current_page_item a {
color: #FE6E18; /* orange */
text-decoration:none;
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #b0b0b0; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 12px;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
}
.dropmenudiv a{
width: auto;
display: block;
text-indent: 3px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 0;
text-decoration: none;
text-align: left;
color:#808080;;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #F0F0F0;
}
Any help to get my submenus lined up correctly would be greatly appreciated! I like this script very much.