Template:Box-shadow/doc: Difference between revisions
Template page
More actions
tt > code |
m this remark is pointless; every modern browser has supported the property for years now |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{TemplateBox | ||
<!-- | |1 = 1 | ||
|1label = X-offset | |||
|1d-en = Specify the offset of the shadow to the right of the element. Use negative value for a shadow to the left. | |||
|1aliases = <!-- List of aliases, separated by / (a slash) --> | |||
|1type = line | |||
|1def = 4px | |||
|1stat = optional | |||
|2 = 2 | |||
|2label = Y-offset | |||
|2d-en = Specify the offset of the shadow below the element. Use negative value for a shadow above. | |||
|2aliases = | |||
|2type = line | |||
|2def = 4px | |||
|2stat = optional | |||
=== | |3 = 3 | ||
|3label = blur radius | |||
|3d-en = The width of blurring added to the shadow border | |||
|3aliases = | |||
|3type = line | |||
|3def = 4px | |||
|3stat = optional | |||
|4 = 4 | |||
|4label = color | |||
|4d-en = CSS color of the shadow | |||
|4aliases = | |||
|4type = line | |||
|4def = #CCC | |||
|4stat = optional | |||
|name = box-shadow | |||
|desc = This template is a shortcut for producing shadows. It should be used in the style attribute of an HTML element (or wiki table etc.). | |||
* | |usage-notes = | ||
* | |namespace = | ||
|usergroup = | |||
|shorthand = | |||
=== | |mustbesubst = | ||
|setscats = | |||
|placement = | |||
|example = | |||
|example-value = | |||
|relieson = | |||
|seealso = | |||
* {{tl|border-radius}} | |||
* {{tl|linear-gradient}} | |||
* {{tl|radial-gradient}} | |||
|print = | |||
|type = | |||
|i18n-method = - | |||
|i18n-desc = | |||
|i18n-subpage = | |||
|i18n-mediawiki-msg = | |||
|useTemplateData = only | |||
}} | |||
== Example == | |||
* <code><div style="background-color: #FFFFDD; border: 1px solid #808000; padding: 5px; '''<nowiki>{{box-shadow}}</nowiki>'''">Lorem ipsum...</div></code> will produce a box with the default border shadow: | * <code><div style="background-color: #FFFFDD; border: 1px solid #808000; padding: 5px; '''<nowiki>{{box-shadow}}</nowiki>'''">Lorem ipsum...</div></code> will produce a box with the default border shadow: | ||
| Line 23: | Line 65: | ||
<div style="background-color: #FFFFDD; border: 1px solid #808000; padding: 5px; {{box-shadow|4px|4px|8px|#A0A080}}">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div> | <div style="background-color: #FFFFDD; border: 1px solid #808000; padding: 5px; {{box-shadow|4px|4px|8px|#A0A080}}">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div> | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES | <!-- CATEGORIES HERE, THANKS --> | ||
[[Category:Cross-browser compatibility templates]] | [[Category:Cross-browser compatibility templates]] | ||
</includeonly> | </includeonly> | ||