This is a discussion on "overflowing text" within the Starting Out section. This forum, and the thread "overflowing text are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
overflowing text
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
overflowing text
Hi, i have design a site using css. it has a container round the whole site.
It looks and works fine in both IE and firefox at a resolution of 1280 by 1024. I viewed it on a wide screen monitor with a screen resloution of 1680 by 1050. All the text on the pages scrolls out of the container and down passed the bottom of the site. I noticed that the font size on the browser was set to largest so this may be why it was doing it. Is there a way to keep the text contained within the container even when the text size is set to largest Thanks |
|
|
|
#2
|
||||
|
||||
|
Re: overflowing text
The true solution is: don't specify a height for your container.
But if you must, you can use overflow:hidden to, erm, hide the overflow. Alternatively you can write some clever javascript that will resize the text to make it fit. There is a jQuery plguin that automatically resizes text to fill a container, but I can't find it anywhere, sorry!
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#3
|
|||
|
|||
|
Re: overflowing text
erm wouldnt you just set it as overflow:auto, that way it would display as much text as the size of the container would allow (set within css) and then the user can scroll down the rest of the text?
|
|
#4
|
||||
|
||||
|
Re: overflowing text
for some reason I assumed he didn't want scrollbars. but yeah, that's the proper way of doing it. lol
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| making text field text disapear | Phixon | JavaScript Forum | 4 | Feb 2nd, 2008 07:49 |
| [SOLVED] Image with text -> text with background | alexgeek | Web Page Design | 5 | Nov 13th, 2007 23:25 |
| alt text/title text differences | Donny Bahama | Web Page Design | 3 | Apr 23rd, 2007 17:02 |
| IE6 bug - div box overflowing | Wheatus7 | Web Page Design | 1 | Feb 17th, 2007 17:03 |
| page overflowing with 100%? | escaflowne11 | Web Page Design | 3 | Oct 3rd, 2006 19:28 |