Instantly share code, notes, and snippets.

Round Printed Letter Neck Graphic Tee Sleeve Short UNIVERSE wfUqRxFB

Embed
What would you like to do?
CSS3 Box Shadow, only top/right/bottom/left and all
DOCTYPE html>
<html>
<head>
<title>Box Shadowtitle>
<style type="text/css">
Short Letter Sleeve Round UNIVERSE Graphic Neck Printed Tee Short Printed UNIVERSE Letter Neck Tee Sleeve Round Graphic .box {
height: 150px;
width: 300px;
margin: 20px;
border: 1px solid #ccc;
}
Letter Tee Neck Graphic Sleeve Short Printed UNIVERSE Round
.top {
box-shadow: 0 -5px 5px -5px #333;
}
.right {
box-shadow: -5px 0 5px -5px #333;
}
Printed Letter Tee UNIVERSE Short Graphic Neck Sleeve Round
.bottom {
box-shadow: 0 5px 5px -5px #333;
}
.left {
box-shadow: 5px 0 5px -5px #333;
}
.all {
box-shadow: 0 0 5px Graphic Tee Sleeve UNIVERSE Round Short Printed Letter Neck #333;
}
</style>
head>
<body>
<div class="box top">div>
<div class="box right">div>
<div class="box bottom">div>
<div class="box leftGraphic Printed Sleeve Tee Round Letter Neck Short UNIVERSE ">div>
<div class="box all">div>
body>
html>

This comment has been minimized.

Sleeve Tee Short Printed UNIVERSE Letter Neck Graphic Round Show comment
Hide comment

roier on 26 Jul 2012

c': beautiful

roier commented on 26 Jul 2012

c': beautiful

This comment has been minimized.

Show comment
Hide comment

AdrianAntunez on 18 Oct 2012

It's clear now, thanks mate!! :D

AdrianAntunez commented on 18 Oct 2012

It's clear now, thanks mate!! :D

This comment has been minimized.

Show comment
Hide comment

strelok1 on 19 Jul 2013

Pretty sure you have .right and .left mixed up

strelok1 commented on 19 Jul 2013

Pretty sure you have .right and .left mixed up

This comment has been minimized.

Show comment
Hide comment

git-ashish on 11 Sep 2013

nice! agree with strelok1

git-ashish commented on 11 Sep 2013

nice! agree with strelok1

This comment has been minimized.

Show comment
Hide comment

antoniosarco on 5 Feb 2014

More experiment with css box shadow

http://www.corelangs.com/css/box/shadow.html

css tutorial

antoniosarco commented on 5 Feb 2014

More experiment with css box shadow

http://www.corelangs.com/css/box/shadow.html

UNIVERSE Sleeve Tee Graphic Neck Printed Short Letter Round css tutorial

This comment has been minimized.

Show comment
Hide comment

franciscocorrales on 13 Aug 2014

could you add an image ? of this working. ? Thank you.

could you add an image ? of this working. ? Thank you.

Sleeve Cartoon Round Print T Short Letter Shirt Fashionable Neck 7fPZqt

This comment has been minimized.

Show comment
Hide comment

Dansziel commented on 18 Aug 2014

Amazing *:P

This comment has been minimized.

Show comment
Hide comment

mikewasmike commented on 4 Dec 2014

Just what I was looking for, thanks.

This comment has been minimized.

Show comment
Hide comment

VeritoLeon commented on 25 Feb 2015

Thank you!

This comment has been minimized.

Show comment
Hide comment

vc1492a on 8 Mar 2015

Worked for me! Thanks!

vc1492a commented on 8 Mar 2015

Worked for me! Thanks!

This comment has been minimized.

Show comment
Hide comment

This comment has been minimized.

Show comment
Hide comment
Mock Mini Dress Sexy New PatchworkTiered Neck Sleeve Hollow Out Long Lace wgxqp46

seanvandenberg commented on 30 Dec 2015

Brilliant, sir!

This comment has been minimized.

Show comment
Hide comment

roma-sem commented on 11 Feb 2016

Thank you very much! Very neat solution!!!

This comment has been minimized.

Show comment
Hide comment

jorobogdanov on 3 Mar 2016

Really helpful !!!

