Web Design and Development Forums

overflowing text

This is a discussion on "overflowing text" within the Beginner Resources section. This forum, and the thread "overflowing text are both part of the New to Web Design category.

Old May 9th, 2008, 13:21   #1 (permalink)
Junior Member
 
Join Date: Sep 2005
Posts: 26
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
forry is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 10th, 2008, 14:51   #2 (permalink)
Moderator
 
spinal007's Avatar
 
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,609
Blog Entries: 1
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
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!
__________________
Diego - SEO Consultant London (My Blog | Fight Me)
jQuery: Star Rating - Multiple File Upload - FCKEditor/Codepress
Before we work on artificial intelligence why don't we do something about natural stupidity?
spinal007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 11th, 2008, 13:53   #3 (permalink)
Junior Member
 
Join Date: Apr 2008
Location: uk
Age: 23
Posts: 36
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?
bonnit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 12th, 2008, 08:19   #4 (permalink)
Moderator
 
spinal007's Avatar
 
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,609
Blog Entries: 1
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: overflowing text

for some reason I assumed he didn't want scrollbars. but yeah, that's the proper way of doing it. lol
__________________
Diego - SEO Consultant London (My Blog | Fight Me)
jQuery: Star Rating - Multiple File Upload - FCKEditor/Codepress
Before we work on artificial intelligence why don't we do something about natural stupidity?
spinal007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 CSS Forum 5 Nov 13th, 2007 23:25
alt text/title text differences Donny Bahama HTML Forum 3 Apr 23rd, 2007 17:02
IE6 bug - div box overflowing Wheatus7 CSS Forum 1 Feb 17th, 2007 17:03
page overflowing with 100%? escaflowne11 CSS Forum 3 Oct 3rd, 2006 19:28



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 21:38.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59