Y
Y
yesmark2022-01-05 03:40:55
HTML
yesmark, 2022-01-05 03:40:55

How to make responsive image in html?

There is a situation when google Adsense does not display ads, the page is not indexed, and other reasons. Because of this, I decided to add alternative advertising in the form of banners to my products. I made an excellent 750x280 banner in Figma, but unfortunately on some devices it is cut off. Is it possible to make the image shrink to fit the screen? I think to implement through html, but unfortunately I do not know how to do it. The banner is simple:

dark background, rounding 60
from the center, a small diffuse glow
in the center of the text

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel-ww, 2022-01-06
@Pavel-ww

If the image is a background image with a size of cover, then you need to make the container and text adaptive, and not the image itself. Nothing more to say without a link to an example.

E
Evgeny Golubev, 2022-01-06
@bestowhope

html banners is called

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question