CSS text settings

Source: Internet
Author: User

CSS styles for commonly used text:

  • Color sets the colour of the text, such as: color:red;

  • Font-size set the size of the text, such as: font-size:12px;

  • font-family Set the text font, such as: font-family: ' Microsoft ya Black ';

  • Font-style Set the font tilt, such as: Font-style: ' normal '; Set no tilt, Font-style: ' Italic '; set text skew

  • Font-weight set the text whether bold, such as: Font-weight:bold; Set bold Font-weight:normal setting not bold

  • Font set several properties of the text at the same time, the order of writing has compatibility problems, it is recommended to write in the following order: font: Whether bold font size/line height, such as: Font:normal 12px/36px ' Microsoft Ya Black ';

  • Line-height set the line height of the text, such as: line-height:24px;

  • Text-decoration set the underline of the text, such as: Text-decoration:none; Remove the text underline

  • Text-indent set the first line of text indentation, such as: text-indent:24px; Set the first line of text indent 24px

  • Text-align Set Text horizontal alignment, such as Text-align:center set text to center horizontally

CSS text settings

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.