CSS knowledge commonly used in web authoring

Source: Internet
Author: User
Tags set background

In the production of Web pages, we will use a lot of CSS knowledge, here I briefly summed up some.

DIV partitioning block

Ul,li unordered table (with partitioned chunks)

Ol,li ordered list

A hyperlink label

P paragraph Label

H Title Tag

IMG Inserts a picture into the Web page

Input box

Text-align:center Text Center

Text-decoration:none to underline

List-style:none Remove list prefixes

The Display:block becomes a block-level element, and then you can set the width-height ones.

Float:left the element to the left floats, you can make multiple block-level elements on one line

Clear:both clear float to prevent other bad changes caused by floating

Overflow:hidden triggers BFC to prevent child floats from affecting the parent

Position:relative relative positioning

Position:absolute Absolute Positioning

position:fixed fixed positioning

Border border, can be set wide, style and color, etc.

Outline:none to outline, usually to go button the outline of buttons

padding inner margin

margin outer margin

Background to set background properties

Vertical-align:bottom Text Horizontal Alignment

Display:hidden

TextArea Multi-line text box

Header Load Page Header

Nav Navigation Labels

Footer Page Footer

Font-size Font Size

Line-height Font Line Height

CSS knowledge commonly used in web authoring

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.