Reputation: 9342
I have a right sidebar on my page and I would like to have a shadow on the left side of this sidebar. A very light shadow like the one showed on the Google Maps left sidebar ( http://maps.google.be). Is it possible?
Here is a jsFiddle to have an idea: http://jsfiddle.net/yhfXX/3/
Normally the sidebar should take the full height but this jsFiddle is just an example.
Thanks
Upvotes: 3
Views: 14668
Reputation: 434
You can use CSS for that, like so:
text-shadow: 0px 3px 2px rgba(0, 0, 0, 0.5);
experiment with it to find the best setup for you =)
Upvotes: 0
Reputation: 11
This is not supported from w3c:
.shadow {
**-moz-box-shadow: inset 0 0 10px #000000;**
**-webkit-box-shadow: inset 0 0 10px #000000;**
box-shadow: inset 0 0 10px #000000;
}
Upvotes: 0
Reputation: 3236
that's the css3 inset shadow:
.shadow {
-moz-box-shadow: inset 0 0 10px #000000;
-webkit-box-shadow: inset 0 0 10px #000000;
box-shadow: inset 0 0 10px #000000;
}
adjust the 10px to your need
Upvotes: 0
Reputation: 30666
You use the box-shadow
css rule to create a drop shadow.
#sidebar {
-moz-box-shadow: -3px 0 5px 0 #555;
-webkit-box-shadow: -3px 0 5px 0 #555;
box-shadow: -3px 0 5px 0 #555;
}
The use is:
Upvotes: 12