JSFiddle - React, Tailwind, and code Playground
by Luckypouet
HTML
<div class="test">
Salut les copains !
<div class="sub"><span class="child">Sous élément</span></div>
</div>
CSS
.test{
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#1e5799+0,7db9e8+100 */
background: rgb(30,87,153); /* Old browsers */ /* FF3.6-15 */ /* Chrome10-25,Safari5.1-6 */
background: -webkit-linear-gradient(left, rgba(30,87,153,1) 0%, rgba(125,185,232,1) 100%);
background: -moz-linear-gradient(left, rgba(30,87,153,1) 0%, rgba(125,185,232,1) 100%);
background: -o-linear-gradient(left, rgba(30,87,153,1) 0%, rgba(125,185,232,1) 100%);
background: linear-gradient(to right, rgba(30,87,153,1) 0%, rgba(125,185,232,1) 100%);
/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=1 ); /* IE6-9 */
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font:700 60px "Arial";
}
.test:before{
content:'@';
}
.test:after{
content:"@";
}
.sub{
position: relative;
}
.sub:before{
content:'@';
}
.sub:after{
content:"@";
}
.child{ font-size:0; }