Luis
Luis

Reputation: 3277

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-color.

Somthing like that:

[Image] text
[color] more text
[color] mor text..

How do I do it with CSS?

Thank you.

Upvotes: 0

Views: 4666

Answers (2)

Vaibhav Gupta
Vaibhav Gupta

Reputation: 1612

try to use background image repeat property:

background-repeat: repeat | repeat-x | repeat-y | no-repeat

Upvotes: 0

bradenkeith
bradenkeith

Reputation: 2423

background: url("img/folder/file.jpg") repeat-x #000000;

Change the hex to whatever color you need.

Upvotes: 5

Related Questions