Results 1 to 4 of 4

Thread: Display shadows in CSS layout

  1. #1
    Join Date
    Apr 2009
    Posts
    65

    Display shadows in CSS layout

    Have been looking around the web in search of a tutorial to apply a drop shadow to either side of a container. Left and right only to be specific.However, I am struggling to understand how to setup the left and right shadows. I made a main wrapper with the complete width of the website, which accounts for the shadows.

  2. #2
    Join Date
    Jan 2009
    Posts
    140

    Re: Display shadows in CSS layout

    Basically, you create a wrapper image which spans both your columns. Then at the left & right edges, you apply a drop shadow. Export your wrapper image and you're set.

    I didn't look at your CSS file in-depth but make sure if you're using a fixed width layout that your math equals the total width of your wrapper, whatever that happens to be.

    Then the CSS is:

    Code:
    .content{
    background-image:url(wrapper.jpg);
    background-repeat:repeat-y;
    }

  3. #3
    Join Date
    Jan 2009
    Posts
    99

    Re: Display shadows in CSS layout

    That will make it difficult as any specific advice would depend on your coding as positioning and sizing are vital considerations.

    Typically though shadows require some shims, in essence, if you think of your panel it has a South, East, North and West side. Most designs I've seen depend on having shims on the S and N side, implementing the shadow and either the E or W end of the shadow ending.

    The E or W shadows can usually be implemented using the containers of the panel – but this of course depends on how you've done your design.

  4. #4
    Join Date
    Dec 2008
    Posts
    31

    Re: Display shadows in CSS layout

    The only other way i was thinking is if i set it up so that row 2 has another div inside and i set the top margin to a negative... then set the 3rd row to a negative as well but set it to be behind row 2...???

Similar Threads

  1. Replies: 3
    Last Post: 31-07-2013, 11:26 AM
  2. Shadows of the Damned Walkthrough & Tips
    By RedZot in forum Guides & Tutorials
    Replies: 6
    Last Post: 21-08-2011, 01:14 PM
  3. Problems with shadows in Crysis
    By Diabloplayer in forum Video Games
    Replies: 4
    Last Post: 27-03-2009, 07:08 PM
  4. Thief 3 Deadly Shadows
    By Wizard of OCD in forum Vista Help
    Replies: 4
    Last Post: 22-11-2008, 09:42 PM
  5. Spider-Man Web of Shadows
    By kattman in forum Reviews
    Replies: 1
    Last Post: 10-06-2008, 07:32 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,389,126.64235 seconds with 16 queries