Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Menu sub items
New Landing › How can we help? › Themeforest Theme Support › Dante › Menu sub items
- This topic has 4 replies, 3 voices, and was last updated 10 years by Kyle – SUPPORT.
-
Posted in: Dante
-
June 6, 2014 at 8:22 am #80578
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!
June 6, 2014 at 8:26 am #80581SORRY 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%;
}June 8, 2014 at 3:02 pm #80923This 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
June 9, 2014 at 6:55 am #80982Thank you Ed, you are very helpful as always! 🙂
June 9, 2014 at 7:10 am #80989Thanks Ed!
– Kyle
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.