HTML CSS Reference/HTML Attributes Reference/width
Содержание
"width" Example
<HTML>
<head><Title>Example For width</Title></head>
<BODY>
<pre width="500" style="font-size:14pt;">This text is embedded between pretags.</pre>
</BODY>
</HTML>
width is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<applet> <col> |
| |<colgroup> <embed> |
| |<frame> <frameset> |
| |<hr> <iframe> |
| |<img> <input type="button"> |
| |<input type="checkbox"> <input type="file"> |
| |<inputtype="image"> <input type="password"> |
| |<input type="radio"> <input type="reset"> |
| |<input type="submit"> <input type="text"> |
| |<marquee> <object> |
| |<pre> <spacer> |
| |<table> <td> |
| |<th> <tr> |
+----------------+--------------------------------------------------------------+
width Possible Values
Possible Values
integer Specifies the width of an element in pixels
integer% Specifies the percentage of the parent element"s width
"width" Syntax and Note
Note:
This attribute determines the width of an element.
Syntax:
<element width="value"> . . . </element>