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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:59:03+00:00 2026-06-18T19:59:03+00:00

How can I add opacity to the following CSS statement? background: none repeat scroll

  • 0

How can I add opacity to the following CSS statement?

background: none repeat scroll 0 0 #205081;

Is there a possibility with css2? Else how can I add opacity statement from css3 there?

  • 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-06-18T19:59:04+00:00Added an answer on June 18, 2026 at 7:59 pm

    Sadly to due various versions and browsers types across the globe there is not a single CSS entry that is compatible on all browsers without JavaScript intervention. You can however us multiple styling techinques and address the browsers which do not like the modern code using ‘if IE 7’ HTML in head.

    Here are various methods that you should consider for max compatibility across browsers.

    Adding an Alternative Method for Older Browsers

    If you want transparent backgrounds in later versions of internet explorer the easist method is to style for older versions of browsers using older code. You can filter style rules by adding the following code within the

    <head>
    </head>
    

    section of your HTML or PHP file.

    HTML WITHIN HEAD

    You should add the following code if you do not have it in place already. Many frameworks and CMS nowadays have this included so just view the source before editing and only add if its not their already.

    <!--[if lt IE 7 ]><html class="ie ie6 no-js" lang="en"> <![endif]-->
    <!--[if IE 7 ]><html class="ie ie7 no-js" lang="en"> <![endif]-->
    <!--[if IE 8 ]><html class="ie ie8 no-js" lang="en"> <![endif]-->
    <!--[if IE 9 ]><html class="ie ie9 no-js" lang="en"> <![endif]-->
    

    Make a Transparent 50% PNG file

    Simply load up any photoshop or any good alternative and make a new file 1×1 pixels, then add a new layer and delete the background. Then within the layer fill it with the color you want to use, then make this layer 50% opacity. Then save it as PNG and upload to your hosting. If your concerned about load time on pages then you can use PNGCrush or Smush.it to compress that PNG to less than 0.5kb.

    In Your CSS add this (You will need to be using the IF 7 / 6 etc)

    .ie6, .ie7, .ie8 .your-div-class-or-id {
        background: transparent;
        filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=background.png,sizingMethod='scale');
    }
    

    }

    CSS For Newer Browsers

    You should use newer code for newer browsers whenever possible and by not using a PNG to give a transparent background it means that we are not increasing page loading time by adding a file fetch. Simply add:

    background: rgba(32, 80, 129, 0.5)
    

    Which will work with Modern Browsers such as IE9+, Firefox, Chrome, Safari

    You should use both modern and older CSS in conjunction

    Please note that you use both CSS elements the RGBA and the AlphaImageloader, so the png file is only used when its absolutely required too, I know many are unfavorable for using PNG with Opacity but your only using this in the worse case and not loading it when a newer browser is used.

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

Sidebar

Related Questions

How can I add a set of CSS rules like F.I. opacity:0.94; outline:none; content:;
I can add a Conditional statement to a breakpoint, for instance arg0.startsWith(something) but i'd
While we can add Inline Images in paragraphs there does not appear to be
I can add and remove the last line in my dynamic form and calculate
I can add a normal rightBarButton to my navigation without a problem but now
We can add an image to an photo album using UIImage *img = [UIImage
Can someone please direct me on how I can add something similar to inputAccessoryView
I wrote library which can add and update objects in salesforce. I use beatbox
I know one can add event listener for window.error. However when working with Iframes,
Users on my site can add nodes of a custom type (let's call it

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.