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
Marcell Hawke
7,612 PointsHow to make the <hr> line appear below the avatar of each speaker?
I managed to make the collapse work, but when I click the <hr> line appears right below the name of the speaker. I needed to make the <hr> appear BELOW the name of the speaker like in the video, that gives a sense of a paragraph. Here is my code:
<ul class="list-group">
<li class="list-group-item">
<div class="d-flex media row">
<img class="rounded-circle mr-2 col-1 d-none d-lg-block d-xl-block" src="speaker/avatar-nodestradamus.png" alt="Avatar Nodestradamus">
<div class="media-body m-2">
<div id="exampleAccordion" data-children=".item">
<div class="item">
<a data-toggle="collapse" data-parent="#exampleAccordion" href="#exampleAccordion1" aria-expanded="true" aria-controls="exampleAccordion1">
<span class="badge badge-pill badge-info p-2 ml-2 float-right">9:00 am</span>
<h5 class="mb-1"> Keynote: Internet of Things </h5>
<p class="mb-1"> NodeStradamus</p>
</a>
<div id="exampleAccordion1" class="collapse">
<hr>
<p class="mb-3">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pretium lorem non vestibulum scelerisque. Proin a vestibulum sem, eget tristique massa. Aliquam lacinia rhoncus nibh quis ornare.
</p>
</div>
</div>
</div>
</li>
</ul>
Do you guys know how to make the like appear below the name of the speaker and the avatar picture like in the video at 05:22? thanks a bunch
1 Answer
Steven Parker
243,656 PointsIt looks like your course was retired before anyone posted an answer! But if I load this snippet into a sandbox with B4 running, the line does appear below the name and image.
Perhaps you had some issue with the code outside this snippet.
To facilitate a thorough analysis of an issue, you can make a snapshot of your workspace and post the link to it here.