Home > Article > Web Front-end > How to set the spacing between English letters in CSS_html/css_WEB-ITnose
How to set the spacing between English letters in CSS:
In the previous chapter, we have introduced how to use CSS to control the spacing between words. Let’s introduce it again. How to control the spacing between English letters. The code example is as follows:
<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <meta name="author" content="http://www.softwhy.com/" /> <title>蚂蚁部落</title> <style type="text/css">ul li{ font-size:12px; list-style:none;}.first{letter-spacing:4px;}.second{letter-spacing:8px;}.third{letter-spacing:12px;}</style></head><body><div> <ul> <li class="first">I am a good student</li> <li class="second">I am a good student</li> <li class="third">I am a good student</li> </ul></div></body></html>
The above code can set the spacing between the letters of the word.
The original address is: http://www.51texiao.cn/div_cssjiaocheng/2015/0503/601.html
The original address is: http://www.softwhy.com/