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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:12:56+00:00 2026-05-17T21:12:56+00:00

been banging my head against this one for a while. For a CSS redesign

  • 0

been banging my head against this one for a while. For a CSS redesign of a site I need a parent div to have a background-image followed by a p child with a transparent background, but foreground text needs to remain at 100% opacity. I tried making a 1px image of a semitransparent (40%) white, but it won’t show up when used with background-image. I’ve verified it’s not related to repeat being off.

If I go by proprietary stuff the text ends up affected as well, which doesn’t work.

The site needs to switch between 2 designs so I can’t move the text into another child element.

JQuery is used heavily if that can help me it would be perfect.

Markup:

CSS:

.titles
{
    background-color: #FFF;
    background-image: URL("../images/Vessel_TitleBackground.jpg");
    padding-top: 2px;
    font-weight: bolder;
    text-align: left;
}
.titles p
{
    text-indent: 2%;
    background-color: #FFF;
    filter:alpha(opacity=60); 
    -moz-opacity: 0.6; 
    opacity: 0.6;
    font-size: 1.1em;
    color: #000;
}

HTML:

<div>
    <div class="titles">
        <p>YEY</p>
    </div>
    <div class="contents">YEY
    </div>
</div>
  • 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-17T21:12:57+00:00Added an answer on May 17, 2026 at 9:12 pm

    Modern browsers (Firefox, Chrome, Safari, Opera) support RGBA:

    #container p { background-color:rgba(255,255,255,0.4); }  
    

    The above CSS rule will set a 40% semitransparent white background on the P element.

    However, IE8 and below does not support this (IE9 will have support). Therefore, you need a workaround for IE. You could use IE conditional comments to define a additional CSS rule just for IE8 and below, which would set a semitransparent image…

    <!--[if lt IE 9]>
    <style>
        #container p { background-image:url(dot.png); }
    </style>
    <![endif]-->
    

    If you have trouble making the semi transparent image work, here’s a demo: http://vidasp.net/tinydemos/img-40-percent-transparent.html

    btw, IE6 does not support semi-transparent PNG’s so you will have to use another workaround just for that browser. Transparent background png image issue in IE6

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

Sidebar

Related Questions

I've been banging my head against for wall for a while with this one.
I have been banging my head on this one all day. The C++ project
This is to all the C# gurus. I have been banging my head on
So I've been banging my head against the proverbial wall for a few hours
Here's a quick question I've been banging my head against today. I'm trying to
This is a problem I'm sure is easy to fix, but I've been banging
I'm developing an application with Adobe Flex and AIR, and I've been banging my
Been using PHP/MySQL for a little while now, and I'm wondering if there are
Been running into this problem lately... When debugging an app in VS.Net 2005, breakpoints
Been going over my predecessor's code and see usage of the request scope frequently.

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.