search

Home  >  Q&A  >  body text

Spades, Diamonds, Hearts, Clubs => styles do not change font color in Chrome for Android

<p>In Google Chrome on Windows, card suit symbols (spades, hearts, diamonds, clubs) are colored correctly using the "style" attribute. Unfortunately, the same page displayed in Google Chrome on Android does not display the colors I defined but uses the default black and red. (See the attached picture for the effect)</p> <p>HTML code: (and link to the project https://stackblitz.com/edit/web-platform-z2cs3t?file=index.html)</p> <pre class="brush:php;toolbar:false;"><span style="color: #114bb8">♠ spades</span><br /> <span style="color: #f10d0d">♥ hearts</span><br /> <span style="color: #ff9100">♦ diamonds</span><br /> <span style="color: #0da510">♣ clubs</span><br /></pre> <ol> <li><p>Is it possible to somehow force Google Chrome to display a selected color on Android? </p> </li> <li><p>I also want to understand why Chrome on Android uses predefined colors and I don't accept user colors. </p> </li> </ol></p>
P粉896751037P粉896751037446 days ago740

reply all(1)I'll reply

  • P粉550823577

    P粉5508235772023-09-06 10:17:14

    AStombaugh wrote: Answers to similar questions that may be helpful: Change the font color of HTML symbols

    Works for me:

    span {
      color: transparent;
      text-shadow: 0 0 0 rgb(0, 128, 0);
    }
    <span>&#9899;</span>

    Thanks.

    reply
    0
  • Cancelreply