How to manipulate image loaded by the background: url ();

0

I loaded an img that got too big, straight through the css stylesheet, how to reduce it, because it appears only a bit.

    
asked by anonymous 18.09.2017 / 04:25

2 answers

0

Use background-size: TAMANHO_AQUI; change the SIZE_QUALITY to the size you want. But this is not advisable, but rather, your image is optimized already in some image editing program, for the size you want, put this affects the performance of your site.

    
18.09.2017 / 05:00
0

Manipulating css:

div {

background: url ('fotourl');

background-size: 25%;

border: 2px solid # 92b901;

width: 300px;

height: 200px;

}

This site teaches you various shapes and properties for background images url css: link

    
18.09.2017 / 05:03