How to create a vertical line in HTML
This article mainly shows you "how to create a vertical line in HTML", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to create a vertical line in HTML" this article.
Answer: use the CSSborder attribute
You can use the CSS attribute on the element border with other CSS attributes, such as the display and height attributes, to make vertical bars in HTML.
The following example creates a vertical separator line between two images. You can further increase the height of the line by simply increasing the value of the height property.
Try this code for example »
Make a Vertical Line in HTML
. vertical-line {
Display: inline-block
Border-left: 1px solid # ccc
Margin: 0 10px
Height: 125px
}
The above is all the content of the article "how to create a vertical line in HTML". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!