Instantly share code, notes, and snippets.

Letter Short Sleeves Round Cartoon Tee Funny Character Neck Print Casual q6fEYx

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

This comment has been minimized.

Casual Funny Short Round Letter Print Sleeves Tee Character Neck Cartoon 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
Sweater Pullover Factory Boutique Taylor Ann BqfITwI6

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

Round Casual Cartoon Sleeves Funny Character Letter Tee Neck Short Print 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.

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
Tree Piece Lapel Embroidered Long Sleeve Pullover Two Sweatshirt BWrrTZc

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
Casual Cartoon Funny Neck Character Letter Round Tee Print Short Sleeves

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!

Round Casual Sleeves Tee Neck Short Print Letter Character Cartoon Funny 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