0
I have a div
which has size 200x300 and one which has 50x100, the 2 div
will receive the background-image: url('')
which the user informs, but he can put an image with size 1280x720, so the image will be showing a small piece in the div
, How could I resize it to fit the div? In case, in one place have the size of 200x300 and elsewhere have the size of 50x100 using only javascript or CSS?
It worked perfectly! I have difficulties with CSS, things that are solved so simple and I do not discover. Thank you Marcelo and those who responded!
– D. Watson
Nothing guy a pleasure
– Alex