How to make a vertical line in HTML
How do you make a vertical line using HTML?
Solution 1:
Put a <div>
around the markup where you want the line to appear to next, and use CSS to style it:
.verticalLine {
border-left: thick solid #ff0000;
}
<div class="verticalLine">
some other content
</div>
Solution 2:
You can use the horizontal rule tag to create vertical lines.
<hr width="1" size="500">
By using minimal width and large size, horizontal rule becomes a vertical one.