#1 (permalink)  
Old 06-25-2007, 11:22 AM
Registered User
 
Join Date: Nov 2006
Posts: 25
text wrap in floated div?

I'm making a page where there is an image and then text to the right of the image (the image and the text are both float:left)

my problem is that I've had to set the width of a containing div extra wide so as to accomodate text-resizing (if I don't set the width wide enough, then the text gets jammed under the image on text-resize).
The problem with the extra wide div is that it causes a horizontal scrollbar to appear even if there isn't any content extending beyond the window...
what I wish would occur is that the text would wrap on text-resize, then I wouldn't have to set the div so wide and I wouldn't get the scrollbar...this is how text in a table behaves but I can't figure out how to do it in a floated div?

here are links to the page and its css...
http://www.karlyoder.com/peterpagast/mrl_robeson.html
http://www.karlyoder.com/peterpagast/css/global.css

Closed Thread


Thread Tools
Display Modes 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
Force a menu button to read text file (not cached) Bad Inferno Programming and Scripting 1 06-21-2007 08:41 AM
scrollbar with text? seccondbest Programming and Scripting 3 11-27-2006 07:18 AM
controlling the size of an image with text over it bobs world Graphics and Flash 9 02-25-2006 11:26 AM
How do I highlight a split function text? gilgalbiblewhee Programming and Scripting 7 01-31-2006 04:12 PM


All times are GMT -5. The time now is 04:51 PM.

 
Clicky Web Analytics
CloudContacts
Loop11
Page.ly


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.1 PL1
© 1997-2009 HTMLCenter