View Full Version : Text Alignment Issue

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:

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:

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;
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?

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