Change the Size and Thickness of Horizontal Line

The size or width of the horizontal line or <hr> element can be changed by setting the width property in CSS. And the thickness of the horizontal line can be changed by adding the height property to the CSS rules for <hr>.

Examples of Width and Height Settings

width: 80%;
height: 20px;

Leave a Reply

Your email address will not be published. Required fields are marked *