Aller au contenu principal

CSS snippets


Snippets effets CSS

Effets de miroir

.mirror {
-webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(50%, transparent), to(rgba(250, 250, 250, 0.8)));
}

reset CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

centrage flex

.container {
display: flex;
justify-content: center;
align-items: center;
}

centrage grid

.container {
display: grid;
place-items: center;
}