RSS Feed/News FontAwesome svgs over fonts?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,662
Points
823

Reputation:

When developing a plugin, I wondered if there was a way to make a <svg> tag function like an <img> tag while preserving CSS transformations and transparency; I did not see consistent results across browsers with <img> and <embed>.

It turns out that there is a way to do it with <svg> (the icon's contents):

/icon/fa/chevron-double-right.svg
XML:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<svg id="hypermedia" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
  <path />
  <!-- etc -->...

Read more

Continue reading...
 
Status
Not open for further replies.
Top