Easiest way to add drop shadows?

Discussion in 'HTML & Website Design' started by IanT, Sep 6, 2010.

  1. #1
    Okay Im trying to add a drop shadow behind the rounded corners element on this page:

    Http://www.lindleywooddevelopment.com/resume.php

    What is the most effective way to achieve this? (keeping cross-browser compatibility in mind)

    Most of the methods Ive been able to find on google appear to be outdated and IMO inefficient...

    help!
     
    IanT, Sep 6, 2010 IP
  2. itmontreal.ca

    itmontreal.ca Peon

    Messages:
    13
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello IanT,
    The easiest & the most cross browser method you will find out there is if you do it using an image (using photoshop or Gimp) you can easily achieve this.

    If you insist on using CSS 3 please note that it will work mainly in modern web browsers that are able to parse CSS3 well . i.e. Internet Explorer 8+ , FF 3+ , etc.

    Here is an example:
    
    .boxShadow {
            background-color: #F4F4F4;
            border: 1px solid #CCC;
            padding: 10px;
            -moz-box-shadow: 7px 7px 7px #666;
            -webkit-box-shadow: 7px 7px 7px #666;
            box-shadow: 7px 7px 7px #666;
    }
    
    Code (markup):
     
    itmontreal.ca, Sep 6, 2010 IP
  3. supercharge

    supercharge Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah I agree. The easiest way is the ugly solution where you, just as itmontreal.ca said, use images in the background to achieve the effect.
     
    supercharge, Sep 7, 2010 IP
  4. parkerkrist

    parkerkrist Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    well i will suggest you to apply shadow effect in the template ,when u r designing it at that time use drop shadow..in this way you have to make three parts of your inner container and apply the top and bottom container with the shadow effect..
     
    parkerkrist, Sep 8, 2010 IP
  5. sajan1kota

    sajan1kota Active Member

    Messages:
    186
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    50
    #5
    Using images works just fine. if you do not use i wonder whether it works in IE
     
    sajan1kota, Sep 8, 2010 IP
  6. thomas.walk

    thomas.walk Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes it works in IE and other browsers as well...
    I have worked...
     
    thomas.walk, Sep 8, 2010 IP
  7. kazuvinz

    kazuvinz Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    it works on chrome
     
    kazuvinz, Sep 8, 2010 IP
  8. IanT

    IanT Well-Known Member

    Messages:
    503
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #8
    Thanks! sorry it took me so long to respond, work has been nuts!

    I am going to give it a try and see what happens... I'm going to fool around with it.....

    ... Okay so how might one use images for the shadows? (As in what dimensions would I need to use for the size of the images etc...

    here is an example page:

    http://www.lindleywooddevelopment.com/resume.php

    I would want to try to put a drop shadow on the lighter rounded container, but I dont know the exact dimensions to make it... or would I just make a flat shadowed image, contained in a slightly offset displayed div (also how would i do that? padding? margin?), then make that div repeat said image with repeat-y ??
     
    IanT, Sep 8, 2010 IP
  9. JJulian

    JJulian Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    you have the width of your content set to 960 px.

    Julie
     
    JJulian, Sep 9, 2010 IP
  10. watchamaculit

    watchamaculit Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    thanks for the tip
     
    watchamaculit, Sep 11, 2010 IP