I am currently working on my NextJs app, where I'm utilizing CosmicJs as a headless CMS to showcase content on the webpage.
Within the layout of my page, I have structured it with 3 columns, and the content pulled from the CMS is meant to be displayed in the 2nd column.
However, an issue arises as the 2nd column expands, causing the 1st and 3rd columns' width to shrink. How can I prevent this unwanted expansion of the 2nd column?
I've attempted solutions like using flex-grow-0 and grow-0 within the div and parent attributes, but unfortunately, nothing seems to solve the problem.
Below is a snippet of the code in question:
<div className="w-1/2 items-center border-2 border-primary flex-grow-0">
<div className="flex-grow-0 grow-0" dangerouslySetInnerHTML={{ __html: post?.metadata.content }}/>
</div>
Your help in resolving this matter would be greatly appreciated. Thank you in advance for your assistance.