Results 1 to 3 of 3

Thread: Text Alignment Issue

  1. #1
    Join Date
    Mar 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text Alignment Issue

    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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    .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?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John,
    Thanks for the tip, the problem is solved.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •