Blakems.com

DiaLOG

February 20, 2004

The rule with the horizontal rule (<hr />)

The other day my fellow co-worker, Cameron, and I were discussing what the best way to style the hr tag was? I usually try to use a div if I just need a line for presentation. But what if I need to style an hr that is used on an existing site. It is certainly easier to apply a simple style to the hr tag in the style sheet to make the change. However, each browser, as you can guess has a different way to render them. At first I thought it was Mozilla and the rest of its crew that was rendering the styles incorrectly. However, surprise surprise, it turned out to be IE that did it incorrectly in the end.

How it is done » Blake