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 7171993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:31:28+00:00 2026-05-28T15:31:28+00:00

I have the correct code. No color added to it. Have all my pre-fixes.

  • 0

I have the correct code. No color added to it. Have all my pre-fixes. It shows up like this in any browser. I am saving it with the correct transparency setting in PS as seen in the screen shot. It is transparent except when I put a box-shadow around it. What is this?

Here are some screenshots:

png

png

  • 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-28T15:31:29+00:00Added an answer on May 28, 2026 at 3:31 pm

    This is the expected behavior. The image is a square even if you have transparency. If you want a shadow on the PNG to fit the non-transparent portion, you’ll have to add the shadow to the PNG itself and not use a css shadow.

    In the particular scenario you’re looking at (assuming that what you’re trying to do is add a shadow to one of three identically shaped image tabs) you can put each tab in a div with padding where a shadow would go, create a single png with with a shadow shaped appropriately, and just have a css class that applies the shadow image as a background on the active tab.

    EDIT: Another approach?

    After I answered this I thought “could one perhaps apply styling to an image poly map, and have the shadow cast on that?”. Unfortunately, the answer is no. For reasons that are beyond me, image maps can only have a small number of styles apply to them (positioning, for instance) and will never be visible. However, it did lead me down another avenue: build an image map with poly areas, and use javascript to take the coordinates and create an svg with a shadow filter on it. This svg could then be set as the background image to the frame with the transparent PNG (or positioning an otherwise tranparent svg on top of the image. This would obviously not work for all browsers as some don’t support svg, but it’s an interesting concept, and I might have to put together a js library for implementing it… it would certainly make applying shaped shadows easier.

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

Sidebar

Related Questions

Any idea why the following code is not working mysql credentials are correct, have
I have some jQuery code like this: // Called right away after someone clicks
I have the following code (correct for my simple tests) for a linked list
I have a problem and i would like to learn the correct way to
I have created a simple Asp.Net custom control which automatically combines all the correct
I have the following css code .container { width:800px; background-color:yellow; margin:auto; display:table; } .cell
I have an issue with this jquery code below. Please give me advice or
I don't know if this is the correct website, but you guys have been
I dont what is going on but I have this menu set like this
This is in reference to the Microsoft Tag barcodes (color). Does anyone have the

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.