Hi, I have an issue with my drop down menu. I would like it to be transparent so that no box shows when the mouse is hovering over the drop down menu. Also the words should be centred with the parent text on the nav bar. The letters should also be in the same font as the parent text on the nav bar. Thanks.
Hi There,
Please try adding this custom CSS under Theme Options > CSS:
.masthead-inline .x-navbar .desktop .sub-menu {
box-shadow: none;
}
.desktop .sub-menu a {
font-size: 15px;
font-weight: 400;
}
If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.
I recommend you to watch following video that will help you to get started with CSS.
Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.
https://developers.google.com/web/tools/chrome-devtools/css/
Thanks.
Thank you. The drop down menu is now transparent. However, when I scroll down the page, the drop down menu also remains transparent and the drop down menu text becomes invisible against the white page. Is there a way to have the background of the dropdown menu black when it scrolls down the page?
Hi Lionel,
You have this custom code that changes the background,
jQuery( function($){
$(window).scroll( function() {
if( $(this).scrollTop() > 10 ) {
$('.home .x-navbar').css({ backgroundColor : '#000' });
} else {
$('.home .x-navbar').css({ backgroundColor : 'transparent' });
}
} );
} );
You should implement something for the sub-menu too. Example,
jQuery( function($){
$(window).scroll( function() {
if( $(this).scrollTop() > 10 ) {
$('.home .x-navbar').css({ backgroundColor : '#000' });
$('.home .desktop .sub-menu').css({ backgroundColor : '#000' });
} else {
$('.home .x-navbar').css({ backgroundColor : 'transparent' });
$('.home .desktop .sub-menu').css({ backgroundColor : 'transparent' });
}
} );
} );
Hope this helps.
Thanks that helps!
You’re welcome! 
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.