I've recently learned that I can style a <div> to look like an <hr> and now you can too!
You can do this either by using a linked stylesheet, internal styles, or inline styles. This snippet below shows the method with either a linked stylesheet or internal styles, but you can easily replace it with inline styles.
In your html code, put
<div class="hr"> </div>
Where you would put
<hr />
Wherever you put your styles, be them internal or external, add this snippet
.hr {
background-color: #FFFFFF;
border: 1px solid #000000;
height: 10px;
margin: 10px 0;
width: 760px;
}
If you want an inline style, you can do it as so
<div style="background-color: #FFFFFF; border: 1px solid #000000; height: 10px; margin: 10px 0; width: 760px;"> </div>
You can change the colors to whatever you like, the width, and the height. Just make sure that whatever you set the height to, you also change the margin to match.
You now have an <hr /> look alike that's fully stylable and works in all browsers.






MultiQuote





|