Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Combining two HTML files

I have two separate HTML files both with different css and javascript. The one file is a responsive burger menu and the other a desktop and laptop dropdown menu. I want to know if there is a way of making it so that when the device with is less than 700px it switches from the full navigation bar to the burger menu. Would I have to put both menus into one file?

like image 541
Luke B Avatar asked Aug 25 '26 18:08

Luke B


1 Answers

To switch from full navbar to burger menu, checkout the CSS @media rule.

@media screen and (min-width: 700px) {
    /* 
      Your code here (e.g burger menu class set to active)..
    */
}
like image 127
Hulke Avatar answered Aug 27 '26 09:08

Hulke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!