Skillbooker
Login Register

How to change the thickness of a hr tag in css

Here is how to change the thickness of a hr tag <hr> in css or in line.

hr {
    border: none;
    height: 1px;
    /* Set the hr color */
    color: #333; /* old IE */
    background-color: #333; /* Modern Browsers */
}

inline:

<hr style="height:1px;border:none;color:#333;background-color:#333;" />


Posted on: 2016-06-01 Please login/register to leave comments