scrimba
Responsive Design
CSS
Inheritance
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Inheritance
Expand for more info
css
style.css
run
preview
console
body {
margin: 0;
font-family: Garamond,Baskerville,Baskerville Old Face,Hoefler Text,Times New Roman,serif;

}

h1, h2, p {
margin-top: 0;
}

h1 {
font-size: 24px;
}

p {
font-size: 18px;
}

a {
color: #FFE600;
}

header,
section {
padding: 50px;
}

header {
background: #FFE600;
color: #000;
}

.section-one {
background: black;
color: white;
}

.section-two-link {
color: black;
}


/* button styles */

.btn-yellow {
display: inline-block;
padding: 12px 25px;
background: #FFE600;
color: #000;
font-weight: bold;
text-decoration: none;
}

.btn-yellow:hover {
background: white;
}

.btn-black {
display: inline-block;
padding: 12px 25px;
background: #000;
color: #fff;
font-weight: bold;
text-decoration: none;
}

.btn-black:hover {
background: #FFE600;
color: black;
}

Console
index.html
-1:55