TrevorR Posted March 20, 2021 Share Posted March 20, 2021 Hello, I have hereunder and I would like to have a loop icon instead of the text search. Exactly like this : https://codepen.io/huange/pen/rbqsD <input type="submit" value="<?php echo "search"; ?>" class="loop1" /> in CSS file (what I have tried): .loop1 { font-size: 0; } .loop1::before { content: "\f002"; font-family: FontAwesome; padding-right: 10px;} Another try (included style in HTML): <input type="submit" value="<?php echo '<i class="fa fa-search"></i>'; ?>" class="loop1" /> Both fail, thanks for any hint. Quote Link to comment https://forums.phpfreaks.com/topic/312338-loop-icon-for-php-search/ Share on other sites More sharing options...
Solution Moorcam Posted March 20, 2021 Solution Share Posted March 20, 2021 (edited) <input type="text" class="searchTerm" placeholder="What are you looking for?"> <button type="submit" class="searchButton"> <i class="fa fa-search"></i> </button> You need Font Awesome. If you have it, try the above. https://fontawesome.com/icons?d=gallery&p=2 Edited March 20, 2021 by DanEthical Quote Link to comment https://forums.phpfreaks.com/topic/312338-loop-icon-for-php-search/#findComment-1585236 Share on other sites More sharing options...
TrevorR Posted March 20, 2021 Author Share Posted March 20, 2021 Many thanks, it's working perfectly now ! Quote Link to comment https://forums.phpfreaks.com/topic/312338-loop-icon-for-php-search/#findComment-1585248 Share on other sites More sharing options...
Moorcam Posted March 23, 2021 Share Posted March 23, 2021 On 3/21/2021 at 1:29 AM, TrevorR said: Many thanks, it's working perfectly now ! You are very welcome. Quote Link to comment https://forums.phpfreaks.com/topic/312338-loop-icon-for-php-search/#findComment-1585290 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.