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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:17:26+00:00 2026-05-16T22:17:26+00:00

Why does the inner DIV also become transparent when I use this code? My

  • 0

Why does the inner DIV also become transparent when I use this code?
My plan was to have the text visible and transparent background.
Do I have to float the inner div over the transparent div?

You can see live demo here: http://jsfiddle.net/pBAf5/

HTML

<div class="openinghours floatRight">
  <div class="content">My test goes here</div>
</div>

CSS

.openinghours { 
  height: 70px;
  width: 300px;
  padding: 10px;
  font-size: 0.85em;
  background-color: #f6f6f6; 
  border: solid 1px #c7c7c7;
  margin-right: 20px;
  margin-top: 5px;
  opacity: .5;
  filter: alpha(opacity=50);
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px; 
}
  • 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-16T22:17:26+00:00Added an answer on May 16, 2026 at 10:17 pm

    Use rgba or a transparent png, or move the inner text into a sibling node of the opacity div.

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

Sidebar

Related Questions

I have this xpath expression that does not work //div[child[0]::h4[text()[contains(.,'Dir')]]]/a To parse this html:
I have a parent div (container) that has a child div (inner) which also
I have a layout that looks kind of like this: And the code looks
I have a div . And I'm trying to pad around the text 5px
In have two div in the page,the outer and the inner. I bind the
I was trying to use the following code to center a <div> inside another
Consider the following code: <div id=outer> <div id=inner></div> </div> $('#outer').click(function() { alert (outer); });
I have a div of text ( #text-write ), each character of which is
When I run this code the page repeats its self. I also need it
Does anyone know how to make a surrounding div the width of the inner

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.