Coding task · HTML and CSS course · Module 3: CSS Basics
Backgrounds and Borders
In Ancient Egypt, every temple had decorated walls with colorful frames. In CSS, background-color sets the background, border adds a frame, and border-radius rounds the corners. You can combine these properties to create beautiful elements!
Task
Create 3 Egyptian cards as <div> elements. First (.gold-card): background-color: #FFD700, border: 3px solid #B8860B, border-radius: 10px. Second (.nile-card): background-color: #1E90FF, border: 3px dashed white. Third (.desert-card): background-color: #F4A460, border: 3px double #8B4513. Add padding: 20px and margin: 15px to all.