HTML - Png Transparency Question
I have been trying to research hacks to for internet explorer 5.5 and 6 to allow .png images to show transparent backgrounds (rather than showing with a blue/gray background color behind them.) As I understand it internet explorer allows for binary transparency (which is default in .gif files) but you have to do a work around in order to display alpha transparency. I am using a 24bit png file with a transparent background and it displays properly in firefox. I cannot use a .gif or 8bit png because the image has too much detail loss if I do so.
For what I am trying to do I really only need binary transparency because I want the background to be completely transparent. So my question is whether there is a way to use a 24bit .png file in binary transparency and just disable the alpha transparency channels? Is there a way to save the .png with only binary transparency to begin with for that matter? I created the file using photoshop. Similar TutorialsHi All, I'm trying to figure out the best way to achieve <div> transparency. Right now I've got the following working: CSS: Code: #content {filter: alpha(opacity=85); opacity:0.85;} But that is causing the entire <div> to fade - I'd only like the BACKGROUND to do so, and not the CONTENT on top. I'm considering just using another <div> as the background, and then a content <div> on top of that with a 'none' background - but does anyone know if there is a better option for this? The homepage of my website has a PNG image with transparency. The reason that I'm using PNG is that I was having trouble matching the image background color to the page background color. On some browsers like Safari it matched perfectly but on IE it did not (not sure why). The PNG image is displaying fine with transparency on both Safari and Google Chrome in my OS X machine but when I test it on a Windows machine under IE the transparency does not work and I see a white box around the image area. I'm really new to all this and would really appreciate any help. This is my website homepage with the problem image: www.buccianti.net Thanks so much! okay, im kinda new to the forum and in a way kinda new to html because i haven't written in weeks. anyway, i know the code
HTML Code: <img src="./file.GIF"></img> , but how do i make the image by the bottom-left pixel transparent please help. ty So I sliced a template that I made in photoshop and where my content box is I have an image in the template. I want to have a content box overtop of this image using iframes, but whenever I do that my image dissappears. Is it possible to set the background of an iframe to be an image, or to make it transparent and have an image beneath it? I am not much of a web developer, so I am using Go Daddy Website Tonight tool to create a quick page. I have a PNG with a transparent background on my website, and it works fine except for users with IE6 or below (IE6 and below don't support transparency on PNG). I tried doing a GIF, but it looked crappy. So, I have researched and found out that you can use the AlphaImageLoader filter in your code to make PNG work for IE6. With the Website Tonight tool, you can only edit HTML for certain sections (blocks) of the site. So, for the section (block) that has the PNG, the following HTML is available to edit: HTML Code: <img alt="" wstxclass="Image" src="http://app4.websitetonight.com/projects/1/2/3/8/1238972/image/title1_4hon.png" mainsrc="http://app4.websitetonight.com/projects/1/2/3/8/1238972/images/title1_4hon.png" uid="419bfda3-0aa3-46c4-84be-7b459f64c09d" /> <br /> So, what I need help with is if I can put the AlphaImageLoader filter on this code and hopefully have it work. The MS Knowledge Base provides the following code example for the AlphaImageLoader, but I can't quite figure out the syntax with the HTML code above. http://support.microsoft.com/kb/294714 HTML Code: <html> <head></head> <body bgColor="blue"> <!-- This DIV is the target container for the image. --> <DIV ID="oDiv" STYLE="position:absolute; left:140px; height:400; width:400; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( src='image.png', sizingMethod='scale');" > </DIV> </body> </html> Here is the problem Ordus Inferi Guild Forums top left banner, there is a no image display on top of my transparency. Here is the code, I know it has to be wrong...so what do I change: <a href="index.php"> <img <DIV ID="oDiv" STYLE="position:absolute; left:; height:180; width:526; filter:progid:(nospace here, but it made happy face)DXImageTransform.Microsoft.AlphaImageLoader( src='/forums/styles/StarCraft/theme/images/id_logo.png")</div></img></a> Thank you much. On firefox, the banner is not viewable at all, while on IE it is viewable...BUT it has a no image [x] layered ontop of the image. Hi, I am working on a wordpress theme and I have made a horizontal drop down menu. For some reason the drop down part has transparency and the text is almost unreadable as it mixes with the text in the main container. Each of the submenus is a list nested in the list item above. Here is the full code for the menu: HTML Code: <ul class="menu"> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?> <ul id="nav" class="menu"> <li><a href="<?php bloginfo('url'); ?>">Home<img src="<?php bloginfo('template_url'); ?>/images/icons/home.png" class="menu_icon" alt="Home" border="0" /></a> </li> <li><a href="#">Facilitators<img src="<?php bloginfo('template_url'); ?>/images/icons/people.png" class="menu_icon" alt="Facilitators" border="0" /><img src="<?php bloginfo('template_url'); ?>/images/icons/arrow.png" class="arrow" alt="Contact Us" border="0" /></a> <ul> <li><a href="<?php bloginfo('url'); ?>/narelle-nelles">Narelle Nelles</a></li> <li><a href="<?php bloginfo('url'); ?>/susan-gregory">Susan Gregory</a></li> </ul> </li> <li><a href="#">Courses<img src="<?php bloginfo('template_url'); ?>/images/icons/courses.png" class="menu_icon" alt="Courses" border="0" /><img src="<?php bloginfo('template_url'); ?>/images/icons/arrow.png" class="arrow" alt="Contact Us" border="0" /></a> <ul> <li><a href="<?php bloginfo('url'); ?>/parenting-course">Parenting Course</a></li> <li><a href="<?php bloginfo('url'); ?>/beyond-behaviour">Beyond Behaviour</a></li> <li><a href="<?php bloginfo('url'); ?>/staff-training">Staff Training</a></li> <li><a href="<?php bloginfo('url'); ?>/upcoming-courses">Upcoming Courses</a></li> </ul> </li> <li><a href="#">Register<img src="<?php bloginfo('template_url'); ?>/images/icons/register.png" class="menu_icon" alt="Register" border="0" /><img src="<?php bloginfo('template_url'); ?>/images/icons/arrow.png" class="arrow" border="0" /></a> <ul> <li><a href="<?php bloginfo('template_url'); ?>/registration.html" title="Register Online" rel="gb_page_center[390, 490]">Register Online</a></li> <li><a href="<?php bloginfo('template_url'); ?>/AARCRegistrationForm.doc">Register By Post</a></li> <li><a href="<?php bloginfo('url'); ?>/registration-terms">Registration Terms</a></li> </ul> </li> <li><a href="<?php bloginfo('template_url'); ?>/photo_gallery.php" rel="gb_page_fs[500, 500]">Photo Gallery<img src="<?php bloginfo('template_url'); ?>/images/icons/photo.png" class="menu_icon" alt="Photo Gallery" border="0" /></a></li> <li><a href="<?php bloginfo('template_url'); ?>/contact.html" rel="gb_page[280, 380]">Contact Us<img src="<?php bloginfo('template_url'); ?>/images/icons/email.png" class="menu_icon" alt="Contact Us" border="0" /></a></li> </ul> CSS Code: ul { margin-right: 10px; padding: 0; list-style: none; font-size: 12px; width: 160px; border-bottom: 1px solid #ccc; } ul li { position: relative; } li ul { position: absolute; left: 159px; top: 0; display: none; } .sidebar a{ color: #8b645a;} ul li a { display: block; text-decoration: none; background: #f1f9e6; padding: 5px; border: 1px solid #ccc; border-bottom: 0; } ul li a:hover{ background: url(images/menu_bg.png) bottom repeat-x; color: #43951e;} ul li li a:hover{ background: url(images/menu_bg.png) bottom repeat-x; color: #43951e;} /* Fix IE. Hide from IE Mac \*/ * html ul li { float: left; height: 1%; } * html ul li a { height: 1%; } /* End */ li:hover ul, li.over ul { display: block; } I tried defining opacity to full but that does nothing. The problem happens in firefox, ie7, opera, and safari beta 3 for windows. If you could help it would be great!, Ricky Okay, I have table backgrounds. I want to use a transparency effect on them. However, if I use .gif, it only works in IE, and if I use a .png, it only works in FF. How can I make it so that it will display my .gif file for IE viewers, and my .png file for FF viewers? Greetings to you all, Today's question I have is this: Does anyone know how to achieve transparency with svg files in Safari? I have an orange colored circle graphic in svg format. I want to display it on a colored background, maybe even an image background but in Safari it shows a white square around the circle. I have tried using the embed tag and the object tag and both show the white square. Both embed and object seem to be fine for Firefox and Opera. I have used img src and this displays the graphic as it should be in Safari but doesn't show at all in Firefox. I have spent the last three hours searching the net for an answer but there doesn't seem to be a solution out there. I would really appreciate some help. I'm sure there must be other people with the same problem. Thanks very much. Cant figure out how to do this effect, the image is the layout in photoshop, what im trying to do is, I have a Background image, with wood texture and I have a div over it where content goes. In photoshop i cut the bg, set it as my bg with html, and now im trying to over lay the content area that in photoshop is Black with about 60% transparency so you can still see the wood grain but also still have the edges to mimmick the content header so i cant just use a 50% square transparency any ideas will greatly be appreciated. I've used a code for a layout on my blog at blogger.com, and I've tweaked it to my likeness except for the fact that the photos on my blog all are semi transparent. Does anyone know what I should look for to change so the photos appear as solid? Thanks for any help. If anyone wants to see the code in it's entirety I can post it. http://www.mohler.cz/radim/segeta/al...lkodlaci6.html Hi all I have encountred problem while using transparent swf on site I am developing.. The problem is only with firefox...when I try to click the link it starts to blink and is unclicable...well I figured out that when I place a small picture just below that div containing my swf it works correct.... well, well, but the other problem emerges when I would like to use second swf with transparency at the bottom .....well I would like to scroll the content like the entire page not an iframe or whatever , but I cant place there this workaround because it 1, doesnt work when its in a div 2, without div it is just an element and the iframe where I load my content aligns beneath it so it is off the screen.... Is there a problem using the background the way I do ?? Does also anyone know how to get rid of that flickering in firefox when I scroll content with images for example in "fotogalerie " ???? Is there a way to make the number for a list item in an ordered list a hyperlink? For instance, where an ordered list is being used for footnotes, can the numbers be set up to link to the source documents? If so, what does the markup look like? Thanks. Hello, I am WGAnubis. I'm fairly new to the world of HTML, having taken a class on it last spring semester. Lately I have been designing sites for the group of online video gamers I run with and have come up with a rather cool looking demo of the site. We all like it but im not entirely sure on how to impliment the design in the way it looks. Im fairly certain I need to use frames but I dont think it would be able to retain the "connections" found in the following image: As you can see, each "window" is connected to each other by what looks like steel connectors. I'd really like to have the website look exactly or close to the demo, but if I use frames im not sure how that would be possible. Is their another way I can go about doing this or do I have to rethink the demo? Hello people, i am a new person here, so Greetings i guess anyway i have not so much of a problem, but i need a opinion. there is a site, that has Help&Rules, and they are written in some other page on that site, and they are out-dated, so i decided to re-write them. Now, i learned some HTML at W3schools, and i think i could do a bit of Coding. Now the admin, has no knowledge of HTML or other things, and he couldnt find the Code of Help&Rules on the Server he owns, so i decided to take this way Now here is where i need your opinion, if i did the right thing. I went to the Help&Rules page i opened the Source, i copyed it in some Edit-program, did the updates, rewrite some things. Now the only way to send the code to him was throu some ingame forum mesaging system-i hope that doesent destroy the code in any way-. Now what i want to know is this. When he finds the Code Help&Rules are made of on the server, will he be able to replace it with the Code i took from the pages Source, ? or is the Source somwhat different from what the Code on the Server is. Hey guys sorry to post another question so fast I just am kind of lost with this whole html thing but I'm learning fast =). Ryschwith was more then helpful with my last one so hats off to him. Here is my next problem. A lady here at the company wants me to add a link into our site that says "Job Application Form" and when you click it you download a .XLS file for vendors and customers to fill out. I know this is probably a pretty easy thing but I have no clue on how to position it in a place I want or where to store the file itself and how to point to it. I have googled a couple things but they were honestly above my head and seemed way too complicated for what I was trying to do. Is there a simple method for this? you can look at our site at www.qcrepro.com. Also i am using pagebreeze right now because they won't purchase me any decent software, is there a better free program to use? Thanks alot for helping out. -Joe How can I copyright or otherwise protect my images online? ____________________ Polo Shirt Printing T shirt Embroidery What exactly is XHTML. how much different from HTML is it? and, do I have to re-learn a whole bunch of stuff to write valid code with it? _________________ Golf Communities visa credit card review On my website, all of the images I've posted, have been created using Photoshop. How is it possible, in order to create clickable links on top of existing images? For instance scattered around the existing image? I guess that this is possible using Dreamweaver CS3, although I am hand-coding, therefore I was wondering if there was another way, and if so, how? Thanks a lot guys. Hi, is it possible to create a DTD for a xml-file, which can have a structure like any other xml but if in a node a attribut x appears in combination with an attribut y there are some rules which attributs have to appear in that node too. Thanks... p-flash |