With the help of this property, you can rotate a horizontal line to a vertical line. Vertical line using border-left, height and position propertyģ) Vertical line using hr Transform PropertyĪ vertical line can be created in HTML using transform property in tag. * CSS to add vertical line in the left */ * Applying the style on complete body of html page */ Using border-right, height and position propertyĢ) Vertical line using Border-Left, Height, and Position CSS Property * CSS to add vertical line in the right */ W3Schools offers free online tutorials, references and exercises in all the major languages of the web. * Applying the style on the complete body of html page */ Here in this article, we have explained all possible ways to create Vertical line in HTML: 1) Using Border-Right, Height and Position CSS Property The mouse will change to a crosshair pointer. Although HTML only have the element for a horizontal line but still there are multiple ways to create a vertical line in HTML as mentioned below: Click the Insert ribbon and then choose a line shape from the Lines section in the Shapes drop-down (in the Illustrations group). You might have a couple of reasons to create a vertical line on your web page but HTML does not have any element for vertical lines.
0 Comments
Leave a Reply. |