I have created the code below where I am attempting to set a div to 'display: flex' and include two divisions, one with a width of 200px and the other with a width of 100%.
<div style="clear:both;display:flex; height: 100%;">
<div style="width:400px; background-color: red;
height:auto;">
</div>
<div style="width:100%;
background-color: black;
height:auto;">
</div>
</div>
However, I am encountering an issue in applying height to that div as it is displaying 0 height in the developer tools.
Even after trying the 'clear: both' style, the problem persists.
I would appreciate any guidance on the correct syntax and code to resolve this confusion I have with CSS.