F
F
Frel2016-11-15 14:12:55
css
Frel, 2016-11-15 14:12:55

How to make the background transparent?

Through styles or is it better with a picture?
6ad571a7f2034c13849d4e36a8cf3a5d.png
PS And in general, what is considered good form to do with a picture or through styles?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Andrey Minisol, 2016-11-15
@AmadeyMinisol

you can see an implementation example here: https://css-tricks.com/snippets/css/transparent-ba...
I can’t say about a good tone (

D
Dmitry Klusevich, 2016-11-15
@dimka-dooz

The background is the design, it is desirable to take out the design in styles. And Andrey Minisol suggested a good solution to the problem.

A
Alexander Reshetnyak, 2016-11-15
@Vampireos

If you do not often change the background, then it is better to load it in advance with less contrast or blurry

K
Koreetz Koreetz, 2016-11-15
@shnopik87

You can make a transparent background through styles, background:transparent;

A
Ankhena, 2016-11-15
@Ankhena

From your question and illustration to it, at the moment, it is not quite clear what effect should be achieved.
If the background is a picture, then it is logical that you will still have a request for a picture, and since this is a background, then insert it correctly using background via CSS.
If it should be translucent - draw it immediately translucent. If at the same time she must somehow change during hover or other manipulations, you can use the Andrey Minisol method , there will be fewer pictures.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question