A
A
Alexander Ivanov2015-11-03 00:30:18
css
Alexander Ivanov, 2015-11-03 00:30:18

Is it possible to make color and image overlap with only one background?

Here is an example where the block is yellow,
codepen.io/Simon1111/pen/PPQjWE
tried to load a png with transparency, I thought it would block it.

background-color: red:
background-image: url(/...);

I just don't want to create additional divs because the tag will be empty

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2015-11-03
@cimonlebedev

Something like this?
codepen.io/Mike0609/pen/YyjEyB

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question