Horizontal Lines
This is an interesting way to do a horizontal rule. Rather than the actual
<hr />
tag, this method uses three <div />
tags, each with a different background-color
assigned to it. The tutorial that I found at this page - http://www.angelfire.com/fl5/html-tutorial/tables/lines.htm - suggests doing this sort of thing in tables and three table rows, indicating that this was better than an <hr />
tag. I modified the idea to work for <div />
since I am following the movement away from tables to accomplish layout elements rather than presenting tabular data, which is what they (<table />
s) are actually for. Note that the code for these
<div />
s cannot be 'pretty-printed' or it messes things up.
No comments:
Post a Comment