iframe content locking?

Reply

Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

iframe content locking?

 
0
  #1
Sep 18th, 2007
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?
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 35
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: iframe content locking?

 
0
  #2
Sep 18th, 2007
What do you mean by dots. But if its pixels and you want it 200pixels down from top then its as simple as that
  1. <iframe src="#" style="position:absolute; top:200px; width:70px; height:100px;"></iframe>
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

 
0
  #3
Sep 18th, 2007
I meant the content page needs to be skipped 200 pixels of. not the position of the frame it self. thank you.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

 
0
  #4
Sep 18th, 2007
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.
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 Quick reply to this message  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

 
0
  #5
Sep 18th, 2007
hope fully this makes it clear
Attached Thumbnails
page.jpg  
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

 
0
  #6
Sep 18th, 2007
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?)
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 Quick reply to this message  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

 
0
  #7
Sep 18th, 2007
no the 200 should be in visible hiding behind the top edgde of the frame so up.

and dots is pixel
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

 
0
  #8
Sep 18th, 2007
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).
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 Quick reply to this message  
Join Date: Sep 2007
Posts: 10
Reputation: coat is an unknown quantity at this point 
Solved Threads: 0
coat coat is offline Offline
Newbie Poster

Re: iframe content locking?

 
0
  #9
Sep 18th, 2007
And then apply the above CSS suggestion to #framecontentwrap.
how do I do this?
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: iframe content locking?

 
0
  #10
Sep 19th, 2007
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.
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 Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC