div{
width:100px;
height:100px;
border:1px solid #000;
display:inline-block;
position:relative;
}
div:before{
content:'';
display:block;
background:red;
width:100%;
height:100%;
position:absolute;
left:90%; top:0;
}
*:before{
background:blue;
}
<div><div>
<div><div>
<div><div>
<div><div>
<div><div>
<div><div>
I want to write a styles for all :before and after elements during an accessibility mode so i am not getting it.
For example: if we wanna write style for all elements we use- *{property:value;}
like that i want to write a style for all the :before and after elements a style .
*:before{
background:blue;
}
this code doesn't work.
Please help out.