You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make card that take the full screen not matter the length of the content in it, and become scrollable on overflow. I know about the overflow-y-scroll but it doesn't work. I tried multiple things and this is what I have now.
I use templ for my html rendering but you shouldn't have a problem to read it
base.templ
As you can see the objective is to have two column of cards. Let's focus on the one of the left which is a single long column. The card should always take the full height of the screen, and when there's too much content, become scrollable. The problem is the following :
previously I managed things with flex-col and flex-1, but because it is relative height, the overflow property doesn't work. So my only solution has been to add h-screen to the content of the guide, however taking the height of the screen isn't the solution because there's other content on top of the page (the nav bar) which create an overflow.
How am I supposed to mangage that overflow without a fix number height ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to make card that take the full screen not matter the length of the content in it, and become scrollable on overflow. I know about the
overflow-y-scroll
but it doesn't work. I tried multiple things and this is what I have now.I use templ for my html rendering but you shouldn't have a problem to read it
base.templ
home.templ
partials
As you can see the objective is to have two column of cards. Let's focus on the one of the left which is a single long column. The card should always take the full height of the screen, and when there's too much content, become scrollable. The problem is the following :
h-screen
to the content of the guide, however taking the height of the screen isn't the solution because there's other content on top of the page (the nav bar) which create an overflow.How am I supposed to mangage that overflow without a fix number height ?
Edit : I got some help on discord, going from https://play.tailwindcss.com/EuMTScWVr8 to https://play.tailwindcss.com/VJxVI1vxJR
Beta Was this translation helpful? Give feedback.
All reactions