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,710 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

iframe content locking?

  #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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 5
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: iframe content locking?

  #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  
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?

  #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  
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?

  #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  
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?

  #5  
Sep 18th, 2007
hope fully this makes it clear
Attached Images
File Type: jpg page.jpg (23.3 KB, 5 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?

  #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  
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?

  #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  
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?

  #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  
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?

  #9  
Sep 18th, 2007
And then apply the above CSS suggestion to #framecontentwrap.
how do I do this?
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?

  #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  
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