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

  • Home
  • SEARCH
  • 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 6336555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:04:47+00:00 2026-05-24T19:04:47+00:00

I am facing a problem while creating a css driven themed layout for a

  • 0

I am facing a problem while creating a css driven themed layout for a site. The requirement is that a user will select a primary and secondary color for his customized theme. The are blocks in the page which are to be rendered with some opacity (or alpha value) above which a gradient image will be rendered. The problem with using opacity css property is that all child elements also inherit the opacity value which isn’t what we want. On the other hand, using the rgba property has compatibility issues with IE. Which approach should I take ?

/* HTML */
  <div class="someClass">
       Page Title
 </div>

/* CSS */ 
.someClass{

  border-top:10px solid #b59a47;
  border-bottom:5px solid #f4e196;
  background-image: url(../../images/contentHeader-bg.png);
  background-color: rgba(244,225,150,0.2);
}
  • 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-24T19:04:47+00:00Added an answer on May 24, 2026 at 7:04 pm

    Not all browsers support RGBa, so if the design permits, you should declare a “fallback” color. This color will be most likely be solid (fully opaque). Not declaring a fallback means no color will be applied in browsers that don’t support it. This fallback does fail in some really old browsers.

    div {
       background: rgb(200, 54, 54); /* The Fallback */
       background: rgba(200, 54, 54, 0.5);
    }
    

    Do be aware of this bug though, related to not using shorthand in IE 6 and 7.

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

Sidebar

Related Questions

I am facing a problem while creating a static cursor in DB2. This is
I'm facing a problem while unit testing my forms. The problem is that data
I am new to struts 2. I am facing problem in filling Select tag
I am facing problem while GWT compilation. I am using ANT build file in
I am facing problem while resizing an image in the Popup brwoser window. Image
I am facing problem while aligning two text, one in center and other text
I am facing one problem while writing one xslt: xml: <students> <studentDetails tag=to id=1
I am facing a problem while debugging in Eclipse 3.4.2. I keep getting pop-up
I am facing a problem while hosting my application over a AppHarbor. I’ve a
Hai... i am facing a problem while inserting values to an array. the programming

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.