HTML CSS Reference/HTML Attributes Reference/width

Материал из Web эксперт
Версия от 11:20, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"width" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For width</Title></head> <BODY>

This text is embedded between pretags.

</BODY> </HTML>


     </source>
   
  


width is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<applet> <col> | | |<colgroup> <embed> | | |<frame> <frameset> |

| |
<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> |

| |
                           <spacer>                      |
|                |                          |

+----------------+--------------------------------------------------------------+

     </source>
   
  


width Possible Values

   <source lang="html4strict">

Possible Values integer Specifies the width of an element in pixels integer% Specifies the percentage of the parent element"s width


     </source>
   
  


"width" Syntax and Note

   <source lang="html4strict">

Note:

This attribute determines the width of an element.

Syntax:

<element width="value"> . . . </element>


</source>
| | |