PDA

View Full Version : AnyLink CSS Menu script v2.0-jumps to the right



BobMinkin
10-27-2010, 11:12 PM
1) Script Title: AnyLink CSS Menu script v2.0

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm (V.2.0)

3) Describe problem: When I click on the drop down link it jumps to the right. Otherwise it works fine. Thanks for a great script

URL: http://www.minkindesign.com/client/SCD/services.html
Please check the "OUR SERVICES" link


My Anylinks CSS:

/* ######### Default class for drop down menus ######### */

.anylinkcss{
position: absolute;
visibility: hidden;
line-height: 25px;
z-index: 5000;
width: 230px; /* default width for menu */
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-style: normal;
text-transform: uppercase;
font-weight: bold;
font-variant: normal;
text-decoration: none;
background-color: #336699;
border: 0px dashed #cccccc;
top: 0;
left: 0;
}

.anylinkcss ul{
margin: 0;
padding: 0;
list-style-type: none;
}

.anylinkcss ul li a{
width: 100%;
display: block;
text-indent: 6px;
padding: 4px 0;
text-decoration: none;
font-weight: bold;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-style: normal;
text-transform: uppercase;
line-height: 25px;
color: #FFF;
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #cccccc;
top: 0;
right: 15px;
}

.anylinkcss a:hover{ /*hover background color*/
font-weight: bold;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
font-style: normal;
text-transform: uppercase;
line-height: 25px;
background: #369;
color: #f90;
text-decoration: underline;
text-transform: uppercase;
}


/* ######### Alternate multi-column class for drop down menus ######### */


.anylinkcsscols{
position: absolute;
left: 0;
top: 0;
visibility: hidden;
border: 1px solid black;
padding: 10px;
font: normal 12px Verdana;
z-index: 5000; /*zIndex should be greater than that of shadow's below*/
background: #DEFFCA;
}

.anylinkcsscols .column{
width: 130px;
float: left;
}

.anylinkcsscols .column ul{
margin: 0;
padding: 0;
list-style-type: none;
}

.anylinkcsscols li{
padding-bottom: 3px;
}

/* ######### class for shadow DIV ######### */


.anylinkshadow{ /*CSS for shadow. Keep this as is */
position: absolute;
left: 0;
top: 0;
z-index: 4999; /*zIndex for shadow*/
background: black;
visibility: hidden;
}
.recent-news-orange {
font-weight: normal;
color: #F90;
font-size: 22px;
background-color: #FFF;
padding-top: 9px;
padding-right: 114px;
padding-bottom: 9px;
padding-left: 0px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #0066cc;
line-height: 44px;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #0066cc;
}
.recent-news-blue {
color: #06c;
font-size: 22px;
background-color: #FFF;
padding-top: 9px;
padding-right: 6px;
padding-bottom: 9px;
padding-left: 12px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #0066cc;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #0066cc;
line-height: 44px;
}
.homepage-lead-in-BLUE {
font-weight: bold;
color: #0066cc;
font-family: Verdana, Geneva, sans-serif;
font-size: 23px;
line-height: 32px;
}

ddadmin
10-28-2010, 08:12 AM
This is simply due to the CSS on your page, specifically, the following rule:


a:active {
text-decoration: none;
color: #F90;
text-align: center;
}


You should remove it if don't want the links to move when they are active.

Please format any code in your post using the CODE tag. This makes it a lot easier to read it.

BobMinkin
10-28-2010, 05:46 PM
That was easy. Thanks so much pointing that out.

Bob