Wow, thanks Brian.
Thought it would be much more complex that this.
The more I learn - the less I know.

Don


----- Original Message -----
From: "Brian Cummiskey" <[EMAIL PROTECTED]>
To: "Don Miller" <[EMAIL PROTECTED]>
Cc: "CSS-D List" <css-d@lists.css-discuss.org>
Sent: Friday, June 09, 2006 8:33 AM
Subject: Re: [css-d] Iframe or div?


| Don Miller wrote:
| > Is there a way to make a .<div> behave like an iframe?
| > I want the div to be a certain width and height and keep that size
regardless of the content but would like a vertical scroll bar to appear if
the content is longer than the div.
|
| <div id="scroll">
| content
| </div>
|
| #scroll {
| width: 500px;
| height: 100px;
| overflow-y: scroll;
| }
|
|
| You may get some beef with the validators about the -y part of the
| overflow property.  You can simply use overflow: to get both horiz and
| vert scroll bars however.
|
| > Or would I be better off just using an iframe?
|
| you're never better off using iframes :)
|
|
|
|
|
| --
| No virus found in this incoming message.
| Checked by AVG Free Edition.
| Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 6/8/2006
|
|



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 6/8/2006

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to