+ 3

How to create a vertical line through HTML?

we know to make horizontal lines by using hr tag but for vertical lines which tab is used?

26th Oct 2016, 11:49 AM
Pranjal Bhadade
5 ответов
+ 5
<hr width="1" size="400" />
13th Nov 2016, 5:58 AM
Dregon
Dregon - avatar
+ 1
Your best bet is adding a border on the left or right of an element such as a Div or Table like this .vert { border-left: 2px solid black; or border-right: 2px solid black; } then add class="vert" to whatever element you want to have a vertical line... hope this helps!
26th Oct 2016, 2:48 PM
Jakob Bosworth
Jakob Bosworth - avatar
0
remember to make the width smaller than the size
13th Nov 2016, 6:00 AM
Dregon
Dregon - avatar
0
try this <hr/>
1st Dec 2016, 5:38 PM
Mohamed Elsadig
Mohamed Elsadig - avatar
0
</vr/>
16th Jan 2017, 3:56 PM
kanchan