A
A
Andrey Filimonov2020-10-15 13:20:52
Bootstrap
Andrey Filimonov, 2020-10-15 13:20:52

Responsive Image in WordPress Visual Editor?

There is a WordPress entry made by the visual block editor. I add an image and it does not work to make it adaptive. If you choose percentages, (screen), then it may look ok for desktop, but not for mobile.
5f8821e9e9e5c899941746.png
The site is on bootstrap, so I thought to add the img-fluid class to the block settings (screen),
5f88221d766cd341548240.png
but the class is applied to the div, which is already nested img, so nothing comes out.
Is it possible somehow to make images responsive without creating new classes and styles? Or the available WordPress tools or the bootstrap classes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Litvinenko, 2020-10-15
@fil_and

Your default style should always be
img { max-width: 100% }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question