I am facing an issue on my webpage where the title is too long and it goes out of the page on mobile devices.
Here is an example:
<div class="module-head"><h3 class="module-head-title">Search Engine Optimization - Why Is It Worth It?</h3></div>
.module-head {
text-align: left;
/*position: relative;*/
margin: 40px 0;
}
.module-head-title {
color: var(--main_purple_color);
font-weight: 800;
font-size: 2.5rem;
display: inline-block;
}
.module-head:after {
content: "";
display: block;
background: var(--main_red_color);
width: 220px;
max-width: 260px;
height: 3px;
}
Here is a photo illustrating the problem: https://i.sstatic.net/Vsumx.jpg
What should be done if I prefer not to reduce the font size?