Colors and Backgrounds
Master color properties
Beginner⏱️ 10 minutes
Lesson Content
CSS Colors
Color Formats:
color: red; /* Name */
color: #ff0000; /* Hex */
color: rgb(255, 0, 0); /* RGB */
color: rgba(255, 0, 0, 0.5); /* RGBA (with transparency) */
Background:
background-color: lightblue;
background-image: url('img.jpg');
Task: Create a div with background-color #3498db and white text.
css
Loading...
Next (Complete this lesson first)
Box Model - Margin & Padding