944,010 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Sep 18th, 2007
0

iframe content locking?

Expand Post »
hello I would like the first 200 dots of iframe content to be skipped (so the iframe content top is 200 dots from the real top). it should not be able to scroll up those 200 dots. how can that be done?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coat is offline Offline
10 posts
since Sep 2007
Sep 18th, 2007
0

Re: iframe content locking?

What do you mean by dots. But if its pixels and you want it 200pixels down from top then its as simple as that
html Syntax (Toggle Plain Text)
  1. <iframe src="#" style="position:absolute; top:200px; width:70px; height:100px;"></iframe>
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Sep 18th, 2007
0

Re: iframe content locking?

I meant the content page needs to be skipped 200 pixels of. not the position of the frame it self. thank you.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coat is offline Offline
10 posts
since Sep 2007
Sep 18th, 2007
0

Re: iframe content locking?

Do you mean you want the "content of the frame" to be 200 from the top?

Sorry, it is obvious that it is important to you - but we are not quite sure what you mean.
Please forgive us, and if possible, supply a link or a quick iamge of what you have and what you would like... even if it's done in paint!

As soon as we understand what you need, I'm sure we can help you do it.
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Sep 18th, 2007
0

Re: iframe content locking?

hope fully this makes it clear
Attached Thumbnails
Click image for larger version

Name:	page.jpg
Views:	58
Size:	23.3 KB
ID:	4097  
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coat is offline Offline
10 posts
since Sep 2007
Sep 18th, 2007
0

Re: iframe content locking?

Perfect.

So, If I understand correctly.... you want a page that loads the frame.
Inside the frame youw ill oad a second page.
It is the second page that you wish to be 200 from the top.

Now, I assume that when you say "200" you mean downwards (so the pagethat loads in the frame is pushed towards the bottom of the frame // moved downwards from the top).
So instead of it being...

______________________________________
HERE
|
|
200
|
|
v
It would be here

???

Also, by "dots", do you Pixels or Lines?
(Meaning, do you want it moved by 200px or by 200 lines of text?)
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Sep 18th, 2007
0

Re: iframe content locking?

no the 200 should be in visible hiding behind the top edgde of the frame so up.

and dots is pixel
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coat is offline Offline
10 posts
since Sep 2007
Sep 18th, 2007
0

Re: iframe content locking?

Hmmm...

Well, I'm not sure if it is possibly to apply a styli to the Fram itself...
If it is... something along the lines of
#myframe
{margin-top: -200px;}

The alternative is to code a Container with the frame... so you would have...
<frame>
<div id="framecontentwrap">
</div>
</frame>
And then apply the above CSS suggestion to #framecontentwrap.

Of course, this would mean that the top 200px would not be visible... at all - users would not beable to scroll-up to see, as the contents would basically be "dragged out of view".

If you jsut want it positioned 200px down (so the scrollbar doesn't start at the top), then I believe with a little JS you can apply focus and position the scroller).
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Sep 18th, 2007
0

Re: iframe content locking?

Quote ...
And then apply the above CSS suggestion to #framecontentwrap.
how do I do this?
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?

in the markup (html), you have the <frame>

<html>
<body>
<frame id="thishereframe">
</frame>
</body>
</html>


in the CSS, you would have...

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


Tahts basically the same as what I posted above... I'm sure you know what to do.
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005

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