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?
coat
0
Newbie Poster
Recommended Answers
Jump to PostWhat 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>
Jump to PostDo 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 …
Jump to PostPerfect.
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 …
Jump to PostHmmm...
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 …
Jump to Postin 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 20 Replies
GreenDay2001
coat
0
Newbie Poster
autocrat
52
Posting Pro in Training
coat
0
Newbie Poster
autocrat
52
Posting Pro in Training
coat
0
Newbie Poster
autocrat
52
Posting Pro in Training
coat
0
Newbie Poster
autocrat
52
Posting Pro in Training
coat
0
Newbie Poster
coat
0
Newbie Poster
autocrat
52
Posting Pro in Training
coat
0
Newbie Poster
autocrat
52
Posting Pro in Training
autocrat
52
Posting Pro in Training
autocrat
52
Posting Pro in Training
autocrat
52
Posting Pro in Training
coat
0
Newbie Poster
MidiMagic
579
Nearly a Senior Poster
coat
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.