Solved

Adding left drop shadow to website

Posted on 2014-02-17
7
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

726 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