I'm developing an aplication which has boiler room schema like this one. https://www.solarfocus.com/website/var/tmp/image-thumbnails/0/390/thumb__product-detail-fancybox/schema_elegance_01.jpeg
I would ike that image is always taking 100% width but i don't know how to do it.
Also if image is resizable those position relative divs inside a div won't be placed correctly.
I would really need an advice.
HTML:
.boiler_room_image {
position: absolute;
background-image: url('images/boiler_room_schema.jpeg');
height: 700px;
width: 870px;
}
.HVAC_LINE1_TEMP_ACT {
position: relative;
top: 270px;
left: 270px;
font-weight: bold;
}
.HVAC_VALVE_01_STS {
position: relative;
top: 208px;
left: 710px;
font-weight: bold;
}
.HVAC_VALVE_02_STS {
position: relative;
top: 405px;
left: 165px;
font-weight: bold;
}
.HVAC_VALVE_03_STS {
position: relative;
top: 300px;
left: 710px;
font-weight: bold;
}
<div class="boiler_room_image">
<div class="HVAC_LINE1_TEMP_ACT">25.6°C</div>
<div class="HVAC_VALVE_01_STS">OFF</div>
<div class="HVAC_VALVE_02_STS">OFF</div>
<div class="HVAC_VALVE_03_STS">OFF</div>
</div>
With best regards, Jan