I have code like this:
<body>
<div class="parent">
<div class="children">
Some content here
</div>
</div>
</body>
And this CSS:
body {width:100%;height:100%}
.parent{background-color: grey;}
.children{width: 90%; text-align: justify;}
I want to make height of children
equal to width of parent
. Unfortunately - I do not know why. I tried to look in Internet, tried different solutions like children{width: 90%; text-align: justify;height: 100%;}
, but they do not work. I know I can use table instead of this second div, but then this website won't be responsive on smaller devices, which is very importnat for me. Any suggestions?