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)
(kein Unterschied)

Version vom 29. Mai 2023, 14:51 Uhr

 <img src="" alt="">

<style> .bild-container {

 position: relative;

}

.bild-container::before {

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

} </style>