Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Etched (engraved) Line for Any background color Reply To: [Solved] Etched (engraved) Line for Any background color

#181740
Senff
Participant

You’re going to have to use opacity if you want to use it in all colors. Something like this:

http://codepen.io/senff/pen/fsvbd

It won’t be perfect for every single background color, but you can play around a bit with the color values for the line (currently full black on top, full white on bottom, and opacity of 0.4).