--- html ---
Random Index
czerwony
niebieski
zielony
--- css ---
div.czerwony {
border-style: solid;
background-color: red;
width: 100px;
height: 100px;
left:50%;
top:50%;
transform: translate(-50%,-50%);
position: absolute;
}
div.niebieski {
border-style: solid;
background-color: blue;
width: 100px;
height: 100px;
left:50%;
top:50%;
transform: translate(10%,10%);
position: absolute;
}
div.zielony {
border-style: solid;
background-color: green;
width: 100px;
height: 100px;
left:50%;
top:50%;
transform: translate(108%,44%);
position: absolute;
}