Results 1 to 2 of 2

Thread: All Levels Nav Menu 2.2 - simple CSS question

  1. #1
    Join Date
    Jun 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default All Levels Nav Menu 2.2 - simple CSS question

    1) Script Title: All Levels Navigational Menu (v2.2)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/index.htm

    3) Describe problem:

    Simple one here. In ddlevelsmenu-topbar.css, I adjusted the size of the menu boxes to 105 x 42, as shown in the code below. Now the text is top-left and the drop down boxes are several pixels below the menu.

    How can I center the text (both horizontally and vertically) and move up the drop boxes?

    Thanks,
    Arch

    Menu is at: www.skolnyfamily.org/demo.htm

    Adjusted css:

    Code:
    .mattblackmenu li a{
    float: left;
    display: block;
    vertical-align: center;
    text-decoration: none;
    top-margin: 12;
    padding: 6px 8px; /*padding inside each tab*/
    border-right: 1px solid white; /*right divider between tabs*/
    color: white;
    background: #000000;
    width: 105px;
    height: 42px;
    }

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Centering the anchor text horizontally is easy enough:

    Code:
    .mattblackmenu li a{
    float: left;
    display: block;
    text-decoration: none;
    padding: 0px 0px; /*padding inside each tab*/
    border-right: 1px solid white; /*right divider between tabs*/
    color: white;
    background: #000000;
    width: 105px;
    height:42px;
    text-align: center;
    }
    Vertically is a different story though. You may want to do a Google search on this. Also, can you elaborate on the below?

    and move up the drop boxes?
    DD Admin

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
  •