Adobe Dreamweaver Forums



Last 10 THreads :         Re: Unloading SWFLoader... BUG??! (Last Post : LuigiL - Replies : 1 - Views : 2 )           »          Problem with navigateToURL to a certain frame (Last Post : Ibsie - Replies : 0 - Views : 1 )           »          html view - how to wrap the text (Last Post : lmckh - Replies : 1 - Views : 2 )           »          Help! Prob with CSS display (Last Post : hnajskmei - Replies : 0 - Views : 1 )           »          DW help urgently needed, lost my connection to site (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »          Connecting to a Database (Last Post : Ronnie MacGregor - Replies : 11 - Views : 12 )           »          application.cfm/webservice (Last Post : BKBK - Replies : 1 - Views : 2 )           »          Random positions for Movieclips (Last Post : arnhemcs - Replies : 4 - Views : 8 )           »          Generating LEGAL size Word doc (Last Post : BKBK - Replies : 2 - Views : 3 )           »          This Tough Economy and Flex/AIR (Last Post : LuigiL - Replies : 2 - Views : 109 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver General
 
Tags: , ,



Reply
  #1 (permalink)  
Old 09-07-2008, 10:59 PM
SnakEyez02
 
Posts: n/a
Diggs:
Default IE7 & CSS Opacity

I'm curious if any experts out there have had any experience with this. I have
tried using the following in my CSS document:

opacity:.4; //For Everything Else
filter:alpha(opacity=40); //I thought this would do the trick for IE

And despite that code only Safari, Firefox and every other browser will
display the opacity, but not IE 7. I could care less about IE 6 because the
site I have doesn't get enough hits from IE6 for it to be a concern. And this
problem also appears to happen in IE 8, but I assume there is something in
common with the two IEs that are causing this issue.

If anyone has any ideas that would be great because I am pretty much out of
them with this issue:

http://www.exitplaystation.com/ps3/warhawk/index.php - This is the site. Even
the Spry widgets have the same issue, but the menu is the most obvious.

http://www.exitplaystation.com/ps3/w...ps_warhawk.css - This is
the CSS document. #menu_bg is the menu container that expands the width of the
screen and is the source of the main issue.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-07-2008, 11:07 PM
Thierry
 
Posts: n/a
Diggs:
Default Re: IE7 & CSS Opacity

"SnakEyez02" <webforumsuser@macromedia.com> wrote in message
news:ga1fvf$pvv$1@forums.macromedia.com...
> I'm curious if any experts out there have had any experience with this. I
> have
> tried using the following in my CSS document:
>
> opacity:.4; //For Everything Else
> filter:alpha(opacity=40); //I thought this would do the trick for IE
>
> And despite that code only Safari, Firefox and every other browser will
> display the opacity, but not IE 7. I could care less about IE 6 because
> the
> site I have doesn't get enough hits from IE6 for it to be a concern. And
> this
> problem also appears to happen in IE 8, but I assume there is something in
> common with the two IEs that are causing this issue.
>
> If anyone has any ideas that would be great because I am pretty much out
> of
> them with this issue:
>
> http://www.exitplaystation.com/ps3/warhawk/index.php - This is the site.
> Even
> the Spry widgets have the same issue, but the menu is the most obvious.
>
> http://www.exitplaystation.com/ps3/w...ps_warhawk.css - This
> is
> the CSS document. #menu_bg is the menu container that expands the width
> of the
> screen and is the source of the main issue.


For the filter to work in IE, you need to give the element a layout (Google
"Ingo Chao hasLayout" for the best article on this).
So try this:
#menu_bg {width:100%;}

If for any reason this creates an issue with the layout and you don't care
about CSS validation then go with a simple:
#menu_bg {zoom:1;}


--
Thierry
Articles and Tutorials: http://www.TJKDesign.com/go/?0
--
http://developer.yahoo.com/ helps you build applications and mashups

Reply With Quote
  #3 (permalink)  
Old 09-08-2008, 02:01 AM
Al Sparber - PVII
 
Posts: n/a
Diggs:
Default Re: IE7 & CSS Opacity

"SnakEyez02" <webforumsuser@macromedia.com> wrote in message
news:ga1fvf$pvv$1@forums.macromedia.com...
> I'm curious if any experts out there have had any experience with this. I
> have
> tried using the following in my CSS document:
>
> opacity:.4; //For Everything Else
> filter:alpha(opacity=40); //I thought this would do the trick for IE


> If anyone has any ideas that would be great because I am pretty much out
> of
> them with this issue:


In addition to Thierry's excellent advice, do note that their are some
issues with the opacity filter and IE7. One issue is that IE turns off
font-smoothing for text inside an element that has an opacity filter set.

Another issue is that the filter creates a box and will hide child elements
nested in that box if the filter is assigned to certain kinds of parent
elements. If, for instance, you added sub-levels to your nav bar and
assigned the filter to a containing DIV or to the ULs, your sub-levels would
not display. The solution would be to assign the filter to the LI elements.

An important note is that IE8 might be released without any support for
opacity or for filters.

A possible solution would be to use transparent PNG background image(s)
(supported by IE7) and allow older versions of IE to degrade gracefully to
an opaque menu.


--
Al Sparber - PVII
http://www.projectseven.com
Fully Automated Menu Systems | Galleries | Widgets
http://www.projectseven.com/go/Elevators


Reply With Quote


  #4 (permalink)  
Old 09-10-2008, 11:27 PM
SnakEyez02
 
Posts: n/a
Diggs:
Default Re: IE7 & CSS Opacity

Thanks for the help. Al I actually took your suggestion for the PNG files
because while the CSS3 opacity gives the desired effect I did some reading up
on IE 8 and realized that it will only support CSS 2.1. So because of that
PNGs are the way to go. I tend to forget about them at times, but this is
definitely a good place to use them.

Reply With Quote
  #5 (permalink)  
Old 09-11-2008, 01:22 AM
Al Sparber - PVII
 
Posts: n/a
Diggs:
Default Re: IE7 & CSS Opacity

"SnakEyez02" <webforumsuser@macromedia.com> wrote in message
news:ga9h18$ica$1@forums.macromedia.com...
> Thanks for the help. Al I actually took your suggestion for the PNG files
> because while the CSS3 opacity gives the desired effect I did some reading
> up
> on IE 8 and realized that it will only support CSS 2.1. So because of
> that
> PNGs are the way to go. I tend to forget about them at times, but this is
> definitely a good place to use them.
>


Hi Snake,

You might find this useful to keep for future reference:
http://blogs.msdn.com/ie/archive/200...xtensions.aspx


--
Al Sparber - PVII
http://www.projectseven.com
Fully Automated Menu Systems | Galleries | Widgets
http://www.projectseven.com/go/Elevators


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:52 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk