Quick Tip: Pure CSS Reflections
Tutorial Details
- Difficulty: Intermediate
- Completion Time: 5 Minutes
Many might not be aware that, with CSS, we can achieve reflections quite easily in all webkit-based browsers, which represent roughly 20% of all browser usage. The key is in the vendor-specific, -webkit-box-reflect property. I’ll show you how to use it in today’s video quick tip!
Subscribe to our YouTube page to watch all of the video tutorials!
Prefer to watch this video on Screenr?
img {
-webkit-box-reflect: below 4px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(white));
-webkit-border-radius: 3px;
border-radius: 3px;
border: 3px solid #666;
}

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
- Brayan
- Gavin
- http://cardeo.ca cardeo
- http://lekevicius.com Jonas
- http://black-light-studio.com Ørjan
- http://ameliorersonfrancais.com Thierry Bélanger Clermont
- Mohamed Zahran
- Michael
- Fynn
- http://www.joshnichols.com Josh N.
- Batfan
- http://karlroos.se Karl Roos
- http://internubs.com internubs
- http://www.tastybytes.net/ brian
- http://www.tastybytes.net/ brian
- http://net.tutsplus.com Jeffrey Way
- http://www.tastybytes.net Brian
- http://php.quicoto.com quicoto
- http://ben-carlson.com/ Ben Carlson
- Patrick
- http://www.creativebadger.co.uk Jen
- http://asturo.net Destiya Dian
- Al
- Al
- http://www.esculent.co.uk Karl
- http://www.codecrunchers.net Kevin Groenendaal
- amanuo
- http://webstandard.kulando.de Webstandard-Blog
- http://www.andrislinz.ch Andris
- http://www.ate5.com Jordan Walker
- James
- Liam
- Mike
- http://codendesign.blogspot.com nXqd
- http://www.kieru.com Rob
- http://manakmichal.bluefile.cz manakmichal
- John
- http://www.davehanas.com Dave
- Adrian
- Ruseel Grieg
- http://designbyadrian.com Adrian von Gegerfelt
- dailce
- http://manakmichal.bluefile.cz manakmichal
- http://thnx thndxxxxxxxxxxx
- http://www.cdgn.co.uk Vic
- http://www.antonagestam.se/ Anton Agestam
- iPad guy
- http://fvisticot@blogspot.com fvisticot
- James
- http://www.buitenaardig.nl/ Phil
- Chris sanders
- Chris
- http://www.hebbedesign.com Johan
- Alex W
- http://uglydesign.freehostia.com ivan
- Dasha
- http://www.1artmedia.com Valikonen
- http://www.center-dm.ru/ Rulez-DM
- http://www.agentur-wortwahl.de Wiyono
- Oswald
- http://www.xhtml-lab.com Alok Jain
