Solved

Adding left drop shadow to website

Posted on 2014-02-17
7
256 Views
Last Modified: 2014-02-17
What is the recommended way to add a left-drop shadow to a website when the shadow involves the header, navigation, body and part of the footer.  

http://nsitedesigns.com/nsitedesigns/lakeshore/index.html
http://nsitedesigns.com/nsitedesigns/lakeshore/lakeshore.css
layout-final.jpg
0
Comment
Question by:nsitedesigns
  • 4
  • 2
7 Comments
 
LVL 12

Expert Comment

by:Chris
ID: 39865060
My advice would be don't. Looks much better without the drop shadow.
0
 

Author Comment

by:nsitedesigns
ID: 39865068
Client liked the "jumping off the page" aspect.  When I did it in ps, I wasn't thinking of how I was going to implement it for the web.  I have done drop shadows before but they were always on the right and I simply incorporated them in the background image.  With all these elements involved, I am not sure how to do that without flattening each item (header, main photo of man working, body copy) so that there is no "break" in the drop shadow.  I was hoping there might be a css technique that I could implement on the html.
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39865109
In your .container css add
box-shadow: -5px -5px 5px 5px #808080;

just amend the colours and widths as needed
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:nsitedesigns
ID: 39865128
Is there a way to add opacity to this?  It does the job but is very harsh.
0
 

Author Comment

by:nsitedesigns
ID: 39865207
I found something online that gave me what I was looking for.  It also included some other code that needs to be added so since this is such a new technique.  Thought I would include for my records.

.container {	
	 box-shadow: -5px -5px 20px  #1f1f1f;
}


container {
-moz-box-shadow: -5px -5px 20px #1f1f1f;
-webkit-box-shadow: -5px -5px 20px  #1f1f1f;
box-shadow: -5px -5px 20px  #1f1f1f;
}

Open in new window

0
 
LVL 58

Expert Comment

by:Gary
ID: 39865222
Try
-15px -15px 30px 0 #404040

Just play with the colour and the last two measurements.
Your background kinda negates the shadow effect.
0
 

Author Comment

by:nsitedesigns
ID: 39865254
Nice.  I changed your color which was too gray for my tastes to #000 and it looks good.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now