Can someone please help me with a problem I have with using alpha
transparency in Internet Explorer. I use a php script to determine the
browser and if it is found to be Internet Explorer, the following line
appears in the style sheet:
#leftcontent,#c entrecontent,#r ightcontent,#ba nner {background-color: #fff ;
filter:Alpha(Op acity=70) ; }
For <div id="rightconten t"> (and leftcontent and banner) I get a transparent
background as required but for <div id="centreconte nt"> the background is
solid white. As far as I can tell, the only significant difference between
them is that centrecontent does not have position set, while the others
have 'position: absolute'. In fact, if I add 'position: absolute' to
centrecontent the background becomes transparent but, of course, it is in
entirely the wrong place. Can anyone please suggest what might be wrong?
Here is an extract from the main style sheet:
#centrecontent {
margin-left: 200px;
margin-right: 200px;
border:1px solid #000;
}
#rightcontent {
position: absolute;
right:20px;
top:60px;
width:180px;
border:1px solid #000;
} 8 6738
On Thu, 06 May 2004 20:32:47 +0100, Joseph Haig
<jh***@NOSPAM.m aths.man.ac.uk> wrote: Can someone please help me with a problem I have with using alpha transparency in Internet Explorer.
IE does not support alpha transparency. Sorry.
Neal wrote: On Thu, 06 May 2004 20:32:47 +0100, Joseph Haig <jh***@NOSPAM.m aths.man.ac.uk> wrote:
Can someone please help me with a problem I have with using alpha transparency in Internet Explorer.
IE does not support alpha transparency. Sorry.
Thanks for the reply. OK, it doesn't support it in the way I use it for
every other browser, viz using png images, but it does use it's own
propriety 'filter: Alpha(Opacity=X )' attribute in style sheets which I am
willing to use if it works properly. I suppose my question really is
whether it can be made to work properly, or whether it is a known bug in IE
that you cannot use it without 'position: absolute'?
Joseph Haig <jh***@NOSPAM.m aths.man.ac.uk> wrote: Neal wrote:
On Thu, 06 May 2004 20:32:47 +0100, Joseph Haig <jh***@NOSPAM.m aths.man.ac.uk> wrote:
Can someone please help me with a problem I have with using alpha transparency in Internet Explorer.
IE does not support alpha transparency. Sorry.
Thanks for the reply. OK, it doesn't support it in the way I use it for every other browser, viz using png images, but it does use it's own propriety 'filter: Alpha(Opacity=X )' attribute in style sheets which I am willing to use if it works properly. I suppose my question really is whether it can be made to work properly, or whether it is a known bug in IE that you cannot use it without 'position: absolute'?
It's right there in the Microsoft documentation: "An object must have
layout for the filter to render. A simple way to accomplish this is to
give the element a specified height and/or width. However, there are
several other properties that can give an element layout. For more
information on these other properties, see the hasLayout property."
The documentation for the hasLayout property lists the conditions
under which an element has layout. Having position: absolute; is one
of them. Having height and/or width defined (except for inline
elements under HTML 4.01 Strict) is another. For the rest, see http://msdn.microsoft.com/library/de.../haslayout.asp
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
"Neal" <ne*****@yahoo. com> a écrit dans le message de
news:op******** ******@news.ind ividual.net IE does not support alpha transparency. Sorry.
But I heard that IE support one transparency color for PNG 8 ?
Pierre Goiffon wrote: IE does not support alpha transparency. Sorry.
But I heard that IE support one transparency color for PNG 8 ? http://www.alistapart.com/articles/pngopacity/
With a DirectX filter, it supports alpha transparency for PNGs. I used to
successfully use this for a "stained glass" effect logo on my churhc
website, until they designed a new logo.
It's a hideous hack, but it works.
--
Mark.
Joseph Haig wrote: I use a php script to determine the browser and if it is found to be Internet Explorer, the following line appears in the style sheet:
Not what you're asking, but you might save your server some work on most
requests by using IE conditional comments instead.
See the source to http://billericaybaptist.net/ for an example - this makes
box model corrections for IE5 and a different set of corrections for IE6.
Other browsers ignore them.
--
Mark.
Harlan Messinger wrote:
<snip>
Thanks. I know this is a case of RTFM but I don't think I would ever have
found it by myself. ;-)
"Mark Tranchant" <ma**@tranchant .plus.com> a écrit dans le message de
news:b8******** *********@stone s.force9.net IE does not support alpha transparency. Sorry.
But I heard that IE support one transparency color for PNG 8 ?
http://www.alistapart.com/articles/pngopacity/
Very informative document, thanks very mutch for the link ! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Raymond H. |
last post by:
Hello,
I create a vb4 project which can also naviger on Internet via the
WebBrowser control which I put on my form.
My question is: if this program is installed on a station having already
Internet Explorer in it then will it cause an error if version Internet
Explorer is the same one as WebBrowser which is in my project? Is it this
control which Internet Explorer uses?
If that can cause errors of version then, instead, can I install this...
|
by: Fabian |
last post by:
I have heard that there is a way, using some ie-pecific scripting
functions, to force msie to recognise png alpha transparencies. Does
anyone know anythng about this?
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk
|
by: Marek Kurowski |
last post by:
Yo!
What mean when program is ALPHA or BETA version?
I suppose it is not release version of program, but I don't know what it
exactly mean.
What it mean in your opinion?
Marek Kurowski
|
by: CathieC |
last post by:
I have a websote developed using visual studio 2005 beta , .net version 2
i deploy my application to a server and it is run from client computers.
One of the users gets the error
"Internet Explorer cannot open the internet site "XXXXX"
Operation aborted"
this happens when they click on a menu item to open a page. they do not get
|
by: VK |
last post by:
Internet Explorer 7 beta 2 preview
CNET Editor review:
<http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415>
Summary (my personal review interpretation): "Half stolen from Firefox,
half is buggy - including the stolen part".
Download:
<http://www.download.com/Internet-Explorer-7/3000-2356_4-10497433.html?tag=nl.e415>
| |
by: TJO |
last post by:
Below is some sample code that fades div tags that is not working in IE
6.0.29 on xp sp2. Can anyone help see why the if(ie5)
document.getElementById(divID).filters.alpha.opacity lines are not
working ? I cannot find a solution yet.
THanks
<script type="text/javascript" language=javascript>
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);
|
by: Wendy |
last post by:
Hello,
I have a program that does the following:
When a user clicks on a row in a VB.NET datagrid, it will open a web page in
Internet Explorer (that corresponds to that item in the selected row in the
datagrid). It will automatically print that web page, and then it will close
the Internet Explorer window. I have code that works perfectly when a
regular web page is opened, however when a pdf web page is opened the
printing never...
|
by: JR |
last post by:
Hi,
I maded a smal program alway visible and stays on top. My problem is on
WinXP the tranparency color is not alway transparent. On Win2000 it works
correct.
I have set the background of the form, the controls and the transparency
color to System.Drawing.SystemColors.Control
Sometimes I see on XP the control color and not the color of the window
behind.
|
by: Qiang Xue |
last post by:
We are proud to announce the ALPHA release of PRADO 3.1.0. This is the
result of nearly nine months of hard work from the PRADO Group and
represents a major milestone in the PRADO development. We hereby thank
all PRADO supporters.
Please note, since this is an alpha release, parts of the code
(especially those related with new features) may not be stable and are
subject to change. Be very cautious if you intend to use this release
in a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |