Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Bootstrap Basics Building Forms With Bootstrap Add Custom CSS to Your Bootstrap Site

Mustafa Ogün Öztürk
Mustafa Ogün Öztürk
3,468 Points

Badge Pill Appearance Problem

Hi all

The badge pill we use while we are displaying our schedule get different appearances on smaller screens. If the <h5> text left to the badge pill becomes 2 lines or more for smaller screens the badge pill next to it gets bigger and since not every <h5> text becomes 2 or more lines badge pills look different and inconsistent.

link to problem screenshot

How can we solve this issue ?

Thanks in advance.

1 Answer

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Mustafa Ogün Öztürk,

Since that portion of the page is being laid out with flexbox, the pill stretches to fill the height of the div by default. You can adjust this by giving the <span> the class align-self-start.

<h5 class="mb-1">Getting Started With Redux</h5>
<span class="... align-self-start">2:00pm</span>

Hope this helps. :)