I was developing a back end tool for a client yesterday. To create some space I added a <hr> tag. Then quickly realized how ugly it was. So I wrote up a sexy CSS3 <hr> replacement line.
This is a good example of how CSS3 should be used. To provide additional effects to users with modern browsers, without relying on graphics, and have solid fallback (in this case just a black 1px line, for users in non-css3 supporting browsers.
Chris' solution is even cleaner and more semantic - but nicely done Josh :-)
http://jsfiddle.net/GaEzp/ I don't like white-to-black gradient, so I used other colors so there's not so much contrast between the two colors and also between the line and the content.
I tried all of them but seems they appear different in other browsers ahem*ie* I also tried to add some shadow into it and manipulate the transparency. here is my version:
I know it's been a while since anyone has posted here. I needed something a little different then I saw posted here. So I decided to branch off of @cnwtx's idea for sexy vertical borders between table cells. http://jsfiddle.net/TibTibs/NK2g8/
http://jsfiddle.net/JoshMesser/55ZfK/
Give me your feedback if you like it.
This is how I would do it, I think it's a bit cleaner: http://jsfiddle.net/ZTz7Q/
This is a good example of how CSS3 should be used. To provide additional effects to users with modern browsers, without relying on graphics, and have solid fallback (in this case just a black 1px line, for users in non-css3 supporting browsers.
Chris' solution is even cleaner and more semantic - but nicely done Josh :-)
http://jsfiddle.net/pDs4C/
It just requires an additional line
border: 0;It has the same result for me, both when showing it in Safari with the gradient, and in firefox with the fallback. :-)
I don't like white-to-black gradient, so I used other colors so there's not so much contrast between the two colors and also between the line and the content.
Link to JSFiddle
I also tried to add some shadow into it and manipulate the transparency.
here is my version:
http://jsfiddle.net/4yZNN/
I know it's been a while since anyone has posted here. I needed something a little different then I saw posted here. So I decided to branch off of @cnwtx's idea for sexy vertical borders between table cells. http://jsfiddle.net/TibTibs/NK2g8/
I decided to add something new to this.. Here is the Pen. It animates a 'glinting' effect when you hover near the line.
I made it hover when near a surround area (div) since it is quite difficult to get your cursor on that line. Especially if your not trying!