What you will use in this project
- Selectors
- Colors
- Background images
- Grouping selectors
In style.css:
body.background-color and a dark text color.body {
background-color: #EEF0F3;
color: #334155;
}#hero finds the element with id="hero".In style.css:
#hero.background-image with url(). Use the photo of the first card in index.html, cinqueterre.jpg: copy its full address, with https:// and straight quotes.background-size: cover, background-position: center and color: white.#hero {
background-image: url("https://www.w3schools.com/w3images/cinqueterre.jpg");
background-size: cover;
background-position: center;
color: white;
}In style.css:
h2, h3 (one rule, with a comma) a dark color.a a color that stands out..navbar background-color: white.h2, h3 {
color: #0F172A;
}
a {
color: #2563EB;
}
.navbar {
background-color: white;
}In style.css:
.section a white background-color.#quote a dark background-color and color: white.#subscribe and a second rule for .card, each with a light background-color..section {
background-color: white;
}
#quote {
background-color: #0F172A;
color: white;
}
#subscribe {
background-color: #E0EAFF;
}
.card {
background-color: #F8FAFC;
}