The phone style drop-down menu does not work

4 replies · opened Feb 27, 2021

JjianyinliFeb 27, 2021

my web's in phone style drop-down menu does not work ..

After searching for a long time, I can't find the reason. How can I solve this problem? Did I accidentally delete some class?

SSemicolon WebSTAFFFeb 28, 2021

Hello,

The following Customization Codes in your css/custom.css File is causing this issue:
[ch_pre type="css"].sub-menu-container,
.mega-menu-content {
position: absolute;
visibility: hidden;
width: 220px;
background-color: #262626;
box-shadow: 0px 13px 42px 11px rgba(0, 0, 0, 0.05);
border: 1px solid #EEE;
border-top: 2px solid #8785C1;
z-index: 399;
top: 100%;
left: 0;
padding: 0;
}[/ch_pre]

Make sure that when you are Customizing CSS Codes, you are also properly copying the Media Queries to avoid issues on different devices. The above codes should be places inside the @media (min-width: 992px) Media Query and this should fix the issue on Mobile Devices.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

JjianyinliMar 1, 2021

So should I write like this ?


@media (min-width: 992px)
.sub-menu-container,
.mega-menu-content {
	position: absolute;
	visibility: hidden;
	width: 220px;
	background-color: #262626;
	box-shadow: 0px 13px 42px 11px rgba(0, 0, 0, 0.05);
	border: 1px solid #EEE;
	border-top: 2px solid #8785C1;
	z-index: 399;
	top: 100%;
	left: 0;
	padding: 0;
}
JjianyinliMar 1, 2021

Thank you, it is normal after I deleted it! thank you very much!

SSemicolon WebSTAFFMar 1, 2021

Hello,

Glad that the issues were resolved!

This is how your codes should look like:
[ch_pre type="css"]@media (min-width: 992px) {
.sub-menu-container,
.mega-menu-content {
position: absolute;
visibility: hidden;
width: 220px;
background-color: #262626;
box-shadow: 0px 13px 42px 11px rgba(0, 0, 0, 0.05);
border: 1px solid #EEE;
border-top: 2px solid #8785C1;
z-index: 399;
top: 100%;
left: 0;
padding: 0;
}
}[/ch_pre]

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard