Previous Message
Next Message

when is css width applicable?

Sent by Adam McGrath on 6 March 2006 16:04


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-REMOVED]> 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-REMOVED]]
> 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-REMOVED]]
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/
Previous Message
Next Message

Message thread: