javascript HR width

widthNN 6 IE 4 DOM 1  

Read/Write  

Provides the width of the rule either in pixels (as an integer) or a percentage (as a string) of the next outermost block-level container.

 
Example
 
document.getElementById("bar3").width = "70%";
 
Value

Integer (for pixels) or string (for pixels or percentage).

 
Default

100%


926,Nickname,Homepage or email,Comments here,Add comment