Forum Moderators: not2easy

Message Too Old, No Replies

Text overflow

         

maff

9:17 pm on Apr 2, 2005 (gmt 0)

10+ Year Member



Hi!

Is it possible to make text overflow to a second page? I currently have a long interview which I would like to run over a few pages. The containing div is a specific size and must not grow. I can separate the text and set the text size to a (e.g.) 15 pixel height so that the text stays inside the div, but on some where the main font is not available, a substitute is used which may be slightly larger than the default, this would cause the text to expand the div. Aaarrrgghh. I can't even explain it properly!

createErrorMsg

4:28 am on Apr 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To split content between pages requires either manually dividing it up, or using a script to cut it at certain lengths and serve it up as different pages. It's definitely not something CSS can do.

CSS can, however, make sure that the div's size doesn't change. By using the overflow property, you can either have any extra content disappear, or be accessible through a scrollbar on the div (it will only appear when necessary). The propertyis overflow and the values to use are hidden and scroll, respectively.

cEM