Within this setup, there is a div containing Details and Summaries to the left.
Upon expanding the details, the text enlarges and the container moves, causing the image in the right div to shift downward.
Is there a way to prevent this from happening?
If so, how can I effectively prevent it?
Here is the code snippet:
<div id="left">
<details>
<summary>
lorem
</summary>
<p class="general-text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veritatis totam quos illum. Obcaecati voluptates dicta voluptatibus sunt doloribus rem tempora.
</p>
</details>
<details>
<summary>
lorem
</summary>
<p class="general-text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veritatis totam quos illum. Obcaecati voluptates dicta voluptatibus sunt doloribus rem tempora.
</p>
</details>
<details>
<summary>
lorem
</summary>
<p class="general-text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veritatis totam quos illum. Obcaecati voluptates dicta voluptatibus sunt doloribus rem tempora.
</p>
</details>
<details>
<summary>
lorem
</summary>
<p class="general-text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veritatis totam quos illum. Obcaecati voluptates dicta voluptatibus sunt doloribus rem tempora.
</p>
</details>
<div id="right">
<picture id="image-container">
<img src="Resources/Images/myImage.jpg" alt="">
</picture>
</div>