I am a beginner and am having difficulty adjusting the font size. When the display resolution changes, the text exceeds the div limit. I would like, rather than going beyond the limit of the div, that the text would change the resolution according to the rest of the layout.
Screenshot
HTML:
<div class="sec" id="se">
<div class="title">
</div>
<img class="img" src="img/i.jpg">
<div class="secleft">
<div class="txt">
<p>LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT..</p>
<p>LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT..</p>
<p>LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT..</p>
<p>LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT..</p>
</div>
</div>
<div class="secright">
</div>
</div>
CSS:
.sec{
position: absolute;
height: 50%;
width: 100%;
background-color: #009fb2;
top: 75%;
}
.title{
position: absolute;
height: 15%;
width: 40%;
background-color: red;
top: 5%;
left: 30%;
}
.img{
position: relative;
width: 16%;
left: 42%;
top: 28%;
}
.secleft{
position: absolute;
height: 57%;
width: 30%;
background-color: #006672;
top: 28%;
left: 7%;
border-radius: 3px;
}
.txt{
position: absolute;
width: 100%;
height: 100%;
background-color: red;
}