• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

Website Div Question

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
sharris_glascol
Asked:
sharris_glascol
  • 2
1 Solution
 
sah18Commented:
Is there any chance you could provide a link to the page?
0
 
JF0Commented:
you can use a transparent png file for the background of your div. The CSS transparency works exactly as you see it.
0
 
sharris_glascolAuthor Commented:
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
 
sah18Commented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now