Background image and after background color in one div
Example code:
<div class="ex">Bla bla bla bla</div>
In the top will be background-image and after when it'll finish display the background-image it'll disply a background-开发者_如何学Gocolor.
Somthing like that:
[Image] text
[color] more text
[color] mor text..
How do I do it with CSS?
Thank you.
background: url("img/folder/file.jpg") repeat-x #000000;
Change the hex to whatever color you need.
try to use background image repeat property:
background-repeat: repeat | repeat-x | repeat-y | no-repeat
精彩评论