Log in

View Full Version : iframe without url



james438
05-21-2010, 02:19 AM
I am looking to use an iframe in a page so as to have scrollable content, but without loading the content from another page. All of the content will be found on the same page.

djr33
05-21-2010, 02:22 AM
What? Why? An iframe IS another page. You can't avoid that.
Just use CSS to make a scrollable div-- overflow: auto; or overflow: scroll;

james438
05-21-2010, 02:23 AM
I had some trouble finding the info, but then suddenly found it from http://www.quackit.com/html/codes/html_scroll_box.cfm


<!-- HTML Codes by Quackit.com -->
<div style="height:120px;width:250px;font:16px/26px Georgia, Garamond, Serif;overflow:scroll;">
As you can see, once there's enough text in this box, the box will grow scroll bars... that's why we call it a scroll box! You could also place an image into the scroll box.
</div>
<p style="font-family:verdana,arial,sans-serif;font-size:10px;"><a href="http://www.quackit.com/html/codes/html_scroll_box.cfm">HTML scrollbox</a></p>

james438
05-21-2010, 02:23 AM
Wow, that was a fast reply!