Take a look at this : http://jsfiddle.net/wjhnX/
I achieved it with this CSS :
background-image: radial-gradient(#CCC, #FFF), radial-gradient(#CCC, #FFF);
background-size: 2px 100%;
background-position: 0 0, 100% 0;
background-repeat: no-repeat;
Is this possible to do but the simulated borders would be top and bottom, not left and right ?
Thanks ahead !
you can make it with a seperator as well.
LIVE DEMO
Do you want something like this?
Demo (Some breathing space for your content, I've used
margin
there, just make sure that it will apply to both,:before
as well as:after
, so if you want to separate, declare margin separately for each, p.s - I've made colors lil lighter)Explanation: I've used
:before
and:after
pseudo havingcontent: ""
, so it creates a block, you can say a virtual block inside the element... and which is further set todisplay: block
, just make sure you useblock
there else margins andheight
will have no effect.. and last but not the least am using gradients withrgba
to control the alpha/opacity of the gradient which will fade on both ends