• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

Creating window within webpage

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
bromide
Asked:
bromide
1 Solution
 
BrianPap22Commented:
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
 
venkateshwarrCommented:
0
 
YZlatCommented:
0
 
bromideAuthor Commented:
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
 
bromideAuthor Commented:
brianpap's worked just like i was looking for.  Thanks to all that replied!
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now