A Logo Taller Than The Menu
If you want your logo to be taller than your menu, you can do this very easily in Divi. There are quite a few tutorials out there about how to do this with the old default header, and each one is different and none of them apply to the new Menu module that you need to use when you use the Divi Theme Builder. So today in this Divi tutorial I will show you how to make the logo overlap the Divi Menu module. This makes nearly 30 tutorials in our Divi Menu module series! And just for good measure, I’ll give you a snippet to do this same thing to the default menu as well.
▶️ Please watch the video above to get all the exciting details! 👆
Make The Logo Overlap The Top And Bottom Of The Divi Menu
This tutorial is very easy because it only takes a tiny bit of CSS code and we can add it directly into the Menu module. So go head and go to your Theme Builder header or wherever else you have the Menu module, and open the settings. Go to the Advanced tab, open the Custom CSS toggle, and find the Menu Logo CSS box. This is where you can type or paste the CSS to make the logo image overlap the menu. You can use any value you want, but in our video I am using -30px margin top and bottom. But of course, this is meant to be customized for your logo height, menu height, or whatever your situation happens to be.
margin-top: -30px;
margin-bottom: -30px;
And that’s it! I told you it was going to be quick and easy, and it sure was!
Make The Logo Overlap The Bottom Of The Default Divi Menu
If you came here looking for the CSS code to make the logo overlap the default Divi menu, then I won’t disappoint you. There are many other tutorials about this, but the snippet below will give you a great starting point. The values are definitely meant to be changed, so don’t expect them to magically work for any size of logo. The values depend entirely on the height and width of your logo, and on how much overlap you want to show.
Where To Paste The CSS Code
1. Divi Assistant
If you are using our Divi Assistant plugin, simply paste the code in the CSS tab in the custom code window in the Divi Visual Builder.
2. Child Theme
If you are using a child theme, paste this code into the style.css file. If you don't have a child theme, you can generate a child theme directly on your site or download our free child theme.
3. Divi Theme Options Integration
Otherwise, paste this code in your Divi>Theme Options>Custom CSS code box.
If you need help understanding where to paste the code, please check out our complete guide about where to add custom code In Divi.
/*set the logo height and overlap on desktop*/
@media only screen and (min-width: 981px) {
#logo {
min-height: 100px;
}
}
/*set the logo height and overlap on tablet and mobile*/
@media only screen and (max-width: 980px) {
#logo {
max-height: 80%;
width: auto;
max-width: 80%!important;
}
Be sure to adjust each of the values here to fit your needs!
Update to my last comment. I think I found something that will work. Got some help from ET. I didn’t think to oversize the height.
.overlaplogo {
padding:0 !important;
}
.overlaplogo .et_pb_menu–with-logo {
height: 90px;
margin-top: -30px;
overflow: visible;
}
.overlaplogo .et_pb_menu__logo-wrap {
height: 120%;
}
.overlaplogo .et_pb_menu__logo-wrap img {
height:120px !important;
}
.overlaplogo .et_pb_menu–with-logo .et_pb_menu__menu>nav>ul>li>a {
padding:0 !important;
}
.overlaplogo .et_pb_menu__logo {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
Is there a way to achieve the overlap effect when using the inline-centered logo menu layout? Adding a negative margin to the top and bottom of the menu logo CSS field seems to cut off the top and bottom of the logo by the total input margin and move the entire logo container up. Is it possible to have two sections, with an inline-centered logo menu layout in the second section that overlaps part of the first section?
Basically what you have on peeayecreative.com, but with an inline-centered-logo menu layout where the logo overlaps into the secondary menu in the section above.