Vorlage:Bildhintergrund: Unterschied zwischen den Versionen

Aus Tom's Wiki
Zur Navigation springenZur Suche springen
(Die Seite wurde neu angelegt: „<div class="bild-container"> <img src="{{{Bild|}}}" alt="{{{Alttext|}}}"> </div> <style> .bild-container { position: relative; } .bild-container::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url("{{{Bild|}}}"); background-size: cover; opacity: 0.5; →‎Passen Sie die Deckkraft nach Bedarf an: } </style> Kategorie:Vorlagen)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<div class="bild-container">
<div class="bild-container">
   <img src="{{{Bild|}}}" alt="{{{Alttext|}}}">
   <img src="[[Datei:{{{Bild|}}}|frameless|upright=1.0]]" alt="{{{Alttext|}}}">
</div>
</div>


Zeile 15: Zeile 15:
   right: 0;
   right: 0;
   bottom: 0;
   bottom: 0;
   background-image: url("{{{Bild|}}}");
   background-image: url([[Datei:{{{Bild|}}}]]);  
   background-size: cover;
   background-size: cover;
   opacity: 0.5; /* Passen Sie die Deckkraft nach Bedarf an */
   opacity: 0.5; /* Passen Sie die Deckkraft nach Bedarf an */
}
}
</style>
</style>
[[Kategorie:Vorlagen]]

Version vom 29. Mai 2023, 14:54 Uhr

 <img src="[[Datei:|frameless|upright=1.0]]" alt="">

<style> .bild-container {

 position: relative;

}

.bild-container::before {

 content: "";
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background-image: url([[Datei:]]); 
 background-size: cover;
 opacity: 0.5; /* Passen Sie die Deckkraft nach Bedarf an */

} </style>