Yep the width element can be used on block-level and replaced elements (eg HTML, IMG, INPUT, TEXTAREA, SELECT, and OBJECT element)
from: http://www.w3.org/TR/REC-CSS2/conform.html Replaced element An element for which the CSS formatter knows only the intrinsic dimensions. In HTML, IMG, INPUT, TEXTAREA, SELECT, and OBJECT elements can be examples of replaced elements. For example, the content of the IMG element is often replaced by the image that the "src" attribute designates. CSS does not define how the intrinsic dimensions are found. cheers ad On 3/6/06, Martin Olsson <[EMAIL PROTECTED]> 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/
