Media Query, trying to turn text into icon.

Hey guys I am going thorugh a web development bootcamp and I am not getting any help from my mentor. I am trying to turn the "Search" text from the search bar into a magnifying glass when the width of the screen is 767 or less. This is the last hurdle I have to get over and the website is done any ideas, links anything would be very appreciated.
No description
3 Replies
Zoë
Zoë14mo ago
The simplest is to have an element containing the text and an element for the icon. Make the text default with icon as display none, and then when the screen is narrow make the text display none
Flaviu
FlaviuOP14mo ago
I'll give that a shot in a few minutes, thanks for the quick answer.
Flaviu
FlaviuOP14mo ago
ProblemSolver, you defenetly live to your name, thank you so much for the help I have been stuck on that for way to long for such a simple solution 😅
No description
Want results from more Discord servers?
Add your server