User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 456,489 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,705 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 3533 | Replies: 20
Reply
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

  #11  
Sep 19th, 2007
#myframe
{margin-top: -200px;}

The alternative is to code a Container with the frame... so you would have...
<frame>
<div id="framecontentwrap">
</div>
</frame>
got confused because of 2 different names here

will try thanks
Reply With Quote  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

  #12  
Sep 19th, 2007
situation now is like in attachment. I put this:
#framemove {
margin-top: -200px;
}
in tabstyles.css.

it is not skipping the 200? what is wrong?
Last edited by coat : Sep 19th, 2007 at 10:38 am.
Attached Files
File Type: php thispage.php (3.7 KB, 1 views)
Reply With Quote  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Rep Power: 4
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

  #13  
Sep 19th, 2007
AS I dsaid, no idea if it would work.... I don't sue frames...

that said, did you try the other methd of putting in a div within the frame and applying the style to that?


<frame>
<div id="frameddiv">
</div>
</frame>

#frameddiv{
margin-top: -200px;
}

???

The only tother things I can think of is to use JS - which is something else I avoid as much as possible.
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

  #14  
Sep 19th, 2007
tried all sorts of those com binations but it wouldn't work. below is other suggestion with a remark.

function hideIframeTop(ifrId) {
    var oIframe = document.getElementById(ifrId);
    var oDoc = oIframe.contentWindow || oIframe.contentDocument;
    if (oDoc.document) {
        oDoc = oDoc.document;
    }
    oDoc.body.style.marginTop = '-200px';
    return false;
}

<iframe id="ifr" src="/" onload="hideIframeTop('ifr')" />
this will only work for relative paths on the same server
page calling the frame is in domain.com/folder1/page.php. the page called is in domain.com/folder2/page.php.

how can it work if like that?
Reply With Quote  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Rep Power: 4
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

  #15  
Sep 19th, 2007
No idea...

I can see that it is applying the style of margin top -200px... but it seems to be applying it to the contents of the frame (the body of the pagethat loads).
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Rep Power: 4
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

  #16  
Sep 19th, 2007
Well, I cannot get it to work (then again, I'm naff with scripts )
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Rep Power: 4
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

  #17  
Sep 19th, 2007
Nope - it will only draw the Body up to the very top, not beyond it....

Frustrating!
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Rep Power: 4
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

  #18  
Sep 19th, 2007
I give up -sorry.

I've tried applying Psotion Abs/Rel - that makes the gframe itself move.
I've tried applying margin/marginTop etc. with negatives - nothing happens after the body shifts to the frame edge.
I've tried using Clip-rect/overflow etc... nothing!

I'm out of ideas
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

  #19  
Sep 19th, 2007
I suggest they reduce computer science exams to 1 ques tion: how can content be placed higher than an iframe itself? this isn't rocket science is it? thank you for try ing. anyone?
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: iframe content locking?

  #20  
Sep 20th, 2007
The solution is to generate new content with those pixels removed.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 3:16 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC