Having a br tag in a button doesn't really apply for i tag content #1086
Answered
by
saadeghi
MordechaiHadad
asked this question in
Q&A
-
|
let's say we have this code: <button class="btn">
Test
<br />
<i class="fa-solid fa-arrow-down" />
</button> |
Beta Was this translation helpful? Give feedback.
Answered by
saadeghi
Sep 10, 2022
Replies: 1 comment
-
|
https://play.tailwindcss.com/Dc9o3zyzUP <button class="btn flex-col gap-1">
Test
<i class="fa fa-arrow-down"></i>
</button> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
saadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
btnhasflexstyle to put its content next to each other so if you want to show the content vertically there's no need for a<br>. You can just addflex-colclass tobtnhttps://play.tailwindcss.com/Dc9o3zyzUP