Forum Moderators: open

Message Too Old, No Replies

iframe offset--possible?

         

Sarah Atkinson

7:48 pm on May 13, 2008 (gmt 0)

10+ Year Member



I am framing in a little page from another website. Is is possible to offset the page with in the frame so that the top part of the page being frames in is hidden?

Trace

1:19 pm on May 14, 2008 (gmt 0)

10+ Year Member



Sounds like you're doing something way wrong, like hiding the other sites branding or publicities. I don't think you should be doing that.

With that said - I would imagine something like this would work;

<div style="width:300px; height:200px; overflow:hidden; padding-top:-100px;">
<iframe src="http://www.google.com" style="width:300px; height:300px;"></iframe>
</div>

Sarah Atkinson

9:09 pm on May 14, 2008 (gmt 0)

10+ Year Member



Thanks I actually had to negative to the iframe using top and left... but this got me there. I'm framing in some charts from a .gov website. I use to link to the site but my web users didn't seem to like that and wanted it simpler. So I'm trying to make it as simple as possible. I'm still linking to the site since it is a great site and filled with tons of data for consumers. Probably the best .gov site I have been too.

Do you think this is ethical?

paulmadillo

1:24 pm on May 15, 2008 (gmt 0)

10+ Year Member



It's possibly something you should gain permission from the creators for rather than a question of ethics.

poppyrich

11:24 pm on May 20, 2008 (gmt 0)

10+ Year Member



Personally, I would assume that anything on a government site is automatically public domain.
I mean, I can't imagine the gov objecting to anyone helping them disseminate information.