469,621 Members | 1,688 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,621 developers. It's quick & easy.

Scrolling text in a DIV

Yes I have searched the group in google.
No, I did not find the answer.

I want a DIV that will contain variable amounts of text. It will
have a fixed width and I want to limit the height to the viewport
height. If there is more text than the DIV height, I want the
excess clipped and a scrollbar to appear.

I am sure that this is a relatively simple task, I just don't
know enough about CSS positioning to know where to look first.

I am not asking for code, just tell me where to start looking.

Thanks,

bill
Jul 21 '07 #1
4 9402
Rik
On Sat, 21 Jul 2007 16:50:01 +0200, bill <no****@spamcop.netwrote:
Yes I have searched the group in google.
No, I did not find the answer.

I want a DIV that will contain variable amounts of text. It will have a
fixed width and I want to limit the height to the viewport height. If
there is more text than the DIV height, I want the excess clipped and a
scrollbar to appear.

I am sure that this is a relatively simple task, I just don't know
enough about CSS positioning to know where to look first.

I am not asking for code, just tell me where to start looking.

max-height
overflow
--
Rik Wasmus
Jul 21 '07 #2
bill wrote:
Yes I have searched the group in google.
No, I did not find the answer.

I want a DIV that will contain variable amounts of text. It will have a
fixed width and I want to limit the height to the viewport height. If
there is more text than the DIV height, I want the excess clipped and a
scrollbar to appear.

I am sure that this is a relatively simple task, I just don't know
enough about CSS positioning to know where to look first.

I am not asking for code, just tell me where to start looking.
<http://meyerweb.com/eric/css/edge/complexspiral/demo.html>

--
Gus
Jul 21 '07 #3
I want a DIV that will contain variable amounts of text. It will have a
fixed width and I want to limit the height to the viewport height. If
there is more text than the DIV height, I want the excess clipped and a
scrollbar to appear.
Take a look at the overflow property:
http://www.w3schools.com/css/pr_pos_overflow.asp
http://www.w3schools.com/css/tryit.a...rycss_overflow
Jul 21 '07 #4
William Gill wrote:
>I want a DIV that will contain variable amounts of text. It will have
a fixed width and I want to limit the height to the viewport height.
If there is more text than the DIV height, I want the excess clipped
and a scrollbar to appear.

Take a look at the overflow property:
http://www.w3schools.com/css/pr_pos_overflow.asp
http://www.w3schools.com/css/tryit.a...rycss_overflow
THank you much - all

bill
Jul 21 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Midas NDT Sales | last post: by
1 post views Thread by Wesman | last post: by
5 posts views Thread by Will Gillen | last post: by
4 posts views Thread by Keith Bentrup | last post: by
5 posts views Thread by PythonistL | last post: by
1 post views Thread by Thorsten Kleinweber | last post: by
3 posts views Thread by Chamnap | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.