R
R
Raul Abdullin2018-01-26 22:04:48
css
Raul Abdullin, 2018-01-26 22:04:48

With what property to insert an image?

There are colored backgrounds with png images of boxes on them.
Are these boxes with background-image better to do?
And how to position?
5a6b7be490f34941523116.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shadowman69, 2018-01-27
@raulvodov

Yes, it's better through the background, first the picture, then positioning along the X and Y axes, then set the color, it will look something like this:

background: url('images/image_name.png') no-repeat 70%  50%, 
          #f4f4f4;

When you make an adaptive, and the picture goes under the text, which may worsen its readability, then simply overwrite the background property without the picture Through whom you can make as many backgrounds as you wish, each with its own positioning and value for rapping, just remember, specify the color the latest)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question