I know that noshade
is not supported in HTML5, and they recommend to use CSS to accomplish this... but what is the CSS replacement to this:
<hr noshade/>
Definition and Usage The noshade attribute is a boolean attribute. When present, it specifies that a horizontal line should render in one solid color (noshaded), instead of a shaded color.
The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic). The <hr> element is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML page.
The <hr> element is styled with CSS rules instead of attributes. Change the width of the horizontal line by setting the width property and then center it using the margin property.
This might work:
hr
{
border: 1px solid rgb(128, 128, 128);
}
This works:
hr {
background: aqua;
height: 1px;
border: 0px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With