Re: Header menu hiding behind video background on mobile

Solved

Header menu hiding behind video background on mobile

Salonesyd
Shopify Partner
3 0 0

Hi there, 

 

I have added a video background section but the drop down header menu now hides behind when clicked on. Can you please help? I am using the Dawn theme. 

Accepted Solution (1)

NomtechSolution
Astronaut
1245 113 153

This is an accepted solution.

To ensure that the dropdown header menu appears above the video background section in the Dawn theme, you can adjust the CSS z-index property. Here's an example of how you can do it:

  1. Find the CSS selector for the video background section: Identify the CSS selector for the element that represents your video background section. It could be a class or an ID assigned to the section or a specific container within the section. For the purpose of this example, let's assume the selector is .video-background-section.

  2. Update the CSS for the video background section: Apply a higher z-index value to the video background section to ensure it appears below the dropdown menu. Add the following CSS code to your theme's stylesheet or within the <style> tags in the Liquid section where the video background is implemented:

 

.video-background-section {
  position: relative;
  z-index: -1;
}

 

In the above code, the z-index property is set to -1 for the video background section. This places it below the default z-index of other elements on the page, allowing the dropdown menu to appear above it when clicked.

View solution in original post

Replies 7 (7)

NomtechSolution
Astronaut
1245 113 153

This is an accepted solution.

To ensure that the dropdown header menu appears above the video background section in the Dawn theme, you can adjust the CSS z-index property. Here's an example of how you can do it:

  1. Find the CSS selector for the video background section: Identify the CSS selector for the element that represents your video background section. It could be a class or an ID assigned to the section or a specific container within the section. For the purpose of this example, let's assume the selector is .video-background-section.

  2. Update the CSS for the video background section: Apply a higher z-index value to the video background section to ensure it appears below the dropdown menu. Add the following CSS code to your theme's stylesheet or within the <style> tags in the Liquid section where the video background is implemented:

 

.video-background-section {
  position: relative;
  z-index: -1;
}

 

In the above code, the z-index property is set to -1 for the video background section. This places it below the default z-index of other elements on the page, allowing the dropdown menu to appear above it when clicked.

Salonesyd
Shopify Partner
3 0 0

Thank you so much, it worked!

PeakyCC
Tourist
19 0 3

How did you do that? I dont get it 

PeakyCC
Tourist
19 0 3

I did it. But it did not work. Is this still the answer to that Problem? 

Rayen1
Visitor
1 0 0

It doesn't seem to work. Is this solution still up to date?

shreyhweb
Shopify Partner
633 111 116

@Salonesyd 

 

share the store URL then we will able to help you.

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com
Salonesyd
Shopify Partner
3 0 0

https://marcythelabel.myshopify.com/

PW: leoski

 

Thank you!