The third step of HTML learning is easy

Source: Internet
Author: User

HTML default layout, can not meet the requirements. So we want more advanced forms of expression. These are the way to change the box model.

Remember, the box model has three key points, margin border padding. Here's how to change the easy way, but also from the box model. For the sake of demonstration, I would like to use the two balm of div and span to illustrate.

There are several forms of change:

1. Changes in size and position, and spacing of other elements.

2. Show hidden Conversions .

3. block exclusive lines, non-exclusive row changes.

4. changes in shape. For example, the rectangle turns round.

5. Color font changes.

6. long text line change. The line and line height of the text paragraph changes.

7. Horizontal, vertical alignment.

If you look fast, you should already know that these changes are made by the style attribute. or write it in CSS. It doesn't matter if you don't know. Slowly, do not understand the things, see more, with more, accustomed to, and so on. The so-called understanding, many times just eliminate the strangeness.

First look at the simple, size and position changes.



The third step of HTML learning is easy

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.