image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Design & Media

Reply
 
Thread Tools
  #1  
Old February 26th, 2005, 11:07 PM
Registered User
 
Join Date: Feb 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
highdudgeon is on a distinguished road
Exclamation Flash and CSS problem for Mac/IE

It's the eternal thing, isn't it?

Anyway, here's the deal: I'm working on a design that uses low-alpha PNGs for Safari, Mac/IE, and, well, pretty much everyone else, and the CSS opacity filter for Win/IE. Nevermind the goofy Flash movie, it's a placeholder:

http://www.highdudgeon.net/sites/test/eegallery8.html

Notice that the Flash movie is in a totally different DIV than the rest of the content -- that's the only way this layout will work. And here's the problem: it actually works well for all browsers EXCEPT Mac/IE, which now ceases to display the PNG. Something about having a Flash movie in another DIV kills that function. THis is pretty urgent -- ideas?!
Reply With Quote
  #2  
Old February 27th, 2005, 03:47 AM
mdnky's Avatar
[Bobs/Prog/Design:~] mod%
 
Join Date: Jul 2001
Location: Baton Rouge, LA - USA
Posts: 2,652
Thanks: 0
Thanked 0 Times in 0 Posts
mdnky is on a distinguished road
Didn't see any flash movie, and looks basically the same in both browsers on my computer.

Safari: http://test.designs4efx.com/highdudgeon/Picture%201.pdf
IEMac: http://test.designs4efx.com/highdudgeon/Picture%202.pdf
__________________
.
| mdnky@macosx.com | My Homepage | My Music | Restore the Pledge | MacOSX.com Widget |

• MacBook Pro Core2Duo 2.33GHz 15", 2GB DDR2 RAM, 120GB, DL Superdrive, OS X 10.5,
• Apple 23" Cinema HD Display, Apple Slim-Alum Keyboard, Apple BT Alum Keyboard, Logitech Optical Scroll Mouse
• iPhone 3G, iPhone 8GB, iPod Photo 30GB, Nikon D50, Nikon L6, Epson 3490, Epson R1800, HP LaserJet 1200
• LaCie 500GB d2 Quadra, LaCie 160GB d2 FW, harman/kardon SoundSticks II, Mighty Mouse, iSight

Reply With Quote
  #3  
Old February 27th, 2005, 09:41 AM
Registered User
 
Join Date: Feb 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
highdudgeon is on a distinguished road
Nope, you experienceed the problem, too! The photo gallery IS a Flash movie (SWF). In your Safari version, you'll notice a translucent effect over the menu items; in the IE version, this effect is deactivated, and only becomes deactivated when Flash is present.
Reply With Quote
  #4  
Old February 27th, 2005, 10:49 AM
Registered User
 
Join Date: Feb 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
highdudgeon is on a distinguished road
Allow me to clarify -- if you look at the code, you'll see that the layout and menu items (to the left and right) are defined in CSS. The Flash movie floats over the DIV that contains them.
Reply With Quote
  #5  
Old February 27th, 2005, 10:48 PM
mdnky's Avatar
[Bobs/Prog/Design:~] mod%
 
Join Date: Jul 2001
Location: Baton Rouge, LA - USA
Posts: 2,652
Thanks: 0
Thanked 0 Times in 0 Posts
mdnky is on a distinguished road
My bad. I wasn't paying attention last night.

Try to break the habbit of using negative margins and 50% positioning for horizontal centering. It's not the best way to go about it. Use the auto value on the left and right margins for this instead.

Also, there's no real need for absolute positioning everything. Float it instead and it'll work nicely...even in IE.

It seems there's something haywire with the flash movie. On load, it'll display fine (nice and centered as I assume you intended) but on a mouse over of the thumbs the image jumps to the left. There's also a lot of unneeded space in general. Get rid of that space in the flash file and use CSS to control the margins around the object.


Here's a rewrite of the page. Some things are slightly different, I wasn't worrying too much about 'exact' exactness...just trying to provide an example using floats and more accessible HTML. The CSS is in HTML. Works in Safari, IE-Mac. I can't test in Win browsers right now, so I didn't. It's a bit weird in Firefox (1.0 Mac), I'm betting on the movie being the cause there. Try making it as described above, with a width of 460px.

- http://test.designs4efx.com/highdudgeon/ -
__________________
.
| mdnky@macosx.com | My Homepage | My Music | Restore the Pledge | MacOSX.com Widget |

• MacBook Pro Core2Duo 2.33GHz 15", 2GB DDR2 RAM, 120GB, DL Superdrive, OS X 10.5,
• Apple 23" Cinema HD Display, Apple Slim-Alum Keyboard, Apple BT Alum Keyboard, Logitech Optical Scroll Mouse
• iPhone 3G, iPhone 8GB, iPod Photo 30GB, Nikon D50, Nikon L6, Epson 3490, Epson R1800, HP LaserJet 1200
• LaCie 500GB d2 Quadra, LaCie 160GB d2 FW, harman/kardon SoundSticks II, Mighty Mouse, iSight

Reply With Quote
  #6  
Old February 27th, 2005, 10:54 PM
Registered User
 
Join Date: Feb 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
highdudgeon is on a distinguished road
Thanks. Yeah, that was a lot of code, but it was there for a reason -- to get this thing compliant with Win/IE (the biggest offender, by far). In fact, without the absolute positioning, it just doesn't fly there.

I go back and worth on negative margins/"auto auto." What I don't like about auto margins is that the design inevitibly does favor the left margin. With the negative margin, it simply works and is fully centered (ie, when you expand or collapse the window, the layout remains dead center).

The movie is funky because it's a work in progress -- I just increased the size (from the original 400) to what the actual size will need to be; I realigned original places, but didn't altar the MCs -- that's why they flick to the left like that. Right now, I'm just looking to get this working. (And, it really DOES have to be much wider, because thumbnails need to run all the way across the bottom of the design).
Reply With Quote
  #7  
Old February 27th, 2005, 10:56 PM
Registered User
 
Join Date: Feb 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
highdudgeon is on a distinguished road
FYI, your re-write is no different -- the opacity effect is lost on Mac/IE; it does not work in Mac/Ie. Look carefully at both browser displays -- you'll notice that the opacity overlay is lost in Mac/ie. Same problem I've been having.

Anyway, it's not a Flash issue -- it's a Mac/Ie-CSS bug.
Reply With Quote
  #8  
Old February 27th, 2005, 10:58 PM
Registered User
 
Join Date: Feb 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
highdudgeon is on a distinguished road
Nice code, though; very nice. I'll try it out on a PC as soon as I can.
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 03:07 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.