Understand Div + CSS

Source: Internet
Author: User

As a news publishing system, div + CSS is exposed. It is a webpage layout method, which is different from the table Positioning Method in the traditional HTML webpage design language, it truly achieves the separation of W3C content and performance.

CSS (Cascading Style Sheet) is a set of format setting rules used to control the appearance of web pages. By setting the page format with CSS Styles, you can separate the content and representation of the page. The page content is stored in the HTML document, while the CSS rules used to define the representation are stored in another file or a part of the HTML document, usually the file header. Separating content from presentation not only makes it easier to maintain the site's appearance, but also makes HTML documentsCodeMore concise, shortening the loading time of the browser.

Core Content of CSS:

1. Standard stream (sorting order of HTML tags)

2. Box Model

3. Float)

4. Position)

Note:

The use of multiple styles is limited to class selectors, because each ID selector in a webpage is unique.

(Block-level element (DIV); line element (span itself ). Sometimes block-level elements can be converted into intra-row elements to achieve the desired layout effect)

With the continuous understanding of them, there will be more content to accumulate...

 

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.