How to achieve straight shadow with CSS?


Tags: css,css3

Problem :

I'm looking to achieve an odd shadow. With my (clearly)awesome photoshop skills, I need it to not look like this like this

And look like this; it looks like

Basically I want it to look like 2d-lighting rather than lifted off the page.

Borders won't be a good solution, unless I'm able to blur them



Solution :

you can write the css like this:

box-shadow:rgba(0,0,0,0.4) 1px 1px,
           rgba(0,0,0,0.4) 2px 2px,
           rgba(0,0,0,0.4) 3px 3px;

demo For more details,click#box-shadow


    CSS Howto..

    How to add border inner side of image using CSS

    Creating a responsive drupal 7 slideshow

    how to improve this CSS layout which look like a table [closed]

    How to add Get in Touch page in webpage? [closed]

    How to render no-table HTML form into two columns with CSS using classes?

    how to show css text in html div

    How to add local css file to a page in WebView?

    How to create a rounded rectangle shape Css?

    How to make this working Java-script more efficient

    Sencha Touch 2: how to remove right arrow of datepickerfield by using css?

    how to position two image as a background image on div by css

    How to make the height of a div within a master page expand in a content page?

    jquery carousel how to have a gradient on start and ending slides

    How to set alternate row color for a given attached diagram

    How to revert to original CSS?

    How to use CSS to position div popup when using :hover…?

    How can I select the first paragraph in this code?

    Simple CSS: How to fix display:inline issue

    How to Draw Kundli Design (diamonds and triangles in square) using HTML and CSS?

    How to find resources(CSS , JS Etc) that are blocking in Chrome

    How can I ensure that no other text is on the same line as my heading tag?

    How to stylize second level dropdown menu list

    I need a max-margin CSS property, but it doesn't exist. How could I fake it?

    How can you remove the table-tags in CreateUserWizard control

    How to Fix this CSS and Center the Menu Horizontally?

    How to keep height of parent div with absolute positioned img inside?

    How to select an element's great-grandchild for CSS rules?

    How can I access CSS selectors programmatically? [closed]

    How to locate and use fonts in Qt for Embedded Linux?

    How to show div of google maps after hidding it