Skip to content

Instantly share code, notes, and snippets.

@davidcp90
Created October 5, 2019 15:37
Show Gist options
  • Save davidcp90/efc3de3c57cbefcccbf4af2a25f959de to your computer and use it in GitHub Desktop.
Save davidcp90/efc3de3c57cbefcccbf4af2a25f959de to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Migue</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style type="text/css">
#icons{
display: flex;
width: 100%;
justify-content: center;
flex-wrap: wrap;
}
article {
display: flex;
flex-direction: column;
width: 30%;
margin: 8px;
text-align: center;
align-items: center;
}
article img {
width: 128px;
}
@media screen and (max-width: 500px) {
#icons {
flex-direction: column;
align-items: center;
}
article {
width: 90%;
background-color: #ffcc00;
}
}
@media screen and (min-width: 501px) and (max-width: 768px) {
article {
width: 40%;
background-color: #ff3344;
margin: 8px 16px;
}
}
</style>
</head>
<body>
<section id="icons">
<article>
<img src="https://dummyimage.com/128x128/fff/aaa">
<h2>Titulo</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article>
<article>
<img src="https://dummyimage.com/128x128/fff/aaa">
<h2>Titulo</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article>
<article>
<img src="https://dummyimage.com/128x128/fff/aaa">
<h2>Titulo</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article>
<article>
<img src="https://dummyimage.com/128x128/fff/aaa">
<h2>Titulo</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article>
<article>
<img src="https://dummyimage.com/128x128/fff/aaa">
<h2>Titulo</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article>
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment