Skip to content

Instantly share code, notes, and snippets.

@agustinpfs
Last active June 29, 2020 11:27
Show Gist options
  • Save agustinpfs/132c4030092e7259765a0b10634db23c to your computer and use it in GitHub Desktop.
Save agustinpfs/132c4030092e7259765a0b10634db23c to your computer and use it in GitHub Desktop.
Propiedades CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Propiedades</title>
<style>
article {
background-color: gold;
font-family: Arial, Helvetica, sans-serif;
width: 300px;
height: 300px;
padding: 16px;
margin-bottom: 32px;
margin-right: 32px;
display: inline-block;
}
h2 {
color: hotpink;
font-size: 20px;
}
p {
text-align: center;
}
</style>
</head>
<body>
<article>
<h2>Primer articulo h2</h2>
<p>Hola párrafo 1</p>
</article>
<article>
<h2>Segundo articulo h2</h2>
<p>Hola párrafo 2</p>
</article>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment