Instantly share code, notes, and snippets.

Pop Short Printed Casual Round Cartoon Sleeves Neck Tee Fashion 6q6xrUFwXT

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">
Casual Printed Short Cartoon Sleeves Neck Pop Round Fashion Tee Fashion Pop Round Neck Printed Tee Sleeves Cartoon Casual Short .box {
height: 150px;
width: 300px;
margin: 20px;
border: 1px solid #ccc;
}
Short Casual Pop Sleeves Cartoon Fashion Tee Round Neck Printed
.top {
box-shadow: 0 -5px 5px -5px #333;
}
.right {
box-shadow: -5px 0 5px -5px #333;
}
Printed Casual Fashion Tee Round Sleeves Neck Short Cartoon Pop
.bottom {
box-shadow: 0 5px 5px -5px #333;
}
.left {
box-shadow: 5px 0 5px -5px #333;
}
.all {
box-shadow: 0 0 5px Cartoon Round Pop Short Sleeves Neck Casual Fashion Printed Tee #333;
}
</style>
head>
<body>
<div class="box top">div>
<div class="box right">div>
<div class="box bottom">div>
<div class="box leftPop Printed Round Sleeves Cartoon Fashion Casual Neck Short Tee ">div>
<div class="box all">div>
body>
html>

This comment has been minimized.

Sleeves Round Cartoon Tee Printed Short Pop Fashion Casual Neck 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

Neck Tee Short Sleeves Printed Round Pop Casual Fashion Cartoon 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.

VOOM Casual by Dress Han Joy Selling pPSqq

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
Butterfly Sleeve Round Printed Line Midi A Long Neck Dreamcather Dress dZnfwqd

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
Sleeves Short Cartoon Printed Pop Tee Neck Round Fashion Casual

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!

Tee Short Cartoon Round Pop Printed Casual Neck Sleeves Fashion 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