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.
- Alphabetic
- By Inheritance
- width
- Attr
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type attrType = _width_attr.type
- Definition Classes
- width → Attr
- type supports[T <: Tag] = (AttrPair[attrType]) => AttrPair[core.Attr.supports.T.tagType]
- Definition Classes
- Attr
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def :=(v: Option[String]): OptionalAttrPair[_width_attr.type]
- Annotations
- @inline()
- def :=(v: String): AttrPair[_width_attr.type]
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- implicit object tag extends TagElement