like the title. Should I stick with styled hr elements or use styled borders instead?
like the title. Should I stick with styled hr elements or use styled borders instead?
Don't know why? Hr and border is not the same
<hr>will look better when CSS is turned off.
border:...is better for CSS menus, sidebars etc.
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
Well, you cannot very easily do a vertical line using <hr>.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Also I wasn't sure if the hr tag was becoming depreciated.
It is. It's still valid, but it counts as presentational markup. Borders are preferred.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
so when separating one bit of content from another hr tags are better? For example on my main page I have an updates section with the latest four items displayed and to separate them I use a horizontal line that is 75% in width. In this case because hr tags are for presentational markup hr would be better in this case, right?
No. Presentational markup is bad.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Haha, straight to the point. Why do you say that presentational markup is bad?
When it comes to coding, Twey doesn't appear to like anything that isn't future and standards oriented.
If you don't know what you are doing, and even if you do, it isn't all that bad of an approach.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks