search

Home  >  Q&A  >  body text

CSS grid height exceeds limit

<p>I created two columns using CSS grid (in TailwindCss). The problem is that the height of the second column covers its parent element (see dashed line): </p> <p>https://play.tailwindcss.com/eNhVFPmU4Z</p> <p>It should have the same height as the parent component. </p> <p>Is there any way to solve this problem? </p>
P粉068486220P粉068486220443 days ago559

reply all(1)I'll reply

  • P粉739886290

    P粉7398862902023-08-29 09:39:50

    Check: https://play.tailwindcss.com/pbEsTV05NP. I added flex and flex-col to the parent element of that overflowing box.

    reply
    0
  • Cancelreply