The <h3> won't align with other items | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

The <h3> won't align with other items

I'm trying to learn the flexbox, I want to align the <h3> with the four buttons at the top but it always go on the bottom can someone help me? Here's the code:

5th Sep 2019, 9:58 AM
Alfred - avatar
2 Answers
+ 4
Add to the h3 the css "display:inline;
5th Sep 2019, 11:07 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
<button><h3 style="color:#eee">Title</h3></button> or... <h3 style="color:#eee">Title</h3> (remove the button) like this??? check in your code. if I understood correctly ... what you need is to put the h3 inside the button (Be careful with the opening and closing tags)
5th Sep 2019, 2:04 PM