Frontend employee Frontend employee - 8 months ago 37
CSS Question

Remove horizontal line <hr> when screen width <767

How can you hide the horizontal line tag

<hr>
when the screen width is smaller than
767px
?

How can this be done using css only.

Answer

@media(max-width:767px) {
  hr {
    display:none;
  }
}
<hr />

More info on media queries.