Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Dante
  • #80578
    myglassstudio
    Member
    Post count: 46

    Hello,

    My first thought it was how to create a tooltip for the main menu options. How to mouse over the main menu and appears extra info about the every menu item.

    Because in my website I do not have to use submenu items I thought that it would be much easier idea to play in that way.

    Look at my page: http://glasstimes.org/ and check the Home – About us – Products – Customers – Blog.

    You see when you mouse over it appears in every menu item a submenu Item as a description.

    -Home -> Briefly about Glass Studio
    -About us -> DNA, Philosophy, Company and Team
    -Products -> We craft, you explore the plethora.
    -Customers -> Our exceptional portfolio of projects and testimonials
    -Blog -> News, Articles, recipes and …

    but, here comes the problem.

    as you will also see in my attached image (images-1.jpg), the white background ( background-color: #FFFFFF;) it is cut in a half of my text when I mouse over in the Home menu item..

    but when i mouse over in “Briefly about Glass Studio” sub menu item then I see the white background color as I wanted to be.

    look the attached image-2.jpg

    I also want to help you more, to understand me better. I will give you the css custom codes I have used to center the text, and play with the width a little bit, e.t.c.:

    nav#main-navigation .menu ul li > a {
    padding: 10px 1px;
    text-align: center;
    width: 165%;
    font-size:14px;
    }

    nav .menu ul.sub-menu li.menu-item > a, nav .menu ul.sub-menu li > span, #top-bar nav .menu ul li > a {
    color: #444444;
    }

    .layout-fullwidth .fw-header #header-section.header-1 nav.mega-menu li .sub-container, .layout-fullwidth .fw-header #header-section.header-2 nav.mega-menu li .sub-container {
    left: -100px !important;
    padding: 10 5px;
    text-align: center;
    font-size:14px;
    width: 165%;
    }
    nav .menu ul.sub-menu {
    width: 100%;
    }

    so, please can you help me to solve my problem?

    Thank you!

    #80581
    myglassstudio
    Member
    Post count: 46

    SORRY I MADE I MISTAKE:

    this is the right css:

    nav#main-navigation .menu ul li > a {
    padding: 10px 1px;
    text-align: center;
    width: 165%;
    font-size:14px;
    }

    nav .menu ul.sub-menu li.menu-item > a, nav .menu ul.sub-menu li > span, #top-bar nav .menu ul li > a {
    color: #444444;
    }

    .layout-fullwidth .fw-header #header-section.header-1 nav.mega-menu li .sub-container, .layout-fullwidth .fw-header #header-section.header-2 nav.mega-menu li .sub-container {
    left: -100px !important;
    padding: 10 5px;
    text-align: center;
    font-size:14px;
    width: 100%;
    }
    nav .menu ul.sub-menu {
    width: 100%;
    }

    #80923
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    This is the code you want for the width:

    nav .menu ul.sub-menu {
    width: 165%;
    }
    nav#main-navigation .menu ul li > a {
    width: 100%;
    }

    Hope that helps.

    – Ed

    #80982
    myglassstudio
    Member
    Post count: 46

    Thank you Ed, you are very helpful as always! 🙂

    #80989
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Ed!

    – Kyle

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register