Shadow for boxes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KeredDrahcir
    Contributor
    • Nov 2009
    • 426

    Shadow for boxes

    I was wondering if anyone can help me. I'm after a CSS way of making a shadow appear round all four sides of a box. Everywhere I look it only seems to work for around two sides and I can't find anything that will do all four.
    If there is some simple codes for this, could someone please enlighten me?
  • afroz ahmad
    New Member
    • Mar 2013
    • 18

    #2
    hi frnd you can use this code for shadow and adjest acording you
    code is
    Code:
    div
    {
    width:300px;
    height:100px;
    background-color:yellow;
    box-shadow: 5px 15px 5px 25px #888888;
    }
    Last edited by Rabbit; Mar 10 '13, 05:41 AM. Reason: Please use code tags when posting code.

    Comment

    • Exequiel
      Contributor
      • Jul 2012
      • 288

      #3
      Code:
      div{
      padding: 5px;
      height: 50px;
      width: 50px;
      box-shadow: 0px 2px 2px 3px rgba(1,1,1,0.3);
      }
      you can try this. . .

      Comment

      • Unkno
        New Member
        • Mar 2013
        • 9

        #4
        Code:
        div{
        background: #fcfcf7; 
        border-radius: 25px; 
        border: 1px solid black; 
        width: 498px;
         height: 315px; 
        box-shadow: 10px 10px 5px #888888
        }
        you cna try this also :)
        Last edited by acoder; Mar 11 '13, 10:54 AM. Reason: Please use [code] tags when posting code

        Comment

        Working...