DEV Community

Discussion on: Prevent overflow but show all contents of section

Collapse
 
ssingh1997 profile image
Satyen Singh

Hi James, I apologize, I thought I had posted my code but it seems like I had not. I have edited my answer to include my App.jsx and my app.scss file. Please let me know what else I can provide, thanks!

Collapse
 
jamesthomson profile image
James Thomson

Don't use a set height on your .sections (and every child within it > * for that matter). Doing this restricts the browser from naturally calculating the height in needs for the content (your Timline) to fill the container.

Thread Thread
 
ssingh1997 profile image
Satyen Singh

Is there a way I can change for each one? I tried doing the nth child but that had no effect