Line 1: | Line 1: | ||
{{:Team:UChile_Biotec/css}} | {{:Team:UChile_Biotec/css}} | ||
<html> | <html> | ||
− | + | <style> | |
− | < | + | .textOverImage{ |
− | + | width:200px; | |
− | + | height:200px; | |
− | + | display:inline-block; | |
− | + | background-size:cover; | |
− | + | border-radius:4px; | |
− | + | margin:4px; | |
− | + | position:relative; | |
− | + | cursor:pointer; | |
− | + | overflow:hidden; | |
− | + | } | |
− | + | ||
− | + | .textOverImage > input{ | |
− | </ | + | display:none; |
− | + | } | |
− | + | ||
− | + | .textOverImage > div,.textOverImage > h2{ | |
− | < | + | position:absolute; |
− | < | + | background-color:rgba(255,255,255,0.8); |
− | < | + | bottom:20px; |
− | < | + | left:4px; |
− | + | right:4px; | |
− | < | + | border-radius:4px; |
− | + | padding:8px; | |
− | + | overflow:hidden; | |
− | + | opacity:0; | |
− | < | + | transition:.3s; |
− | < | + | } |
− | </div> | + | |
− | </ | + | .textOverImage:hover > h2,.textOverImage > input:checked + h2 + div{ |
+ | bottom:4px; | ||
+ | opacity:1; | ||
+ | } | ||
+ | |||
+ | .textOverImage > input:checked + h2{ | ||
+ | bottom:-20px; | ||
+ | opacity:0; | ||
+ | } | ||
+ | |||
+ | .textOverImage > h2{ | ||
+ | margin:0; | ||
+ | } | ||
+ | |||
+ | </style> | ||
+ | |||
+ | <label class="textOverImage" style="background-image:url(https://web.opendrive.com/api/v1/download/file.json/NTlfNDgyMTkzNl8?inline=1)"> | ||
+ | <input type="checkbox"> | ||
+ | <h2>Grapes</h2> | ||
+ | <div> | ||
+ | Grapes can be eaten fresh as table grapes or they can be used for making wine, jam, juice, jelly, grape seed extract, raisins, vinegar, and grape seed oil | ||
+ | </div> | ||
+ | </label> | ||
+ | <label class="textOverImage" style="background-image:url(https://web.opendrive.com/api/v1/download/file.json/NTlfNDgyMDc3MV8?inline=1)"> | ||
+ | <input type="checkbox"> | ||
+ | <h2>Raspberry</h2> | ||
+ | <div> | ||
+ | The raspberry is the edible fruit of a multitude of plant species in the genus Rubus of the rose family, most of which are in the subgenus Idaeobatus; the name also applies to these plants themselves. | ||
+ | </div> | ||
+ | </label> | ||
</html> | </html> |
Revision as of 20:53, 26 September 2018