De Wiki @ Brest
Ligne 4 : | Ligne 4 : | ||
margin:.5em 10px .5em 0; | margin:.5em 10px .5em 0; | ||
overflow:hidden; /* this is important */ | overflow:hidden; /* this is important */ | ||
− | |||
border:1px solid #ccc; | border:1px solid #ccc; | ||
− | |||
− | |||
} | } | ||
+ | /* input values to crop the image: top, right, bottom, left */ | ||
.crop img{ | .crop img{ | ||
− | + | margin:-20px -15px -40px -55px; | |
− | + | ||
− | + | ||
} | } | ||
}}<includeonly>{{#ifeq: {{{file}}} | Oui | }}<includeonly>{{#ifeq: {{{file}}} | Oui |
Version du 11 juillet 2013 à 12:24
{{#css: .crop{ float:left; margin:.5em 10px .5em 0; overflow:hidden; /* this is important */ border:1px solid #ccc; } /* input values to crop the image: top, right, bottom, left */ .crop img{ margin:-20px -15px -40px -55px; } }}
| ||||
|
[edit] Description: Arguments:
Usage: |