zoom property
Specifies the zoom level of the element's content.
There isn't any similar property in Firefox and Opera.
Only the size of text can be changed with the font-size property.
JavaScript page for this property: zoom. You can find other example(s) there. |
Possible values:
One of the following values:
Floating-point number, the zoom level. | |||||||
Default. No magnification is applied. Same as 1.0. | |||||||
The zoom level is the specified percentage of the magnification scale. The 100% is the normal zoom level. |
Default: normal.
Example HTML code 1:
This example illustrates the use of the zoom property:
|
||||
<head> <style> .zoom50 { zoom: 50%; background-color: #00F9F9; width: 80px; height: 80px; } .zoom100 { zoom: 100%; background-color: #00F9F9; width: 80px; height: 80px; } </style> </head> <body> <div class="zoom50">zoom 50%</div> <div class="zoom100">zoom 100%</div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, applet, b, bdo, big, blockQuote, body, button, caption, center, cite, code, col, colGroup, dd, del, dfn, dir, div, dl, dt, em, embed, fieldSet, font, form, frame, frameSet, H1, H2, H3, H4, H5, H6, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:image, input:password, input:radio, input:range, input:reset, input:search, input:submit, input:text, ins, isIndex, kbd, label, legend, li, listing, marquee, menu, nobr, object, ol, p, pre, q, rt, ruby, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tr, tt, u, ul, var, xmp
Related pages:
External links:
User Contributed Comments