Skip to content

Instantly share code, notes, and snippets.

@DanielHemmati
Created July 26, 2019 17:47
Show Gist options
  • Save DanielHemmati/8840888f4dd55972a11ef64ab089d7d5 to your computer and use it in GitHub Desktop.
Save DanielHemmati/8840888f4dd55972a11ef64ab089d7d5 to your computer and use it in GitHub Desktop.
Polygon widget - flex CSS
<div class = "container">
<div class = "box">
<h3> Rick and Morty the Game Review: a fun romp blah blah</h3>
</div>
<div class = "box middle">
<h3> Lord of the Rings Seventeen million review: a fun romp blah blah</h3>
</div>
<div class = "box">
<h3> Game of Thrones the game review: a fun romp blah blah</h3>
</div>
</div
/* objective: how to make space between the boxes ?
i am going to export it, i am much more comfortable for mess aroud with it, with vscode */
*, *::after, *::before {
padding: 0;
margin: 0;
}
.container {
display: flex;
padding: 15px;
}
.box {
background: #cc0042;
/* flex: 1 1 200px; */
color: white;
font-family: Helvetica;
padding: 40px;
margin: 10xp;
text-align: center;
transition: 0.1s background;
}
.middle {
background: #b20039;
/* flex-shrink: 1; */
}
.box:hover {
background: #ff0052;
}
h3 {
font-size: 30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment