As a beginner in CSS, I am encountering an issue where the text and images on my website get distorted when I resize the window. How can I resolve this?
HTML
<img src="images\titles_03.jpg" class="tt1" >
<img src="images\titles_05.jpg" class="tt2" >
<img src="images\titles_07.jpg" class="tt3" >
CSS
.tt1 {
position:absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: 759px;
top: 200px;
}
.tt2 {
position:absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
top: 200px;
}
.tt3 {
position:absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: -759px;
top: 200px;
}
This excerpt is part of the code causing the issue.