Results 1 to 4 of 4

Thread: HV Menu text positioning

  1. #1
    Join Date
    Apr 2005
    Location
    keene, texas
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation HV Menu text positioning

    HV Menu
    http://www.dynamicdrive.com/dynamici...menu/index.htm

    the javascript includes the following var MenuTextCentered='center';

    this comman makes all menu text centered. Is there any way to make the toplevel main items centered but have all sublevel items left aligned?

    thanks
    Philip

  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

    You may be able to override the centering in individual sub level items using HTML in their 'TextToShow'* fields, like:

    <div align=left>Sub Item Text</div>

    *From config.htm file that comes with the distribution and explains all the variables and strings used.
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2005
    Location
    keene, texas
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1
    You may be able to override the centering in individual sub level items using HTML in their 'TextToShow'* fields, like:

    <div align=left>Sub Item Text</div>

    *From config.htm file that comes with the distribution and explains all the variables and strings used.

    Thanks so much, that does indeed work. It lines the text up with the extreme left of the dropdown box. Is there any way I can get a few pixels padding over on the left side?

    Thanks
    Philip

  4. #4
    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

    Yes, if that worked, then this should too:

    <div align=left style=padding-left:3px>Sub Item Text</div>

    At that rate, you could save yourself some typing by putting this in the stylesheet* for the page(s) involved:


    div.mnu {
    text-align:left;
    padding-left:3px
    }

    With that declaration in force, this can be used for each item:

    <div class=mnu>Sub Item Text</div>

    *CSS stylesheet is either an on page style section (usually in the head of the page) or an external .css file linked to your page(s).
    - John
    ________________________

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

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
  •