+ 5
Help with the before in css
5 Respostas
+ 8
Specify content, height and width property with each ::before and they will work.
+ 7
olli I have used before but I am not sure what u actually wanted to do with them. So edit it, as per ur needs.
https://code.sololearn.com/W0V5prTVKp7C/?ref=app
+ 6
Height and width is missing. You need to mention all three.
+ 4
thanks for the answer but the content is written in the block
.main div::before{
position: absolute;
content: ""; //--- here
top:0;
left:50%;
right:50%;
bottom:0;
background: tomato;
transition: all .5s;
z-index: -1;
}
+ 3
if it's not hard for you please write