I added an image url to a content: url (); but I want to edit the size of this image, straight from the .sub :: after tag, after adding a 'width :;' the image remains the same size, how do I change the width and height of the image through the :: after ??
body{background-color:#CCCCFF;}
.menu{ display:inline-block;
font-size:30px;
font-weight:bold;
color: #F00;
}
.sub::after{ content:url(https://cdn.icon-icons.com/icons2/512/PNG/512/css3-01_icon-icons.com_50918.png);
display:block;
width:200px;/*não surte efeito!*/
position:absolute;
}
.sub{ visibility:;
}
.menu:hover .sub{ visibility:;
}
<div class="menu">MENU-01
<div class="sub"></div>
</div>