width

slinky.web.html.width$
object width extends Attr

th - This attribute is used to define a recommended cell width.  Additional space can be added with the cellspacing and cellpadding properties and the width of the <col> element can also create extra width. But, if a column's width is too narrow to show a particular cell properly, it will be widened when displayed.

Usage Note: Do not use this attribute in the latest standard: use the CSS width property instead. object - The width of the display resource, in CSS pixels.  -- (Absolute values only.  NO percentages) col, colgroup - This attribute specifies a default width for each column in the current column group. In addition to the standard pixel and percentage values, this attribute might take the special form 0/, which means that the width of each column in the group should be the minimum width necessary to hold the column's contents. Relative widths such as 0.5/ also can be used. video - The width of the video's display area, in CSS pixels.  -- (Absolute values only.  NO percentages) td - This attribute is used to define a recommended cell width.  Properties cellspacing and cellpadding may add additional space, and element <col> width may also have some effect. In general, if a column's width is too narrow to show a particular cell properly, it, and thus the cells in it, may be widened when displayed.

Note: Do not use this attribute in the latest standard: instead set the CSS width property. iframe - Indicates the width of the frame HTML5 in CSS pixels, or HTML 4.01 in pixels or as a percentage. canvas - The width of the coordinate space in CSS pixels. Defaults to 300. pre - Contains the preferred count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS width instead. hr - Sets the length of the rule on the page through a pixel or percentage value. img - The intrinsic width of the image in pixels. In HTML 4, either a percentage or pixels were acceptable values. In HTML5, however, only pixels are acceptable. table - This attribute defines the width of the table. The width may be defined by pixels or a percentage value. A percentage value will be defined by the width of the container in which the table is placed.

Usage Note: Do not use this attribute, as it has been deprecated. The rules should be defined and styled using CSS. Use the width property instead. embed - The displayed width of the resource, in CSS pixels.  -- (Absolute values only.  NO percentages) input - If the value of the type attribute is image, this attribute defines the width of the image displayed for the button.

Attributes

Graph
Supertypes
trait Attr
class Object
trait Matchable
class Any
Self type
width.type

Members list

Concise view

Type members

Classlikes

object tag extends TagElement

Attributes

Graph
Supertypes
class TagElement
class Object
trait Matchable
class Any
Self type
tag.type

Types

type attrType = _width_attr.type

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]

Attributes

Inherited from:
Attr

Value members

Concrete methods

def :=(v: String): AttrPair[_width_attr.type]
def :=(v: Option[String]): OptionalAttrPair[_width_attr.type]