Control content of <p> with JS when screen is too tide | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Control content of <p> with JS when screen is too tide

How to hide or change paragraph text of HTML Tag like <p> with JavaScript when apply @media with css to change the appearance of website

15th Sep 2018, 8:54 AM
Hady Shendy
Hady Shendy - avatar
2 Answers
+ 3
Use matchMedia Check out the example here. Try test with different phone orientation. https://code.sololearn.com/WBKZ4jpDuwzB/?ref=app
15th Sep 2018, 11:08 AM
Calviղ
Calviղ - avatar
15th Sep 2018, 9:54 AM
Janning⭐
Janning⭐ - avatar