What is wrong with this: Create a Horizontal Line Using the hr Element

Tell us what’s happening:

Your code so far

  h4 {
    text-align: center;
    height: 25px;
  p {
    text-align: justify;
  .links {
    text-align: left;
    color: black;
  .fullCard {
    width: 245px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px 5px;
    padding: 4px;
  .cardContent {
    padding: 10px;
  .cardText {
    margin-bottom: 30px;
<div class="fullCard">
  <div class="cardContent">
    <div class="cardText">
      <p><em>Google was founded by Larry Page and Sergey Brin while they were <u>Ph.D. students</u> at <strong>Stanford University</strong>.</em></p>
    <div class="cardLinks">
      <a href="https://en.wikipedia.org/wiki/Larry_Page" target="_blank" class="links">Larry Page</a><br><br>
      <a href="https://en.wikipedia.org/wiki/Sergey_Brin" target="_blank" class="links">Sergey Brin</a>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:

i added the hr element under the h4 tag and the code wont run

You seem to be doing it right. It must be a bug.

It’s a bug, I was going to post the same question.
So, let’s wait and see and hope they fix it!

Hey! Please make sure to elaborate a bit on your own in your post next time ! :smiley:

I remember having the same issue when doing that challenge it’s a bug and I found that on the forum on another post long ago (I remember it) here the code in a screenshot : https://postimg.cc/image/e8nopw5yl/.

You can see that the p element is supposed to be wrapped inside the em element for it to work for some reason. Definitly a bug.

  • Tech.
1 Like