> Jonathan wrote:
[...]
>>
>> I have included my code example in this email and have also posted that at:
>> http://overheadgaragedoorstore.com/text-box-example.html
>>

Audra Coldiron replied:

> Hi Jonathan.  Welcome to the list.  Float is appropriate if you need to keep 
> it a
> "block" element.  However, with your example a "span" tag might work better 
> for you
> since it's an inline element by default and will "shrink wrap" the way you 
> want.
>
> With block elements you can set height, width, and margin as well as padding. 
>  However,
> if you float it you can only align to the left or right. With inline elements 
> you can
> only use padding but you can center the element within it's container.
>

@Audra:
I'm not quite sure what you are suggesting here, since Jonathan wanted
to shrink-wrap the element, not to centre it. He originally did use an
inline element but asked about using a block element (P or DIV).

Floated elements _behave_ as block boxes regardless of element type.
Although maybe that's your point? Or are you suggesting he reverts
to a SPAN to replace his original FONT element?

@Jonathan:
One thing I forgot in my previous post. I did have an issue with
Opera 9 when I used "float" to shrink wrap something. Adding 
"display: table;" to declarations for the floated element fixed it.

IE does not understand any of the "table" display properties, so is
unaffected by this addition.

Cordially,
David
--


______________________________________________________________________
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