Solved

Creating window within webpage

Posted on 2004-03-25
5
204 Views
Last Modified: 2010-04-06
Hello,

I am trying to make a webpage, what i am looking for will be able to display content inside a window on the webpage say something like 300px by 300px that has its own scrollbar.  

i would prefer to stay away from iframes.  thanks!
0
Comment
Question by:bromide
5 Comments
 
LVL 4

Accepted Solution

by:
BrianPap22 earned 250 total points
ID: 10684753
Use cascading style sheets. Much better than an iframe:

<div style="width:300px;height:300px;overflow:auto">
blah
</div>

If the content inside the divs is too big for the 300x300 sized box, then overflow:auto tells the browser to display scroll bars if necessary.

Cheers
0
 
LVL 12

Expert Comment

by:venkateshwarr
ID: 10684755
0
 
LVL 35

Expert Comment

by:YZlat
ID: 10686793
0
 

Author Comment

by:bromide
ID: 10690538
Thanks! i am going to be testing these out and will respond back later!


PS. i am going to up the points to 250.
0
 

Author Comment

by:bromide
ID: 10690780
brianpap's worked just like i was looking for.  Thanks to all that replied!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question