CSS fonts, font control

Source: Internet
Author: User
css| Control ★☆★ Use CSS you can control the font of the page arbitrarily, compared to the HTML is simply easy to know how much.

CSS uses the "Font-size" property to control the font size.

CSS can be used in the units: points, pixels and other units.


★ Use points (point):

td {FONT-SIZE:9PT}

Tell the browser to 9 points size display <TD> label characters, this page uses 9pt font, I think "song Body +9pt" is a very beautiful choice. Points is a unit that determines the size of the text, and it works on all browsers and operating platforms.

★ Use pixels (pixel):

td {FONT-SIZE:9PX}

The disadvantage of using "pixel" is that the page display is unstable, the font is large and small, and the use of points is not the problem.

In addition, you can use the following units:

In (inches)
CM (cm)
MM (mm)

★☆★ Font Control

{font-family:arial} You can set only one font.

{Font-family:arial,helvetica,sans-serif} You can also set a variety of fonts, which will find the display in font order.

{font-family: the "Courier New"} font name includes more than 2 words, use quotes.

★☆★ Font Weight Control

{Font-weight:bold} font bold, you can also use: Extra-light,light,demi-light,medium,demi-bold,bold,extra-bold and other parameters.

★☆★ Font Style control

{font-style:italic} to set font skew, you can use Normal,italic.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.