Note that there are some explanatory texts on larger screens.

plurals
  1. POhtml drop shadow best practices
    primarykey
    data
    text
    <p>What's the best practice for creating drop shadows around html where the html can be liquid?</p> <p>I used to use a table and have 8 png images (4 sides and 4 corners) as backgrounds for each of the outer 8 cells with the html I want the drop shadow around in the middle cell. Not very semantic, but at least the drop shadow imagery were backgrounds and it was liquid... html was ugly, tedious and maybe not very SEO friendly.</p> <p>Is there a more compatible (though I don't remember having browser issues at all) way now or is there a more semantic way of handling this?</p> <p>I don't care about IE6. I use jquery, so a javascript/jquery mechanism, as long as there are no compatibility issues among modern browsers, is fine with me.</p> <p><strong>UPDATE</strong>: the suggestion to use CSS3's box-shadow was excellent. The only problem is it does a box shadow <strong><em>only</em></strong> the same size as the html element it's applied to. So this means that I can't have a drop shadow all around (as if a light source is directly overhead). I could add a surrounding div that's a little bigger. But then what happens is the border-radius causes white artifacts to appear at the corners...</p> <p>Is there a way to have a nice black shadow all the way around an html element, not just offset from it?</p> <p><strong>UPDATE 2</strong>: CSS3's box-shadow and firefox/webkit's implementation all support a spread value that allows for what I want. Wasn't in that dynamicdrive.com link below.. Thanks guys!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload