Solved

Website Div Question

Posted on 2011-03-18
4
250 Views
Last Modified: 2013-11-05
I have a div that is basically a rectangle with a grey color, and then on top of that I have another div that I have a logo on top of that.  I want to make the first div have transparency so I add that code to the css file and it is making both the rectangle and the logo transparent.  HELP!!!!

here is my code below.

HTML
 <span><div id="box">
   <div id="logo" align="center"><img src="images/logo.png" />
     <span class="family">Loggers is a family owned and operated busincess since 19??.  We Specialize in         Indiana Hardwood Lumber                                   </span>                                        </div>
------------------------------------------------------------------------------------

CSS
#box {height:470px;
            width:250px;
            background-color:#CCCCCC;
            position:fixed;
            margin-top:0 auto;
            margin-left:100px;
            -ms-filter:“progid:DXImageTransform.Microsoft.Alpha(Opacity=90)”;
  filter: alpha(opacity=80);
  -khtml-opacity: 0.8;
  -webkit-opacity: 0.8;
  -moz-opacity: 0.8;
  opacity:0.8;}
0
Comment
Question by:sharris_glascol
  • 2
4 Comments
 
LVL 9

Expert Comment

by:sah18
ID: 35165460
Is there any chance you could provide a link to the page?
0
 
LVL 16

Expert Comment

by:JF0
ID: 35165474
you can use a transparent png file for the background of your div. The CSS transparency works exactly as you see it.
0
 

Author Comment

by:sharris_glascol
ID: 35165485
www.digitalministriesdesign.com/Loggers

the image takes a bit to load I am working on that..  Also any help with getting the Box where the logo is to be 1 piece instead of 2 pieces above the menu bar would be much appreciated.
0
 
LVL 9

Accepted Solution

by:
sah18 earned 500 total points
ID: 35165926
I haven't tried this, but found an interesting solution to the problem:
http://css-tricks.com/non-transparent-elements-inside-transparent-elements/

Also, read down into the comments -- there are some alternative suggestions which also may work for you.

I apologize for not providing a specific solution (complete with coding), but I'm swamped at the moment!

Post back if you give any of these a try & let us know if they are (or aren't) successful in eliminating the image transparency.

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now