The hamburger menu icon should be one the right side the image should be on the left site.
When we will click the menu to open should open dropdown and inside it should be the logo home about us galleru contact.
Home
<li class="li3"><a class="a2" href="aboutus.html">About Us</a></li>
<li class="li4"><a class="a3" href="gallery.html">Gallery</a></li>
<li class="li5"><a class="a4" href="contact.html">Contact</a></li>
<a class="Contact_Us" href="contact.html">
<img class="Contact-us-img"src="Vector.svg" alt="">
<span class="Contact-us-text">Contact Us</span>
</a>
</ul>
I just need to turn it into css
I need it for iphone 14pro responsive to be hamburger menu
2
Answers
To make the menu responsive and display a hamburger menu for iPhone 14 Pro or any other mobile device, you can use media queries in CSS. Here’s the modified CSS code to achieve the responsive hamburger menu:
CSS (styles.css):
With this modified CSS, the menu will be hidden on larger screens and will display the hamburger menu icon. On smaller screens, such as iPhone 14 Pro or other mobile devices, the hamburger menu will be visible. When you click the hamburger menu icon, the menu will slide down, revealing the links to Home, About Us, Gallery, and Contact pages.
Remember to include this CSS in the section of your HTML file to apply the styles to your webpage.
First of all, stackoverflow is not a website where you post a code snippet and ask somebody to implement something. Nevertheless, I think this might help you W3Schools. As you can see in that tutorial, there is a way in CSS to ckeck how wide the screen is.
In this example, the background-color will be set to lightblue, when the width is smaller than 600px. Using this rule, you can change your CSS accordingly.
You should definitely try to implement it yourself, and not just copy paste from the internet. Go experiment, and have fun with CSS, that’s the only way to learn it.
Happy coding!