Instantly share code, notes, and snippets.

Character Long Colorful Sleeve Neck Sweatshirt Printed Round Pullover Letter Pq4d4zwxf

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">
Sleeve Round Colorful Letter Pullover Character Neck Sweatshirt Long Printed Round Sleeve Character Colorful Sweatshirt Letter Printed Neck Long Pullover .box {
height: 150px;
width: 300px;
margin: 20px;
border: 1px solid #ccc;
}
Neck Sleeve Letter Pullover Round Sweatshirt Colorful Printed Long Character
.top {
box-shadow: 0 -5px 5px -5px #333;
}
.right {
box-shadow: -5px 0 5px -5px #333;
}
Pullover Round Letter Sleeve Sweatshirt Long Neck Printed Character Colorful
.bottom {
box-shadow: 0 5px 5px -5px #333;
}
.left {
box-shadow: 5px 0 5px -5px #333;
}
.all {
box-shadow: 0 0 5px Round Colorful Printed Sleeve Letter Neck Pullover Sweatshirt Long Character #333;
}
</style>
head>
<body>
<div class="box top">div>
<div class="box right">div>
<div class="box bottom">div>
<div class="box leftColorful Printed Character Letter Neck Long Round Pullover Sleeve Sweatshirt ">div>
<div class="box all">div>
body>
html>

This comment has been minimized.

Sleeve Colorful Pullover Letter Printed Character Long Neck Round Sweatshirt 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
T Preston Shirt Volcom Volcom Preston T Shirt wTfXq4

johnstonian commented on 19 Sep 2013

thanks much!

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 Long Pullover Printed Letter Character Colorful Sleeve Sweatshirt 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.

Shirt Dibs Paradigm Paradigm T T Shirt Dibs ypwp8YqF

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

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
Colorful Long Sweatshirt Sleeve Letter Pullover Neck Printed Round Character

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!

Sleeve Colorful Sweatshirt Neck Letter Character Pullover Printed Round Long 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