Width is only applied to block level elements as far as I know so  
you'll have to set display: block;

To fix the line clearing you should just have to float the element  
either left or right.

Hope that helps!

Mark

On 6 Mar 2006, at 12:13, Martin Olsson wrote:

> Hi,
>
> On which elements can I use the width property? It seems like some
> elements respond very nicely to setting "width: 100px" but other  
> elements
> just ignore it.
>
> Can I affect whether a given element respond to width somehow? I tried
> using "display:block" but this also seems to add a newline char  
> after the
> element which is not acceptable.
>
>
> regards,
> martin
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> IE7b2 testing hub -- 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/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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