[css-d] when is css width applicable?

2006-03-06 Thread Martin Olsson
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

Re: [css-d] when is css width applicable?

2006-03-06 Thread Mark Stickley
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