I am facing an issue with the layout of my div elements. Here is how they are structured:
<div class="parent">
<div class="header"></div>
<div class="content"></div>
</div>
The height of .parent is set to 100%. The height of .header is 50px. The height of .content is also set to 100%.
While this layout works fine in Chrome, I am encountering a problem in Safari where the heights of .content and .header exceed the height of .parent.
For instance, when .parent is 600px tall, the heights of .header and .content are being displayed as 700px.
I have attempted using calc(100% - 50px) to adjust for this discrepancy in Safari, but it causes the .content height to be shortened in Chrome.
If anyone can provide guidance on resolving this issue, I would greatly appreciate it. Thank you.