skip to Main Content

Convert SVG link to the format in css

I have css like this below, background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%20%3Cpath%20d%3D%22M23.7%2020.8%2019%2016.1c-.2-.2-.5-.3-.8-.3h-.8c1.3-1.7%202-3.7%202-6C19.5%204.4%2015.1%200%209.7%200S0%204.4%200%209.7s4.4%209.7%209.7%209.7c2.3%200%204.3-.8%206-2v.8c0%20.3.1.6.3.8l4.7%204.7c.4.4%201.2.4%201.6%200l1.3-1.3c.5-.5.5-1.2.1-1.6zm-14-5.1c-3.3%200-6-2.7-6-6s2.7-6%206-6%206%202.7%206%206-2.6%206-6%206z%22%20fill%3D%22%23767d83%22%3E%3C%2Fpath%3E%20%3C%2Fsvg%3E'); It shows the magnifying glass icon. Now I want to change this icon to home button. I can find the icon on fontawesome page and get the link <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0…

VIEW QUESTION

Html – Fontawesome svg-icons in openlayers

I know similar questions have been asked before but their answers don't help me. I'm trying to use Fontawesome-Icons as markers in an Openlayers map like this: const svg = ` <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--!Font Awesome Free 6.5.2…

VIEW QUESTION

Html – When clicked on Font Amesome icon, the hyperlink doesn't work

The website is https://alloutcreative.com/ This is the code: <div class="mil-team-card mil-up mil-mb-30"> <img src="img/faces/Eugen.jpg" alt="Team member"> <div class="mil-description"> <div class="mil-secrc-text"> <h5 class="mil-muted mil-mb-5">Eugen Kelemen</a></h5> <p class="mil-link mil-light-soft mil-mb-10">Founder, CEO, Videography, Photography, Visual Effects</p> <ul class="mil-social-icons mil-center"> <li><a href="https://www.instagram.com/eugen.jk/" target="_blank" class="social-icon">…

VIEW QUESTION
Back To Top
Search