943,929 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Sep 19th, 2007
0

Re: iframe content locking?

HTML and CSS Syntax (Toggle Plain Text)
  1. #myframe
  2. {margin-top: -200px;}
  3.  
  4. The alternative is to code a Container with the frame... so you would have...
  5. <frame>
  6. <div id="framecontentwrap">
  7. </div>
  8. </frame>
got confused because of 2 different names here

will try thanks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coat is offline Offline
10 posts
since Sep 2007
Sep 19th, 2007
0

Re: iframe content locking?

situation now is like in attachment. I put this:
HTML and CSS Syntax (Toggle Plain Text)
  1. #framemove {
  2. margin-top: -200px;
  3. }
in tabstyles.css.

it is not skipping the 200? what is wrong?
Attached Files
File Type: php thispage.php (3.7 KB, 13 views)
Last edited by coat; Sep 19th, 2007 at 10:38 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coat is offline Offline
10 posts
since Sep 2007
Sep 19th, 2007
0

Re: iframe content locking?

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.
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Sep 19th, 2007
0

Re: iframe content locking?

tried all sorts of those com binations but it wouldn't work. below is other suggestion with a remark.

Quote ...
HTML and CSS Syntax (Toggle Plain Text)
  1. function hideIframeTop(ifrId) {
  2. var oIframe = document.getElementById(ifrId);
  3. var oDoc = oIframe.contentWindow || oIframe.contentDocument;
  4. if (oDoc.document) {
  5. oDoc = oDoc.document;
  6. }
  7. oDoc.body.style.marginTop = '-200px';
  8. return false;
  9. }
  10.  
  11. <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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coat is offline Offline
10 posts
since Sep 2007
Sep 19th, 2007
0

Re: iframe content locking?

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).
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Sep 19th, 2007
0

Re: iframe content locking?

Well, I cannot get it to work (then again, I'm naff with scripts )
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Sep 19th, 2007
0

Re: iframe content locking?

Nope - it will only draw the Body up to the very top, not beyond it....

Frustrating!
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Sep 19th, 2007
0

Re: iframe content locking?

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
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Sep 19th, 2007
0

Re: iframe content locking?

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coat is offline Offline
10 posts
since Sep 2007
Sep 20th, 2007
0

Re: iframe content locking?

The solution is to generate new content with those pixels removed.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Canvas
Next Thread in HTML and CSS Forum Timeline: How do you center a table?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC