Solved

Website Div Question

Posted on 2011-03-18
4
252 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

786 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