Common CSS English words, correspondence function, correspondence explanation, corresponding simple example

Source: Internet
Author: User

Common CSS English words, correspondence function, correspondence explanation, correspondence simple example


1. Float: float
Float:left, floating on the left
Float:right: Floating on the right


2. Width
width:20px; Object Width 20px


3, Height
height:20px; Object Height 20px


4, margin external compensation
margin:1px 2px 3px 4px object on the distance 1px; right 2px; 3px; left 4px


5, padding within the offset
padding:1px 2px 3px 4px objects within the distance of 1px, right 2px, 3px, left 4px


6. Border border
border:1px solid #111; Object border is 1px wide black solid line


7. font-family Font
font-family: "Blackbody"; Object text font is bold


8. Font-size Text Size
font-size:12px object Text size is 12px


9, Font-weight text Bold
Font-weight:bold Object text is bold


10, Line-height Line High
2 rows of text line height 20px (including the text itself occupies the height) within the line-height:20px object


11. Text-decoration Text Decoration (underline, strikethrough)
Text-decoration:underline Object Text and underline


12. Background Background Properties
Background: #FFF URL (bg.png) repeat-x 0 0 Object background color is white, background image is bg.png by x-axis repeat and 0 pixels from top and left


13. Text-align content left and right align property
Text-align:center the contents of the object inside and around the center display


14. Position positioning Properties


15, overflow overflow processing
Overflow:hidden object content is hidden and does not occupy a virtual location


So many words I need all the spelling remember?
The answer is that it doesn't matter if you don't spell it, and the DW software can quickly write down the input attributes and the corresponding values. Because usually will be a lot of contact and use, the day will naturally spell, so there is no need to hard to remember, of course, remember also can.
Tip: When you see a CSS property word, you know how he uses it or what it does to realize what the CSS word is, what the front letter is, and the DW can enter these words quickly without having to memorize the words.

Common CSS English words, correspondence function, correspondence explanation, corresponding simple example

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.