I am currently gaining experience by working on a website, but I am facing some challenges in making changes specifically for the mobile version. Here is an example:
<h1 class="intro-header__title">
<span>Are you ready to</span> Expand your horizon
</h1>
For CSS adjustments on the desktop version, I have made the following changes:
.intro-header__title {
font-size: 2.6rem;
font-weight: 700;
margin-bottom: 15px;
}
Now, I want to hide a certain part on the mobile version:
<span>Are you ready to</span>
To achieve this, I attempted the following:
@media (min-width: 768px){
.intro-header__title {
display:none;
}
}
@media (min-width: 960px){
.intro-header__title {
display:none;
}
}
Unfortunately, this approach does not seem to be effective. I am encountering similar issues with text that appears compressed on the mobile version. I would like to modify the borders solely for the mobile version without affecting the desktop version. Here is an illustration of the current appearance (compressed text due to borders):