![]() |
| ||
| iframe content locking? 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? |
| ||
| 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 <iframe src="#" style="position:absolute; top:200px; width:70px; height:100px;"></iframe> |
| ||
| 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. |
| ||
| 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. |
| ||
| Re: iframe content locking? 1 Attachment(s) hope fully this makes it clear |
| ||
| 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?) |
| ||
| 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 |
| ||
| 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). |
| ||
| Re: iframe content locking? Quote:
|
| ||
| 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. |
| All times are GMT -4. The time now is 6:19 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC