overflowing text

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old May 9th, 2008, 13:21
Junior Member
Join Date: Sep 2005
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 10th, 2008, 14:51
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 11th, 2008, 13:53
Junior Member
Join Date: Apr 2008
Location: uk
Age: 23
Posts: 46
Thanks: 3
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 12th, 2008, 08:19
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
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)
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

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 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


All times are GMT. The time now is 05:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved