Previous Message
Next Message

Float widths (was page check please (1))

Sent by Zoe M. Gillenwater on 29 November 2004 18:06


Syntactic: Jim Wilkinson wrote:

> Thanks liorean and Zoe but I'm more confused than ever! I can see 
> that  "shrinkwrapping" is an appropriate description if, say, the 
> float contains  an image. But if it contains only text then 
> shrinkwrapping would give the  float the width of the longest word, 
> which would look silly. 


Nope.  In this case, the paragraph within has 100% width.  So the float, 
if it has enough text in it, will display at 100%, even though it is 
still shrinkwrapping.  You can see this effect by creating a float and 
just placing one word in it.  The float will only be as wide as that 
word.  Add another word, and the float expands to hold both words.  
Etc.  Here's a page that demonstrates this:

http://www.pixelsurge.com/experiment/temp-jim.htm

> If not, I will want to stick to  specifying my float widths explicitly!
>

This is always the best idea regardless.  If you can add a width to a 
float, it's almost always best to do so, just to assure the widest 
compatibility.

Zoe

-- 
Zoe M. Gillenwater
Design Specialist
Highway Safety Research Center
http://www.hsrc.unc.edu

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: