CSS - I Need Transparent Png In Ie6-help!
Dear all,
I am really stuck on this. I cannot use an alternative, I have to use png. I must have transparency. As you know, IE6 doesn't 'do' transparent png. I have tried three different hacks and I cannot get any of them to work. I am a good traditional developer, but fairly new to web development. Terribly frustrated that I don't seem to be able to get even one of these hacks to work. Please do you know the link to a page that has an easy to follow png hack for IE6 that you know to work? At this point, anything goes, as long as it works! Best Jo Similar Tutorialshi, i have a container div, set at 50% opacity. i want my content to apear in here, but be 100% opacity. i thought this would work, but it doesn't... any help? #transContainer { background-color: #FFF; margin-left: auto; margin-right: auto; width: 982px; padding: 7px; height: 100%; padding-top: 0; filter:alpha(opacity=50); -moz-opacity:0.5; opacity: 0.5; } #mainContainer { background-color: #ccc; padding-top: 10px; margin-left: auto; margin-right: auto; width: 968px; height: 94%; filter:alpha(opacity=100); -moz-opacity:1.0; opacity: 1.0; } http://www.senti.ca/~kgf/programs/pickleball/ So here's the question... how do I make this picture, not transparent? Right now it's at 75% transparency on top of that background which makes it look very faded. Any ideas? I have tried: Code: filter:alpha(opacity=100); opacity: 1; -moz-opacity:1; And placing it inside of a div... sadly this doesn't work. Ok so I have a vertical menu, with menus that pop to the side... it looks fine in every browser except IE. For some reason, the pop up menus become transparent in IE. Relavent CSS: #nav, #nav ul {/* 1st level ul */ padding: 0; margin: 0; list-style: none; float: left; background-color: #000000; width: 130px; } #nav li {/* 1st level li */ position: relative; color: #ffffff; font: bold 12px arial; padding: .3em 0em .1em .3em; border-top: solid 1px #ffffff; } #nav li ul {/* 2nd level ul */ margin: 0px; padding: 0px; list-style: none; position : absolute; left: -999em; background-color: #CCCCCC; } #nav li ul ul {/* 3rd levl ul */ margin: 0px; padding: 0px; list-style: none; position : absolute; left: -999em; background-color: #CCCCCC; } #nav li li {/* 2nd & 3rd level li */ position: relative; color: #000000; border: solid 1px #000000; padding:3px; font-family:arial; font-size:10px; text-decoration:none; } /* and some link styles */ #nav li li a { display: block; color: #000000; text-decoration: none; } #nav li:hover, #nav li a:hover, #nav li.sfhover { color: #000000; background-color: #E5F5E9; } #nav li li:hover, #nav li li a:hover, #nav li li.sfhover { background-color: #F58219; } #nav li:hover ul ul, #nav li.sfhover ul ul { left: -999em; } #nav li:hover ul, #nav li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul {/* lists nested under hovered list items */ top: 0px; left: 9.1em; voice-family: "\"}\""; voice-family:inherit; left: 10.4em; z-index: 1; } referring to: <ul id="nav"> <li><img src="contents/images/navarrow.gif" border="0" />Content For ... <ul> <li><a href="/community/864/Builders/23414.html">Builders</a></li> <li><a href="/community/864/Remodelers/23415.html">Remodelers</a></li> <li><a href="/community/864/Architects/23416.html">Architects</a></li> <li><a href="/community/864/Suppliers/23417.html">Suppliers</a></li> <li><a href="/community/864/Consumers/23418.html">Consumers</a></li> <li><a href="/community/864/Manufacturers/23419.html">Manufacturers</a></li> </ul> </li> example: http://www.housingzone.com/index.asp?layout=news&industryid=23414 Hey all, i'm trying to create pop up note box capabilities. My test example is using digg (dot) com's login box. If you go to the site click on login box will pop up. And you will see the border around the box has a transparency to it. I've tried emulating it but to no avail. PHP Code: <a href='#' onclick="document.getElementById('notepad').style.display = 'block';">Open Notepad</a> <div id='notepad' style='display:none; top:150px; opacity: 1;'> <div class='notepad_body'> <div class='notepad_content'> Post a Note<br> Post a Note<br> Post a Note<br> Post a Note<br> Post a Note<br> Post a Note<br> </div> </div> <div class='notepad_footer'> </div> </div> That is the html to generate the box which works fine... the only problem is the border is solid, then if I change the opacity it turns the entire div box with opacity. Here is my css PHP Code: <style type='text/css'> #notepad { left:50%; margin-left:-315px; position:absolute; width:673px; z-index: 100001; } .notepad_body { background:transparent url(testbg.jpg) repeat scroll 0 0; padding: 40px 13px 10px 40px; } .notepad_footer { background:transparent url(footer.jpg) repeat scroll 0 100%; height:23px; } .notepad_content { background-color:#FFFFFF; max-height:900px; width:550px; } </style> Does anyone have a clue on what I am doing wrong or what I can do to make the transparency work just on the border? Thanks in advance Ok, I am going to try to describe the best way I can my problem. Hopefully I can be pointed into the right direction. Here is my CSS: div.background { width:850px; height:1100px; background:url(images/Sunrise.png) repeat; border:2px solid black; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 35px; padding-left:15px; padding-right: 6px; /* for IE */ filter:alpha(opacity=45); /* CSS3 standard */ opacity:0.4; } div.transbox p { margin:30px 40px; font-weight:bold; color:#000000; } I have a div.background box with an image and I want it to have a transparentency or opacity of 45. The text that is in my div.transbox p needs to be just like normal but my problem is is that when I view my page in the browser my text is also has a transparentency of 45. Not sure what is going wrong. Would someone be so kind to point me into the right direction? Thank you, Diana yes my friend has on her site scrollable screen separate from the fixed background but in the code its listed <style type="text/css"> table, tr, td { background-color:transparent; border:none; border-width:0;} body { background-color:91A4F3; now what would the optional choice of turning the transparent off? opaque? Hi, I'm trying to create a transparent background for the main text part of a site. I have the following code in the .css file: Code: .dataContainer { background-image:url('/images/transluscentbg.png'); *background: none: filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/transluscentbg.png',sizingMethod='scale'); padding:10px; } and call it he Code: <html><head> <link rel="stylesheet" type="text/css" href="styles/kr.css" /> <meta name="description" content=""> <meta name="keywords" content=""> <script src="rollover.js" type="text/javascript"></script> </head> <body id={$styleName|lower}> <!-- BEGIN OUTER WRAP --> <div id="bodywrap"> <div id="logoSpace"> </div> <!-- BEGIN MAIN CONTAINER --> <div id="content"> <div id="contentBorders"> <div id="mainContent" class="clearfix map{$mapNum}"> <div id="navBar"> <div id="innerContent" class="clearfix"> {include file="nav.tpl"} <div class="goContent"> <div class="dataContainer"> lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum </div> </body></html> This works fine in Firefox, but .dataContainer has no transparent background in IE. HOWEVER! It does work in both IE and Firefox if, instead of using <div> tags, I put the content in a table (<table><tr><td class="dataContainer">). Anyone have any idea why this might be happening and how i might be able to get the <div> to work? Hey guys, I'm going to try an explain my problem as brief as possible. Okay, so, my wrappers/containers aren't showing up with my desired background color properly using Firefox 3. Could you guys look at the code below and possibly help me out? Thanks! index.php: Code: <div id="wrapper" class="content"> <div class="col1"> <h2 class="title">Top Stories</h2> <div class="inner"> <img src="images/featured_image.gif" class="featured" width="256" height="146" alt="" /> <h1><a href="#">Non Feugiat Egestas</a></h1> <p>Urpis in nec eleifend duis orci id, per felis libero, mattis nec qui eu porta ipsum. Felis amet porta ac convallis nostra aliquam, sed faucibus, fringilla ut donec lacus et. Felis nec, nullam eleifend porttitor dignissim. Rutrum fermentum vitae. In enim arcu velit neque, venenatis netus, donec leo facilisis, odio gravida sed scelerisque.</p> <ul><li><a href="#">Full story</a></li></ul> </div><!--/inner--> <img src="images/add-account-button.gif" class="button" /> <img src="images/its-price-button.gif" class="button" /> </div><!--/col1--> <div class="col2"> <h2 class="title">Section Title</h2> <div class="news"> <h3>Vim saperet dolores ea</h3> <p>Nusquam alienum accusamus nec te, vel ei velit tibique vituperata, nec id soleat recusabo deterruisset. Vim no scripta iuvaret principes, nam vocent expetenda sadipscing ei, detraxit takimata indoctum ne ius. Et vitae maior um appareat eos, sed an etiam voluptua pertinax. Sit puto iusto fabellas ea, admodum deseruisse vel ne. Mei ei mazim mandamus percipitur, ius ad numquam delenit gloriatur, ea esse consul timeam duo.</p> <p>Sea nullam saperet adipisci ad, noster mentitum recusabo his eu. Soleat incorrupte ex sea, kasd dicit atomorum eu mei. Cu mutat blandit ius, nec ex brute etiam falli. Sit an homero salutatus, cu usu dicant volutpat splendide. In qui legimus veritus pericula, nusquam abhorreant te vel, vivendo fierent instructior ei eum.</p> <p>Eu lorem dictas adversarium qui, soleat verear philosophia an vix. Vis adhuc paulo gubergren no, pri ex voluptua invenire forensibus. Eum te laoreet suavitate abhorreant, eu sit mutat iudicabit voluptaria. Pri falli utamur electram an, in periculis forensibus comprehensam qui. Ius omnis tibique cu, te sint dicant pri, viderer indoctum torquatos ad quo.</p> <h3>No tota tempor persius</h3> <p>Prima deseruisse necessitatibus nec an. Nec eius labores copiosae ad, posse nihil voluptua at sea, altera aperiam alienum has ex. Tantas putant nec et, per ea semper mediocrem. Ex eripuit imperdiet, pri ex quem eros epicuri, ius sonet meliore ei. Decore graeco maiorum at vel, ex mediocrem quaerendum sed, cum sonet detraxit convenire in. Eu quando soluta indoctum vim, vim zzril numquam vivendo et.</p> <p>Sea alterum antiopam te, minim postea his te. Has utinam dissentias in, enim aperiam sententiae eum cu, eu iusto iuvaret senserit his. Saepe suavitate efficiantur ea pri, sea ne elit ullum, vix in saperet oporteat. Laudem salutatus vis eu. No tota tempor persius has, ne erat altera maluisset quo. Fuisset iudicabit dissentiet te cum, te dignissim democritum signiferumque vix, in vix fierent oportere imperdiet.</p> </div> </div><!--/col2--> <div class="col3"> <h2 class="title">Quick Links</h2> </div><!--/col3--> </div> style.css: Code: #wrapper { margin: 0px auto; padding: 0px; width: 1024px; text-align: left; background: #fff; display: block; } #header { margin: 0 auto; width: 1024px; text-align: right; padding: 20px 0 20px; } .content { background: #fff; display: block; } .col1 { float: left; width: 282px; padding: 15px 10px 25px 10px; } .col1 img.button { padding: 10px 0 0 0; } .col2 { float: left; width: 400px; padding: 15px 10px 25px 10px; } .col3 { float: left; width: 282px; padding: 15px 10px 25px 10px; background: #eeeee8; } .col1 .inner { position: relative; padding: 9px 6px 0 6px; border-top: solid 1px #666; float: left; display: inline; background-color: #eeeee8; text-align: center; } .col1 .inner a { margin: 0; padding: 0; text-align: left; } .col1 .inner a img { margin: 0; padding: 0; text-align: center; margin: 0 auto; background-color: #eeeee8; border: 1px solid #eeeee8; } /* border is a hack to remove white shadow at bottom of image QB #3851 */ .col1 .inner h1 { margin: 0; padding: 7px 0 4px 0; text-align: left; } .col1 .inner h2 { margin-top: 0; margin-bottom: 0; background-color: #eeeee8; text-align: left; } .col1 .inner p { margin-bottom: 5px; text-align: left; } .col1 .inner ul { padding-bottom: 0 6px 5px; } .col1 .inner ul li { } .col1 h2.title { font-size: 12px; font-weight: bold; text-transform: uppercase; color: #666; } .col1 .inner h1 { font-size: 18px; font-weight: bold; color: #003bb0; padding: 0 6px 0 6px; } .col1 .inner h2 { font-size: 11px; font-weight: bold; color: #000; } .col1 .inner p { font-size: 12px; line-height: 1.5em; color: #333; padding: 0 6px 0 6px; } .col1 .inner ul, .col1 .inner ul li { font-size: 12px; font-weight: bold; color: #003bb0; list-style-image: url(../images/more_arrow.gif); text-align: right; } .col1 img.featured { border: 1px solid #000; } /*========= COLUMN 2 =========*/ .col2 h2.title { font-size: 12px; font-weight: bold; text-transform: uppercase; color: #666; padding: 0 0 10px; border-bottom: solid 1px #666; } .col2 .news { } .col2 p { font-size: 12px; font-weight: normal; } /*========= COLUMN 3 =========*/ .col3 h2.title { font-size: 12px; font-weight: bold; text-transform: uppercase; color: #666; padding: 0 0 10px; border-bottom: solid 1px #666; } I am trying to use the IE workaround for PNG transparency (using the alpha filter). The trouble is it only seems to work on a fixed size image. Is there any way to successfully apply it to a repeating background? I can't seem to find any info on that so I am guessing it can't be done Hello I have a background image in my web site which is centered and fixed with no repeat. I would like to make it some what transparent. I know that it can be done by manipulating the image itself, but I need to do it dynamically using CSS. I tried adding the filterpque(alpha=0.5 style=0) attribute to the body but that made all the elements in the body (except for background image) transparent. does anyone know how I can do it? Hi, I'm having a bit of a weird problem with a div layer being transparent when it shouldn't be in IE - works exactly as expected in FireFox. I've spent a fruitless day yesterday tring to figure out what I was doing wrong but no joy I've also searched this css forum but haven't found anything that quite answers my problem. The basic problem is that I have a web page with three columns of text ... test page ... in column one I have a list, when you mouse-over on an item in the list a hidden div is shown with associated text. The strange thing is that when I mouse-over the item, the hidden div is shown, but where the div crosses fromcolumn one into column two the background becomes transparent and therefore additionally shows the text underneath (which naturally I don't want). I've ensured that the background color is set to white (which fixed the problem in FF) but doesn't seem to work for IE. Again this odd because the part of the div which is over column one isn't transparent so why it becomes over column two is a little odd. EDIT : Just a little note in addition to above - obviously I have also set the z-index values so that the hidden div has the highest value of all div z-index values to ensure that it appears on top. Any help would be greatly appreciated. Hi. I would like to repeat a small slice the entire length of a <div> column, however when I try to do so, the final results show just a white column where the image should be. Does anyone know how to fix this? The image is transparent so that you can still see the background behind it. Here's the thing: I want to have a div, with 500px width and height, centered in the page with an opacity of 50%, for instance. Well, this is easy to do and it worked. Now, I need to have another div, like 200px width and height, inside the other one. That's also easy to do, now the catch: I don't want the second the div to inherit the opaque value from the parent div, I want it to have it's own transparency, which in this case would be 100% opaque. How can I do that? If possible at all... Below I have a html with one transparent layer. Now I would like to make more than one, but I'm puzzled by the name "div" of the transparent layer abd don't know how to declare another one. Can anyone help? This is the HTML for the one transparent layer: Code: <html> <head><title>Untitled</title> <style type="text/css"> <!-- .tekst { color: #4c5ea1; font: 11px Arial, Helvetica, sans-serif, Arial, Helvetica, sans-serif; text-align: justify; margin-top: 0px; line-height: 16px;} div { border-top: 1px solid orange; border-bottom: 1px solid orange; border-right: 1px solid orange; border-left: 1px solid orange; width: 50%; height:40%; background-color: #ff0000; filter:alpha(opacity=40); } span { position:absolute; } --> </style> </head> <body> <div> <span class="tekst">How to make another transparent div in this html with another color and another text?</span> </div> </body> </html> Hi, The page in question can be found he http://serve5.net/xcage/. Basically, if you view it in Firefox/Mozilla, the background png for the element that contains the date is transparent with a tint to it. However, if you view the page in Internet Explorer, it is gray rather than transparent. Could someone take a look and tell me what's wrong? The CSS can be found he http://serve5.net/xcage/css/standard.css. Thanks, Rob. Hi all, Can anybody tell me how I can put a transparent gif in the top right hand corner over an image? I wish I could just do it by making the image a background image and putting the gif over that, but I can't. Cheers. Hi, I'm doing a simple one page layout for a friend which is just an iframe over a picture. The iframe can contain alot of data and the picture isn't supposed to repeat. So... I've got the background image fixed in place with the iframe positioned over it, and it looks fine in firefox and netscape, but the background of the iframe is white in IE. Nevermind, I figured it out... Thanks, Hope Does anyone know how to fix this so that my scrollbar is transparent and the image behind it shows through? (The scrollbar seems to go transparent past the background picture in the frame to the background colour of the main page; I'm using an IFrame in a table) Here's my code in the CSS: body { SCROLLBAR-FACE-COLOR: #40FF40; SCROLLBAR-HIGHLIGHT-COLOR: #40FF40; SCROLLBAR-SHADOW-COLOR: #40FF40; SCROLLBAR-3DLIGHT-COLOR: #5D5347; SCROLLBAR-DARKSHADOW-COLOR: #5D5347; SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #40FF40; } And here's my IFrame: <iframe src="home.htm" name="main" width="388" height="225" frameborder="0" ALLOWTRANSPARENCY="true" style="FILTER: chroma color=#40FF40)"></iframe> Thank you so much. Any help would be greatly appreciated. And also, does anyone know why any filters I try out don't seem to work? eg. a:hover {FILTER: progid: DXImageTransform.Microsoft.Blur( PixelRadius=5,MakeShadow=false); } or a:hover {FILTER: blur(Color=#000000, OffX=1,OffY=1)} |