D
D
Demigodd2018-11-22 12:54:37
css
Demigodd, 2018-11-22 12:54:37

How to make a responsive Div element that grows in size on its own?

How do I make a responsive Div element that after shrinking the browser screen width increases from 50% to 100% ?
JS Fiddle Link
That is, we need this behavior of the element.
Here the Child element is equal to 50% of its Parenta .
How to make it so that if the browser is gradually reduced from the left edge, the child element does not move, as soon as the edge of the screen touches the left edge of the Child element, then it gradually decreases in size to fit on the browser screen.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2018-11-22
@Demigodd

https://developer.mozilla.org/ru/docs/Web/CSS/Medi...
https://medium.com/@mchisti/two-css-tricks-thatll-...
https://jsfiddle. net/1us078x3/2/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question