Zoe M. Gillenwater wrote:
> Sandy Gonzales wrote:
>   
>> hi guys, i have a question about word wrapping.  I notice when i set a 
>> width to a block element that the text inside won't wrap, which makes 
>> sense i guess since the element retains its size..
>> for example:
>> http://www.rh-v2.cpdev.sudjam.com/tutorial.php?cat=26
>>
>> is there anyway after setting a width to the white box element 
>> containing the text, i could resize the browser, making it very narrow 
>> and have the text somehow wrap according to the browser size instead 
>> of the element its in.
>>     
>
> No. But if you want the width of that block of text to change size with 
> the window, why not just remove its fixed with entirely or set it in 
> percentages? 
You may also be looking for max-width rather than width. This will let 
the content contract to fit a smaller window, but still stop the the 
right point for the fixed/centered layout on a larger window.  You will 
need to apply hacks/workarounds for IE<7 which don't support max-width 
(see http://www.svendtofte.com/code/max_width_in_ie/ for one method).

-- 
Sophie Dennis, Creative Director
Cayenne Web Development Limited
www.cayenne.co.uk



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to