Vertical Menu
CSS
Easy
2 views
Problem Description
Make a vertical menu using flex-direction column.
Output Format
Print the HTML+CSS code in one block.
Constraints
Use flex-direction: column.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
<style>
nav { display: flex; flex-direction: column; gap: 10px; width: 200px; }
a { padding: 10px 12px; border: 1px solid #eee; border-radius: 12px; text-decoration: none; color: #124; }
</style>
</head>
<body>
<nav>
<a href='#'>Dashboard</a>
<a href='#'>Topics</a>
<a href='#'>Settings</a>
</nav>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!