24th Feb 2019, 7:42 PM
olli
olli - avatar
5 Respostas
+ 8
Specify content, height and width property with each ::before and they will work.
24th Feb 2019, 8:03 PM
Arushi Singhania
Arushi Singhania - avatar
+ 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
26th Feb 2019, 1:28 AM
Arushi Singhania
Arushi Singhania - avatar
+ 6
Height and width is missing. You need to mention all three.
25th Feb 2019, 4:52 AM
Arushi Singhania
Arushi Singhania - avatar
+ 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; }
25th Feb 2019, 3:41 AM
olli
olli - avatar
+ 3
if it's not hard for you please write
25th Feb 2019, 4:56 AM
olli
olli - avatar