Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (20.3k points)

How do you make a vertical line using HTML?

1 Answer

0 votes
by (40.7k points)

Try putting the <div> tag around the markup where you want the line to appear to the next, and you can use CSS to style it like this:

.verticalLine {

  border-left: thick solid #ff0000;

}

<div class="verticalLine">

  some other content

</div>

Related questions

0 votes
1 answer
0 votes
0 answers
0 votes
1 answer
0 votes
1 answer

Browse Categories

...