I want a floorplan image and display the temperature values in each room as simple text. Normal way would be using a SVG image but my main display is an old iPad which does not render dynamic content embedded in SVG code.
My work around would be a simple static image where on top I display some text elements.
My template so far:
<style>
body {
background-image: url('/images/floorplan.jpg');
background-size: auto;
background-position: center;
background-repeat: no-repeat;
align-items: center;
}
.container {
position: relative;
}
.text1 {
position: absolute;
top: 50px;
left: 100px;
font-size: 24px;
color: white;
}
.text2 {
position: absolute;
top: 150px;
left: 200px;
font-size: 18px;
color: white;
}
.text3 {
position: absolute;
top: 300px;
left: 50px;
font-size: 20px;
color: white;
}
</style>
<div class="container">
<div class="text1">This is the first text element.</div>
<div class="text2">This is the second text element.</div>
<div class="text3">This is the third text element.</div>
</div>
Access to the local image file is ok but it is hidden behind the (standard) dark background with the white text on top.
What style attribute lets the background image "shine thru"?