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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:01:50+00:00 2026-05-14T18:01:50+00:00

How to give cross browser transparency to background only? I want to give transparency

  • 0

How to give cross browser transparency to background only?

I want to give transparency to background of ul { background: } only don’t want to make text inside ul li a {} transparent.

ul {
    filter: alpha(opacity=50); /* internet explorer */
    -khtml-opacity: 0.5;      /* khtml, old safari */
    -moz-opacity: 0.5;       /* mozilla, netscape */
    opacity: 0.5;           /* fx, safari, opera */
}

this code make everything transparent http://perishablepress.com/press/2009/01/27/cross-browser-transparency-via-css/

  • 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-14T18:01:51+00:00Added an answer on May 14, 2026 at 6:01 pm

    you can use RGBA colors. I have made up an example for you:

    http://jsfiddle.net/ypaTH/

    ul {
     background: rgba(255, 255, 255, 0.5) //white with opcaity of 50%
    }
    
    ul li {
     color: #fff;
     background: rgba(0, 0, 0, 0.5) //black with opcaity of 50%
    }
    

    here is a workaround for IE and the compatibly list:
    http://css-tricks.com/rgba-browser-support/

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

Sidebar

Related Questions

I've set cross-browser css3 bg transition background: #999; /* for non-css3 browsers */ filter:
Can anyone give me a cross-browser supported solution for this problem?
How to make cross size and cross browser compatible print CSS for World's most
Give a base class Base , I want to write a method Test, like
What is the difference between All browser compatible and Cross browser compatible? What is
So I'm having a cross-browser JavaScript issue. I've got a <select> DOM element that
I'm developing a front-end to a Rails application. In cross-browser testing, I immediately discovered
Possible Duplicate: Cross-browser CSS Ok, so the question might be somehow a little confusing.
The Issue Just to give you some background, I'm currently enrolled as a student
I want to start a cross-platform project. I had my researches and now 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.