Witam. Mam za zadanie napisać własną stronę internetową ale mam problem z jej układem, a mianowicie na moim głównym ekranie wszystko jest w porządku ale gdy przesunę okno przeglądarki na drugi ekran wszystko ma zmienione rozmiary. Wiem że trzeba podać wielkości jakoś w procentach ale kompletnie mi to nie idzie. Czy ktoś mógłby mi pomóc? Proszę o instrukcję jak dla małego dziecka

function Rozmiar()
{
document.getElementById("lcd").height="894";
document.getElementById("lcd").width="1391";
document.getElementById("lcd").style.margin = "0px 0px 0px 250px";
}
function Powrot()
{
document.getElementById("lcd").height="89.4";
document.getElementById("lcd").width="131";
document.getElementById("lcd").style.margin = "0px 0px 0px 500px";
}
function Rozmiar2()
{
document.getElementById("lcd_i2c").height="672";
document.getElementById("lcd_i2c").width="1183";
document.getElementById("lcd_i2c").style.margin = "0px 0px 0px 250px";
}
function Powrot2()
{
document.getElementById("lcd_i2c").height="89.4";
document.getElementById("lcd_i2c").width="131";
document.getElementById("lcd_i2c").style.margin = "0px 0px 0px 500px";
}
function Rozmiar3()
{
document.getElementById("ultrasonic").height="831";
document.getElementById("ultrasonic").width="1015";
document.getElementById("ultrasonic").style.margin = "0px 0px 0px 250px";
}
function Powrot3()
{
document.getElementById("ultrasonic").height="89.4";
document.getElementById("ultrasonic").width="131";
document.getElementById("ultrasonic").style.margin = "0px 0px 0px 500px";
}
<body background="lay.png" style=" background-size: 100% auto;"> <hr align = "center" width = "50%"> <p style="color:white; font-size:50; " align = "center"><b>ARDUINO
</b></p> <hr align = "center" width = "50%"> <p style="color:white; margin-left: 500; font-size:26;">Schematy i biblioteki
</p> <ul style="color:white; font-size:22; margin-left: 500;"> <li><a href = "./zalaczniki/LCD_Counter_I2C_short.ino" style="color:inherit; text-decoration: none;" download>Bez magistrali I2C
</a></li> <li><a href = "./zalaczniki/Miernik_swiatla_z_LCD.ino" download style="color:inherit; text-decoration: none;">Z magistralą I2C
</a></li> <li><a href = "./zalaczniki/Ultrasonic_Sensor_and_buzzer.ino" download style="color:inherit; text-decoration: none;">Ultra Sonic Sensor
</a></li>
<hr align = "center" width = "50%">
<img src = "./zalaczniki/LCD.jpg" id="lcd" width = "131,9" height = "89,4" style="margin-left: 500;" onmouseover="Rozmiar()" onmouseout="Powrot()"> <p style=" color:white; float: right; margin-right: 1000; font-size:26;">LCD
</p> <img src = "./zalaczniki/LCD i2c.jpg" id="lcd_i2c" width = "131,9" height = "89,4" style="margin-left: 500;" onmouseover="Rozmiar2()" onmouseout="Powrot2()"> <p style=" color:white; float: right; margin-right: 1000; font-size:26;">LCD I2C
</p> <img src = "./zalaczniki/6.jpg" id="ultrasonic" width = "131,9" height = "89,4" style="margin-left: 500;" onmouseover="Rozmiar3()" onmouseout="Powrot3()"> <p style=" color:white; float: right; margin-right: 1000; font-size:26;">UltraSonic Sensor
</p>