I’ve been trying to achieve horizontal dividing that looks like carved lines in CSS3.
I’ve tried
border-bottom: 1px solid rgba(255,255,255,0.5);
border-bottom: 1px solid rgba(0,0,0,0.5);
Messed around with some colors and opacity but I just cannot seem to get the right combination. I can do this on photoshop easily.
What i’m trying to achieve is this:
2
Answers
Using
border-top
andborder-bottom
properties, you could set the values separately.For instance:
WORKING DEMO.
The
border-style
ofgroove
is meant to do this.Try
The opposite of groove is
ridge
, and there are also stylesinset
andoutset
you can try for similar or other effects.