CSS background image ?
Posted
by BillyD
on Stack Overflow
See other posts from Stack Overflow
or by BillyD
Published on 2010-05-03T03:24:23Z
Indexed on
2010/05/03
3:28 UTC
Read the original article
Hit count: 284
I have a div that is 200px by 200px.
If I want to place a 30x30px no-repeat background image at the top left corner position of 120px from the left and 50px from the top ... while also allowing the text inside that div to be displayed on top of the background image ... how would I do that?
I tried the following, but it doesnt appear to work.
background:url(http://example.com/background-image.png) no-repeat 120px 50px;
Any ideas how to perform what I want to accomplish?
© Stack Overflow or respective owner