locked
CSS - different styles for chinese and english RRS feed

  • Question

  • User363578564 posted

    Possible to easily set a mixed text of different fonts (Chinese and English) at different letter-spacing?

    Otherwise I have to do piece by pieced.  Thanks a lot.

    Friday, June 29, 2018 4:08 AM

All replies

  • User36583972 posted


    Hi TW88,

    Possible to easily set a mixed text of different fonts (Chinese and English) at different letter-spacing?

    Otherwise I have to do piece by pieced.  Thanks a lot.

    The letter-spacing CSS property specifies the spacing behavior between text characters. As far as I know, there is no a way to easily set a mixed text of different fonts (Chinese and English) at different letter-spacing.

    You can try to do a piece by pieced.

     <style>
            p {
                font-family: sans-serif;
                font-size: 2em;
                color: limegreen;
            }
    
            .wide-tracking {
                letter-spacing: 1em;
                 font-size: 3em;
            }
    
            .narrow-tracking {
                letter-spacing: -0.1em;
            }
        </style>
    
     <p>Normal text<b class="wide-tracking">中文</b><b class="narrow-tracking">Narrow letter spacing</b></p>
    

    Best Regards,

    Yong Lu

    Monday, July 2, 2018 2:32 AM
  • User363578564 posted

    Thanks a lot.

    I also think so

    Wednesday, July 4, 2018 8:41 AM