<!DOCTYPE html> <html lang="en"> <head> <title>Minimal Responsive Website</title> <style> body { margin: 0; font-family: Arial, sans-serif; } header, footer { background: #4CAF50; color: white; text-align: center; padding: 10px 0; } nav { background: #333; text-align: center; } nav a { color: white; padding: 10px; text-decoration: none; display: inline-block; } .container { padding: 10px; } .box { border: 1px solid #ccc; margin: 10px 0; padding: 10px; text-align: center; } /* Media Queries */ @media (min-width: 600px) { .box { display: inline-block; width: calc(33% - 20px); margin: 10px; } } </style> </head> <body> <header> <h1>Responsive Website</h1> </header> <nav> <a href="#home">Home</a> <a href="#about">About</a> <a href="#services">Services</a> <a href="#contact">Contact</a> </nav> <div class="container"> <div class="box">Box 1</div> <div class="box">Box 2</div> <div class="box">Box 3</div> </div> <footer> <p>Footer © 2024</p> </footer> </body> </html>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter