+ 1
Code doesn't work with p::before { content: url("logo.jpg"); }
why content used as keyword ? why not use background:url()
3 Answers
0
{
display:block;
content: ' ';
background: url('logo.jpg');
height: 50px;
width: 50px;
}
0
Thanks Yaroslav Pieskov. it worked with display : inline-block
0
yeah, you can use inline-block too