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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:58:12+00:00 2026-05-25T20:58:12+00:00

I am using CSS attrubutes : filter: alpha(opacity=90); opacity: .9; to make the DIV

  • 0

I am using CSS attrubutes :

filter: alpha(opacity=90);    

opacity: .9;

to make the DIV transparent, but when I add another DIV inside this DIV it makes it transparent also.

I want to make the outer(background) DIV only transparent. How ?

  • 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-25T20:58:13+00:00Added an answer on May 25, 2026 at 8:58 pm

    Fiddle: http://jsfiddle.net/uenrX/1/

    The opacity property of the outer DIV cannot be undone by the inner DIV. If you want to achieve transparency, use rgba or hsla:

    Outer div:

    background-color: rgba(255, 255, 255, 0.9); /* Color white with alpha 0.9*/
    

    Inner div:

    background-color: #FFF; /* Background white, to override the background propery*/
    

    EDIT
    Because you’ve added filter:alpha(opacity=90) to your question, I assume that you also want a working solution for (older versions of) IE. This should work (-ms- prefix for the newest versions of IE):

    /*Padded for readability, you can write the following at one line:*/
    filter: progid:DXImageTransform.Microsoft.Gradient(
        GradientType=1,
        startColorStr="#E6FFFFFF",
        endColorStr="#E6FFFFFF");
    
    /*Similarly: */
    filter: progid:DXImageTransform.Microsoft.Gradient(
        GradientType=1,
        startColorStr="#E6FFFFFF",
        endColorStr="#E6FFFFFF");
    

    I’ve used the Gradient filter, starting with the same start- and end-color, so that the background doesn’t show a gradient, but a flat colour. The colour format is in the ARGB hex format. I’ve written a JavaScript snippet to convert relative opacity values to absolute alpha-hex values:

    var opacity = .9;
    var A_ofARGB = Math.round(opacity * 255).toString(16);
    if(A_ofARGB.length == 1) A_ofARGB = "0"+a_ofARGB;
    else if(!A_ofARGB.length) A_ofARGB = "00";
    alert(A_ofARGB);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way I can put a link inside a div using c#/css
Using CSS, when a link is clicked it brings up a hidden DIV that
I have been debating using css with div's and laying out elements, and really
I've been editing CSS using Firebug in Firefox, but recently noticed that Chrome is
How do I make printer friendly web page using css and php that strips
Using CSS, I'm trying to specify the height of a span tag in Firefox,
Using css only, how can I override the css of only the 2nd column
I am using CSS Tidy. Due to all of its compression measures, in some
I'm using CSS selectors to generate custom pop-ups for a web templates - basically,
I am using CSS rounded corners for firefox and I have the following problem

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.