Простая версия
HTML:
<span class="me-square">
<div class="me-wrapper">
<h3>ABOUT ME</h3>
<p>My name is Katrine, but my friends call me Mira. I’m 20 years old and I live in Denmark.
<p id="me-2ndtext">I want this text to only show when the screen is 600 or over</p>
</div>
</span>
CSS:
@media screen and (max-width: 599px) {
p#me-2ndtext {
display: none;
}
}
Или когда все умножив второй абзац, вы можете сделать это следующим образом:
Тогда вам не нужен дополнительный идентификатор.
HTML:
<span class="me-square">
<div class="me-wrapper">
<h3>ABOUT ME</h3>
<p>My name is Katrine, but my friends call me Mira. I’m 20 years old and I live in Denmark.
<p>I want this text to only show when the screen is 600 or over</p>
</div>
</span>
CSS:
@media screen and (max-width: 599px) {
p:nth-of-type(2) {
display: none;
}
}