In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the relevant knowledge of "how to set letter spacing in css". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to set letter spacing in css" can help you solve the problem.
In fact, the method of setting letter spacing in css is very simple, you only need to use one property, and this is the letter-spacing property.
Let's take a look at the letter-spacing property and see how it sets the letter spacing.
The letter-spacing attribute controls the amount of space between each letter (a single character) in a given element or block of text. Values that support letter-spacing include font relative length values (em,rem), parent relative values (percentage), absolute values (px, pixels), and normal properties, which reset the default values of fonts.
It is recommended that you use font relative values to increase or decrease letter spacing appropriately through design or user behavior when the font size changes.
Let's look at the use of the letter-spacing attribute:
P {
/ * 16*0.0625=1px*/
Letter-spacing:0.0625em
}
The most important thing to note when using the letter-spacing property is that the specified value does not change the browser's default value, but rather adds the default spacing for browser applications (based on font metrics). The letter-spacing property also supports negative values, which reduces the appearance of the text rather than loosening it.
Let's take a look at the effect of setting the letter-spacing property:
Description:
1. Sub-pixel value: in most browsers, specifying a value less than 1px will cause the letter-spacing property not to be applied. Currently, both Firefox14+ and IE10 support sub-pixel layouts; Opera and WebKit do not.
2. The letter-spacing property can be animated by setting CSSTransitions.
3. One way to eliminate the white space between inline block elements is to set letter-spacing:-4px; on the parent container of the inline block element. Then, reset the letter-spacing:normal; on the child elements.
This is the end of the introduction to "how to set letter spacing in css". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.