i need help make this part of js

https://www.coloniaverdenyc.com/menus in this website how can i use this java script thing switch menu to dinner luanch brunch drinks
Menus
Explore our tantalizing menu featuring Latin American fare for dinner, lunch, brunch, and drinks.
16 Replies
NIMA
NIMA2mo ago
, anyone know > ?
missymae#2783
missymae#27832mo ago
most websites would use React and conditionally render the menu items with a state variable.
Shane
Shane2mo ago
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
missymae#2783
missymae#27832mo ago
^^ and those are ways with JS only 👍🏽
NIMA
NIMA2mo ago
tnx i was looking this one but i dont know the name can i ask something abotut css
NIMA
NIMA2mo ago
this is i want
NIMA
NIMA2mo ago
but this is happen how i can make it 2 part like first photo"
Shane
Shane2mo ago
google display grid
NIMA
NIMA2mo ago
i should use grid? can i use flex to or any grid
Shane
Shane2mo ago
use grid with two columns you could use flex as well
NIMA
NIMA2mo ago
.parent { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, 1fr); grid-column-gap: 5px; grid-row-gap: px; } this good?
Shane
Shane2mo ago
idk does it work?
NIMA
NIMA2mo ago
yes tnx i forget about grid