E
E
Evgeny Popov2017-06-18 14:54:04
css
Evgeny Popov, 2017-06-18 14:54:04

Is it possible to implement content scaling on a simple site without media queries?

How it is possible to implement HERE such dynamic content scaling? I want to try to implement something similar without media queries. I found information that there are special plugins, but they only scale the font, but I didn’t find anything about pictures.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Misha, 2017-06-18
@hvdd

Specify dimensions in relative units (%, em, rem, vh, vw, vmin, vmax).
You can read about them here .

M
monochromer, 2017-06-18
@monochromer

All sizes are given in em or rem . Using JavaScript, change the font size on the root elements (html or body) depending on the size of the window.

V
Vladimir, 2018-06-14
Solomykin @scor_davis

In addition to the previous two answers: add a transition to make it one-to-one

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question