-moz-margin-start property | -webkit-margin-start property
-moz-margin-start: | ||||||
-webkit-margin-start: |
Specifies the width of the left or the right margin, depends on the writing direction.
If the writing direction is set to left-to-right, use the margin-left property, else use the margin-right property for cross-browser compatibility.
JavaScript page for this property: MozMarginStart | webkitMarginStart. You can find other example(s) there. |
Possible values:
One of the following values:
Default. The sizes of the 'auto' margins are equal. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
The width of the margin in length units. For the supported length units, see the length page. | |||||||
The width is the specified percentage of the width of the parent element. |
Default: 0.
Example HTML code 1:
This example illustrates the use of the -moz-margin-start and the -webkit-margin-start properties:
|
||||
<head> <style> .ltr { direction: ltr; border: 2px solid red; -moz-margin-start : 20px; -webkit-margin-start : 20px; } .rtl { direction: rtl; border: 2px solid red; -moz-margin-start : 20px; -webkit-margin-start : 20px; } </style> </head> <body> <a style="border: 2px solid green;">previous object</a> <a class="ltr">margin-start: 20px (ltr)</a> <a style="border: 2px solid green;">next object</a> <br /><br /> <a style="border: 2px solid green;">previous object</a> <a class="rtl">margin-start: 20px (rtl)</a> <a style="border: 2px solid green;">next object</a> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, applet, b, bdo, big, blink, blockQuote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, embed, fieldSet, font, form, H1, H2, H3, H4, H5, H6, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:image, input:password, input:radio, input:reset, input:submit, input:text, ins, isIndex, kbd, label, legend, li, marquee, menu, object, ol, optGroup, option, p, pre, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tr, tt, u, ul, var, input:range, input:search, q, xmp
Related pages:
External links:
User Contributed Comments