Jump to content

Lines


Rackie

Recommended Posts

yup<hr />draws a nice horizontal line across the page or area of the page its placed inhttp://www.w3schools.com/tags/tag_hr.asp
<hr />s work well but I sometimes have a hard time using CSS to make them look how I want them to look. So, sometimes, I use this instead:
<div style="height: 1px; overflow: hidden; background-color: #000000;"></div>

Link to comment
Share on other sites

Just a reminder that the hr tag is deprecated and is not available with strict doctypes in xhtml.I will often use a border-bottom (or top) with some padding and margin to create a similar effect.

Link to comment
Share on other sites

Just a reminder that the hr tag is deprecated and is not available with strict doctypes in xhtml.I will often use a border-bottom (or top) with some padding and margin to create a similar effect.
Is the element itself deprecated or just the "presentation attributes"?http://www.w3schools.com/tags/tag_hr.asp says:
All "presentation attributes" of the hr element are not supported in XHTML 1.0 Strict DTD.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...