Question:

How do I add a shadow to my #container div on both sides?

by  |  earlier

0 LIKES UnLike

I have a header, nav bar and body that are all different colors. I took a selection of 950 pixels wide in photoshop and added a drop shadow.

My problem is how to add the drop shadow to both sides of the div and have it still be stretchy if the text is resized.

 Tags:

   Report

1 ANSWERS


  1. If the container div is a fixed width, you can create a background image of a shadow (1px tall) on the <body> element to repeat down the length of the page.

    So basically, the shadow picture is behind everything.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.