CSS Language Notes<2>_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:46:54
Original
1544 people have browsed it

CSS properties

Size properties

Any html element has width and height. In CSS, px is used to represent the size, and the percent sign "%" can also be used.

px: pixels

width: width

height: height

border: border

padding: padding

margin: margin

backgroun: background

font attribute

font-family: set font

font-weight: thickness, value: bold (bold)

font-style: italic, value: italic (italic)

font-size: text size

font: abbreviated form

Text attributes

color: color, value: can be word, decimal, hexadecimal

text-align: horizontal alignment of text, value: left (left), center ( Center), right (right)

text-decoration: text decoration line, value: none (none), underline (underline), overline (overline), line-through (a line through the text )

text-indent: First line indent, expressed in pixels, such as: text-indent:24px; indent 24 pixels.

Letter-spacing: word spacing, same as above, expressed in pixels.

line-height: Line height, same as above, can be expressed in percentage or pixels.

To be continued....

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template