Simon Willison’s Weblog

Subscribe

Styling <hr>

17th June 2002

Interesting thread today on css-discuss about styling <hr> elements. I had tried this before with no luck, but the thread provided some useful tips. Marek Prokop provided this tutorial, and Kevin W responded with these tips on styling <hr> in Opera. Michael Guitton suggested that setting width: 100%; could help fix problems with Netscape 6.

I currently use <hr> tags on this blog in between every article, but I have used CSS to prevent them from displaying. This is to ensure that browsers which do not interpret my stylesheet (such as Netscape 4) will still display some kind of divider between entries.

This is Styling &lt;hr&gt; by Simon Willison, posted on 17th June 2002.

Next: Day 6: Doctypes

Previous: Blog fixed

Previously hosted at http://simon.incutio.com/archive/2002/06/17/stylingHR