Coding task · HTML and CSS course · Module 5: Responsiveness

Responsive container for a temple

Create a responsive container for a page about a temple in Ancient Egypt! Use the pattern: width: 100% (full width on small screens), max-width: 1200px (limit on large screens), margin: 0 auto (centering). Don't forget about box-sizing: border-box and padding!

Task

Write CSS for a responsive .container: width: 100%, max-width: 1200px, margin: 0 auto, padding: 0 20px. Add box-sizing: border-box for the * selector. The .temple section should have width: 100%, padding: 40px 0 and background #F4E4C1.