CSS: Copy runtime width

Is there a way to apply the width of the runtime from one element to another element using only CSS and javascript? If not ... CSS4 needs this :).

+4
source share
2 answers

no, this is not possible with css unless the elements are wrapped inside each other.

0
source

The other is when you say wrap compression by an element with its container or when you have a block element with width: auto expanding to fill its container, this is not possible.

+3
source

Source: https://habr.com/ru/post/1345291/


All Articles