3
You can do the image icon with CSS below?
If yes, how can I?
I tried to do it like this, but I can’t create the third page, I can only do two:
.pages:before{
content: "";
width:25px;
height:20px;
background-color:#FF0004; /*vermelho*/
position:absolute;
z-index:3;
top:0;
left:0;
}
.pages{
width:25px;
height:20px;
background-color:#F8FF00;
z-index:2;
position:absolute;
top:4px;
left:4px;
}
.pages:after{
content: "";
width:25px;
height:20px;
background-color:#2200FF; /*azul*/
z-index:1;
position:absolute;
top:8px;
left:8px;
}
<span class="pages"></span>
I know I could create 3 different spans one for each page and apply a style to each one, but I do not believe it is feasible to create HTML elements in exception.
You think it’s worth the effort to create icons with CSS?
– Marconi
The effort will be worth not only for the site, but for the experience of learning such, since it is an interesting side of CSS to explore.
– Leo Letto
This may help: https://code.tutsplus.com/tutorials/how-to-create-a-beautiful-icon-with-css3-net-21915
– Murillo Goulart
boy, use svg...
– Renan Gomes