RSSAmplifier

Pqina · Mar 16, 2023

Create Crisp Image Borders With CSS Pseudo Elements

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Transparent image borders can have contrast issues and look dull, let’s make them nice and crisp with this tiny CSS trick. The demo below shows a default half transparent image border. Boring border We can see that we lose contrast depending on the colors of the image near the border. The border looks nice when it’s near a contrasting area, but it kind of dissapears when near colors of the same…

Read on pqina.nl

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.