CSS: How do I draw a line from an element to the edge of the screen?

#line h2 {
  position: relative;

#line h2::before {
  content: '';
  height: 2px;
  background: #2a0717;
  position: absolute;
  top: 8px;
  right: 101%;
  width: 999%;
Without cookies
This website does not use cookies or tracking. More information can be found in the privacy policy.