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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:57:01+00:00 2026-05-24T09:57:01+00:00

I am using RGBA to create a transparent background that overlays on top of

  • 0

I am using RGBA to create a transparent background that overlays on top of an image. Works just fine.

My questions is this: Is there a way to "soften" the edges of the box to where it flows more into the picture vs a hard edge?

Here is my CSS for the box:

#past{
    position:absolute;
    left:0;
    top:363px;
    background-color: rgba(34,34,34,0.6);
    /* For IE 5.5 - 7*/
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99222222, endColorstr=#99222222);
    /* For IE 8*/
    -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99222222, endColorstr=#99222222);
    z-index:10;
    padding:10px;
}

I know I can do this by creating a background image in Photoshop but I was looking for a CSS-only way instead of using an image.

Also, I would prefer—if at all possible—for this to work in all browsers.

  • 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-24T09:57:02+00:00Added an answer on May 24, 2026 at 9:57 am

    Another option is to use one of my personal favorite CSS tools: box-shadow.

    A box shadow is really a drop-shadow on the node. It looks like this:

    -moz-box-shadow: 1px 2px 3px rgba(0,0,0,.5);
    -webkit-box-shadow: 1px 2px 3px rgba(0,0,0,.5);
    box-shadow: 1px 2px 3px rgba(0,0,0,.5);
    

    The arguments are:

    1px: Horizontal offset of the effect. Positive numbers shift it right, negative left.
    2px: Vertical offset of the effect. Positive numbers shift it down, negative up.
    3px: The blur effect.  0 means no blur.
    color: The color of the shadow.
    

    So, you could leave your current design, and add a box shadow like this:

    box-shadow: 0px -2px 2px rgba(34,34,34,0.6);
    

    This should give you a blurry top edge.

    This website will help with more information: https://css-tricks.com/snippets/css/css-box-shadow/

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

Sidebar

Related Questions

I am loading an image using the OpenEXR library. This works fine, except the
Hi I need to create a flot graph. for that I am using this
I'm trying use make a div's background transparent using a mixture of CSS3 rgba()
Using ASP.NET MVC there are situations (such as form submission) that may require a
Currently I'm using this box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset; but
http://www.campbellcustomcoatings.com/index2.php At this site, I'm using css3's box shadow and rgba for the content
This is my first plugin trying to create using the example provided here .
I create this text effect: .inset-text { background-color: #666666; -moz-background-clip: text; -webkit-background-clip: text; background-clip:
I just created a fancy canvas effect using cheap motion blur ctx.fillStyle = rgba(255,255,255,0.2);
i am using this function to create Screenshots of the my IPAD App. I

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.