Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
safari - div images leaving a horible trail over iframe
Old 04-10-2008, 03:56 AM safari - div images leaving a horible trail over iframe
Junior Talker

Posts: 3
Trades: 0
Hi - sorta newbie here

I have a problem with a page I am putting together:

I have an Iframe, and an image that has been layered over the top of the iframe.

Works fine in IE and Firefox - But Safari seems to break the page - whenever I use the scrollbar, the image leaves a horible trail through the Iframe.

Have a look (and make sure to use safari): http://www.soulfulunderground.net/test/info.htm

Heres my code:

Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>site</title>
<style type="text/css">
<!--

#content {
    font-family: Verdana, Geneva, Arial, sans-serif;
    margin-left: -350px;
    position: absolute;
    top: -266px;
    left: 50%;
    width: 700px;
    height: 532px;
    visibility: visible
}
-->
</style>
</head>
<body>

  <div id="content">
    <iframe style="position:absolute; top: 300px; left: 6px; z-index: 1; display: block; width: 687px; height: 492px; frameborder="0" src="frame.htm"> </iframe>
    <div style="position: absolute; top: 710px; left: 300px; z-index: 3; display: block; width: 93px; height: 124px; border: 0;"> <img src="image.jpg"> </div>

</div>
</body>
</html>
shanski is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-10-2008, 04:16 AM Re: safari - div images leaving a horible trail over iframe
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Slow loading image/page is the usual cause. Does it catch up when you stop scrolling?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-10-2008, 04:41 AM Re: safari - div images leaving a horible trail over iframe
Junior Talker

Posts: 3
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Slow loading image/page is the usual cause. Does it catch up when you stop scrolling?
no - It doesnt catch up, but rather leaves a horible trail through the iframe, as if the image has seeped through to the iframe layer.

I hadn't thought of the problem being that it is a slow loading image. The image size is quite small, but do you think it may help if I use javascript to preload the images?

shan
shanski is offline
Reply With Quote
View Public Profile
 
Old 04-10-2008, 04:52 AM Re: safari - div images leaving a horible trail over iframe
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Nope, It sounds more like a case for getting rid of the Iframe.

It's not necessarily the image that is loading slowly, hence my use of "image/page". There is quite a noticeble delay in loading the iframe content.

So do you really need to use an iframe?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-10-2008, 05:15 AM Re: safari - div images leaving a horible trail over iframe
Junior Talker

Posts: 3
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Nope, It sounds more like a case for getting rid of the Iframe...
bummer - I really didn't want to hear that..

The alternate option is, instead of using an iframe, I have all my text content on a div with a lower z-index vale, and have my images that I want to remain stationary (not scroll) at a higher z-index value with the style POSITION: FIXED;

..but I tried that and quickly found out that POSITION: FIXED is not understood by older versions of IE (including IE 7.0.57 which I am using here), and the javascript work around gave very jerky results.

what a headache!!

So anyone got a fix for the IE position: fixed problem??
shanski is offline
Reply With Quote
View Public Profile
 
Old 04-10-2008, 10:36 AM Re: safari - div images leaving a horible trail over iframe
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
The alternate option is, instead of using an iframe, I have all my text content on a div with a lower z-index vale, and have my images that I want to remain stationary (not scroll) at a higher z-index value with the style POSITION: FIXED;
That's NOT your only option. In this situation you can easily use position:absolute with a higher z-index JUST for the image that you want to 'stack' on top of your content.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to safari - div images leaving a horible trail over iframe
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47902 seconds with 12 queries