PDA

View Full Version : Text Alignment Issue



loobner
01-26-2007, 03:52 AM
1) Script Title: Anylink CSS Menu

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/anylinkcss.htm

3) Describe problem: The text in the dropdown on your site is aligned to the left but on my site it is centered and doesn't look good. I've tried everything I can think of to correct it and I'm out of ideas.:eek:

jscheuer1
01-26-2007, 05:38 AM
Hard to say without seeing your code. Probably you have something on your page that is centering other content and is getting picked up by the menu. You could try adding this (red in the below) in anylink.css:


.anylinkcss{
position:absolute;
visibility: hidden;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height: 18px;
z-index: 100;
background-color: #E9FECB;
width: 205px;
}

.anylinkcss a{
width: 100%;
display: block;
text-indent: 3px;
text-align:left;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
text-indent: 5px;
}

.anylinkcss a:hover{ /*hover background color*/
background-color: black;
color: white;
}
}

If that doesn't do it for you, how about a link to your page?

loobner
01-26-2007, 12:36 PM
John,
Thanks for the tip, the problem is solved.