Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Website Div Question

Posted on 2011-03-18
4
Medium Priority
?
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

636 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