Skip to content

Instantly share code, notes, and snippets.

@DavidPeralvarez
Created March 29, 2018 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidPeralvarez/830e17bca3db5af2f2a9032ac3387314 to your computer and use it in GitHub Desktop.
Save DavidPeralvarez/830e17bca3db5af2f2a9032ac3387314 to your computer and use it in GitHub Desktop.
(CSS) Selectores descendientes en CSS
body{
background-color: #f2f2f2;
width: 960px;
margin: 0 auto;
}
.post{
background-color: white;
padding: 20px;
}
.post h1{
margin: 0 0 10px;
font-size: 64px;
}
.post h2{
margin: 0 0 20px;
font-size: 32px;
}
.post h3{
font-size: 24px;
}
.post p{
font-size: 18px;
}
.post p strong{
color: #0084ff;
}
.post ul li{
font-size: 18px;
}
#main-footer{
background-color: #333333;
padding: 30px;
}
#main-footer p{
margin: 0;
color: white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment