Hello campers
I can’t figure out why the menu icon (Which should have the dropdown) won’t fit properly…
Someone please help me.
Your code so far
Here’s the link
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; CPH1909 Build/O11019) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36.
Remove the padding: 14px 16px; you have on all a tags, you can add the padding later to the rest of the a tags on the page with a more specific class so the menu is not affected
Add display: flex to #header
In the HTML:
4. Move your pink icon right below the header so it looks like this:
<header id="header">
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
// rest of the header code
Making these changes gets your hamburger menu icon, website icon and title all in one line!
That was really helpful…thank you very much @singhshemona, I really appreciate.
Only that I had to add the link after other header codes because I wanted it on the right…but the links in the menu icon are not droping down when I click on it…
any ideas how I can achieve that?