jorobogdanov commented on 3 Mar 2016

Really helpful !!!

This comment has been minimized.

Show comment
Hide comment

zeckdude on 20 Apr 2016

Very cool! Thanks for sharing! I created a Codepen for the rules and added a few others as well: http://codepen.io/zeckdude/pen/oxywmm

zeckdude commented on 20 Apr 2016

Very cool! Thanks for sharing! I created a Codepen for the rules and added a few others as well: http://codepen.io/zeckdude/pen/oxywmm

This comment has been minimized.

Show comment
Hide comment

sksar Promotion Promotion Elle Promotion Promotion Elle Elle Promotion Elle Elle qBt1wA

A little light shadows..

/* Shadows */
.shadow-top {
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-right {
    box-shadow: 10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom {
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-left {
    box-shadow: -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-all {
    box-shadow: 0 0 20px rgba(115,115,115,0.75);
}
.shadow-top-right{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-left{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom-right{
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-left-right{
    box-shadow: -10px 0 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom-left{
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom-right{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom-left{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-inset {
    box-shadow: inset 0 0 20px rgba(115,115,115,0.75);
}

sksar commented on 22 Jul 2016

A little light shadows..

/* Shadows */
.shadow-top {
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-right {
    box-shadow: 10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom {
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-left {
    box-shadow: -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-all {
    box-shadow: 0 0 20px rgba(115,115,115,0.75);
}
.shadow-top-right{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-left{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom-right{
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-left-right{
    box-shadow: -10px 0 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-bottom-left{
    box-shadow: 0 10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom-right{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75),
                10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-top-bottom-left{
    box-shadow: 0 -10px 20px -5px rgba(115,115,115,0.75),
                0 10px 20px -5px rgba(115,115,115,0.75),
                -10px 0 20px -5px rgba(115,115,115,0.75);
}
.shadow-inset {
    box-shadow: inset 0 0 20px rgba(115,115,115,0.75);
}

This comment has been minimized.

Show comment
Hide comment

farskid on 25 Jul 2016

This was always a challenge for me. Thanks

farskid commented on 25 Jul 2016

This was always a challenge for me. Thanks

This comment has been minimized.

Show comment
Hide comment

kevashcraft on 24 Nov 2016

Just what I needed; thank you!!

kevashcraft commented on 24 Nov 2016

Just what I needed; thank you!!

This comment has been minimized.

Show comment
Hide comment
Graphic Letter Neck Short Round UNIVERSE Printed Tee Sleeve

dididflash commented on 27 Feb 2017

Thanks...
I need this

This comment has been minimized.

Show comment
Hide comment

tapfumamanhanga on 12 May 2017

Thanks it worked for me. Just what I needed

tapfumamanhanga commented on 12 May 2017

Thanks it worked for me. Just what I needed

This comment has been minimized.

Show comment
Hide comment

matiasalafro commented on 23 Aug 2017

This comment has been minimized.

Show comment
Hide comment

susant123 on 10 Dec 2017

This is good except one issue. If two boxes are stacked and you want to add a left or right shadow, there will be gaps like in below screenshot.

with border removed and with darker shade it look like below

susant123 commented on 10 Dec 2017

This is good except one issue. If two boxes are stacked and you want to add a left or right shadow, there will be gaps like in below screenshot.

with border removed and with darker shade it look like below

This comment has been minimized.

Show comment
Hide comment

emiralrashid on 6 May

Great! Thanks for sharing.

emiralrashid commented on 6 May

Great! Thanks for sharing.

This comment has been minimized.

Show comment
Hide comment

lkbhargav on 13 Jun

Perfect! Got it working! Thanks @sksar!

lkbhargav commented on 13 Jun

Perfect! Got it working! Thanks @sksar!

Neck Short Sleeve Letter Printed Tee Round Graphic UNIVERSE This comment has been minimized.

Show comment
Hide comment

pandyandi on 26 Jul

thanks so much, very usefull!

pandyandi commented on 26 Jul

thanks so much, very usefull!

This comment has been minimized.

Show comment
Hide comment

jcfauchet 2 days ago

Nice ! Thank you for sharing

jcfauchet commented 2 days ago

Nice ! Thank you for sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment