SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    Non-Member
    Join Date
    Feb 2006
    Posts
    294
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dropshadow a div

    I am wondering how I could add a drop shadow to an entire container div so that the outline of this site I am creating will have a really subtle simple drop shadow appearence on the background color. Is this even possible when the site will have a dynamic height depending on how much content is on each page? For the record the width will not be dynamic.

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2003
    Location
    uk
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes this is possible

    Take a look at CSSPlay which has a great example here:

    http://www.cssplay.co.uk/menu/shadow_boxing.html

  3. #3
    Non-Member
    Join Date
    Feb 2006
    Posts
    294
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That would only allow you to add a shadow to one side of an image. I need to add a shadow to 2 sides of a div (the right and bottom edges (classic drop shadow))

  4. #4
    SitePoint Zealot
    Join Date
    Oct 2003
    Location
    uk
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cluelessphp
    That would only allow you to add a shadow to one side of an image. I need to add a shadow to 2 sides of a div (the right and bottom edges (classic drop shadow))
    Sorry - I'm not sure I'm following you?

    In the example above it shows how to add shadow to all number of sides? Bottom and Left / Both Sides and bottom, etc, etc...

  5. #5
    Non-Member
    Join Date
    Feb 2006
    Posts
    294
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can apply it to all sides on the page you showed me if you know the size of the image. My problem is the height of the site is going to change with every page. Also I only want it on 2 sides at the same time

  6. #6

  7. #7
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Hi,

    Something like this, perhaps?


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
  •