RWD Templates
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * { box-sizing: border-box; } body { margin: 0; font-family: Arial, sans-serif; } .layout { display: flex; min-height: 100vh; } .sidebar { flex: 0 0 240px; background: #263238; color: #fff; padding: 20px; } .content { flex: 1 1 auto; padding: 20px; background: #fafafa; } @media (max-width: 700px) { .layout { flex-direction: column; } .sidebar { flex: 0 0 auto; } } </style> </head> <body> <div class='layout'> <nav class='sidebar'> <h2>Menu</h2> <p>Home</p> <p>About</p> <p>Contact</p> </nav> <main class='content'> <h1>Main Content</h1> <p>This is the main content area beside the sidebar.</p> </main> </div> </body> </html>