ReasonJun

Tailwindcss : justify-center and Accordian height Problem 본문

Frontend/Tailwindcss

Tailwindcss : justify-center and Accordian height Problem

ReasonJun 2024. 2. 21. 18:48
728x90

Problem : 

In the CSS code surrounding the outermost tag as shown below, justify-center provided a problem with height when accordian was activated.

 

 

 

When justify-center is applied in h-screen, the top component is cut off when Accordian, which provides dynamic height, is activated.


Solution : 

When justify-center was removed, the height value was modified based on the content, and no components were cut off even when Accordian was activated.

 

728x90

'Frontend > Tailwindcss' 카테고리의 다른 글

Tailwindcss : twMerge, clsx  (0) 2023.11.01
Comments