Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1051763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:59:13+00:00 2026-05-16T16:59:13+00:00

What’s the best practice for creating drop shadows around html where the html can

  • 0

What’s the best practice for creating drop shadows around html where the html can be liquid?

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.

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?

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.

UPDATE: the suggestion to use CSS3’s box-shadow was excellent. The only problem is it does a box shadow only 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…

Is there a way to have a nice black shadow all the way around an html element, not just offset from it?

UPDATE 2: 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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:59:14+00:00Added an answer on May 16, 2026 at 4:59 pm

    Ignore IE7/8 and use the box-shadow CSS3 rule. Lack of shadows isn’t the end of the world on these legacy browsers. If it is, then charge for it accordingly. You could also investigate IE’s proprietary dropshadow filters, and see if the result is reasonable.

    More resource: here

    w3c working draft definition: here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.