im trying to make an html element have a background image using css, but the background doesn’t without having text for example.
CSSS –
#box {
background url(.....)
}
HTML –
<div id="box">something</div> // this works bu it shows the text
<div id="box"></div> // this is what i want not text just the background url from #box
thanks :))
Thats because the div is 0x0px. Give it a height and a width.