Materialarchiv: Unterschied zwischen den Versionen
Aus exmediawiki
Theo (Diskussion | Beiträge) |
Theo (Diskussion | Beiträge) |
||
| Zeile 10: | Zeile 10: | ||
<!-- Image Block 1 --> | <!-- Image Block 1 --> | ||
<div style="flex: 0 0 calc(20% - 1em);"> | <div style="flex: 0 0 calc(20% - 1em);"> | ||
<div class="collapsible" style="cursor: pointer; border: 1px solid #ccc; padding: 0.5em; border-radius: 8px; | <div class="collapsible"> | ||
<input type="checkbox" id="toggleGestein"> | |||
<label for="toggleGestein" style="cursor: pointer; border: 1px solid #ccc; padding: 0.5em; border-radius: 8px; font-weight: bold; text-align: center;">Gestein</label> | |||
<div class="collapsible-content" style="display: none; text-align: center;"> | <div class="collapsible-content" style="display: none; text-align: center;"> | ||
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6e/Test_image1.jpg" alt="Gestein" style="max-width: 100%; height: auto;"> | <img src="https://upload.wikimedia.org/wikipedia/commons/6/6e/Test_image1.jpg" alt="Gestein" style="max-width: 100%; height: auto;"> | ||
| Zeile 20: | Zeile 21: | ||
<!-- Image Block 2 --> | <!-- Image Block 2 --> | ||
<div style="flex: 0 0 calc(20% - 1em);"> | <div style="flex: 0 0 calc(20% - 1em);"> | ||
<div class="collapsible" style="cursor: pointer; border: 1px solid #ccc; padding: 0.5em; border-radius: 8px; | <div class="collapsible"> | ||
<input type="checkbox" id="toggleHolz"> | |||
<label for="toggleHolz" style="cursor: pointer; border: 1px solid #ccc; padding: 0.5em; border-radius: 8px; font-weight: bold; text-align: center;">Holz</label> | |||
<div class="collapsible-content" style="display: none; text-align: center;"> | <div class="collapsible-content" style="display: none; text-align: center;"> | ||
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6e/Test_image1.jpg" alt="Holz" style="max-width: 100%; height: auto;"> | <img src="https://upload.wikimedia.org/wikipedia/commons/6/6e/Test_image1.jpg" alt="Holz" style="max-width: 100%; height: auto;"> | ||
| Zeile 30: | Zeile 32: | ||
<!-- Image Block 3 --> | <!-- Image Block 3 --> | ||
<div style="flex: 0 0 calc(20% - 1em);"> | <div style="flex: 0 0 calc(20% - 1em);"> | ||
<div class="collapsible" style="cursor: pointer; border: 1px solid #ccc; padding: 0.5em; border-radius: 8px; | <div class="collapsible"> | ||
<input type="checkbox" id="toggleTierischeWerkstoffe"> | |||
<label for="toggleTierischeWerkstoffe" style="cursor: pointer; border: 1px solid #ccc; padding: 0.5em; border-radius: 8px; font-weight: bold; text-align: center;">Tierische Werkstoffe</label> | |||
<div class="collapsible-content" style="display: none; text-align: center;"> | <div class="collapsible-content" style="display: none; text-align: center;"> | ||
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6e/Test_image1.jpg" alt="Tierische Werkstoffe" style="max-width: 100%; height: auto;"> | <img src="https://upload.wikimedia.org/wikipedia/commons/6/6e/Test_image1.jpg" alt="Tierische Werkstoffe" style="max-width: 100%; height: auto;"> | ||
| Zeile 40: | Zeile 43: | ||
</div> | </div> | ||
< | <style> | ||
.collapsible input[type="checkbox"] { | |||
display: none; /* Hide the checkbox */ | |||
} | |||
.collapsible input[type="checkbox"]:checked + label + .collapsible-content { | |||
display: block; /* Show the content when the checkbox is checked */ | |||
} | |||
.collapsible .collapsible-content { | |||
display: none; /* Hide the content by default */ | |||
} | |||
</style> | |||
} | |||
</ | |||
=== Synthetic materials === | === Synthetic materials === | ||
Version vom 14. Mai 2025, 14:46 Uhr
Materials
Natural materials
<input type="checkbox" id="toggleGestein">
<input type="checkbox" id="toggleHolz">
<input type="checkbox" id="toggleTierischeWerkstoffe">
<style>
.collapsible input[type="checkbox"] {
display: none; /* Hide the checkbox */
}
.collapsible input[type="checkbox"]:checked + label + .collapsible-content {
display: block; /* Show the content when the checkbox is checked */
}
.collapsible .collapsible-content {
display: none; /* Hide the content by default */
}
</style>