size attribute (hr)
Sets the height of the horizontal rule.
This attribute is deprecated. Use style properties (background, color, height ...) to manipulate line styling more efficiently.
JavaScript page for this attribute: size. You can find other example(s) there. |
Possible values:
String that sets the height of the rule, with an integer optionally followed by a 'px' (pixel) unit designator.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the size attribute:
|
||||
line with size="5" : <hr size="5" style="width:50%; text-align:center;" /> line with size="20" : <hr size="20" style="width:50%; text-align:center;" /> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
Recommendation:
|
||||
line with height 5 : <hr style="height:5px; width:50%; text-align:center;" /> line with height 20 : <hr style="height:20px; width:50%; text-align:center;" /> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
Related pages:
External links:
User Contributed Comments