python:day43 Drawer

Source: Internet
Author: User

1. Understanding of Inline-block and float

Inline-block and float can implement block-level labels on the same line, the inline is not good to set left-right alignment, only through the margin and padding adjustment. Float can be set to align left and right.

If the Inline-block element is on the leftmost side and the same row Folat element setting floats to the left, the Inline-block will be squeezed behind float because float itself is designed for text wrapping and does not overwrite the text. Float generally does not move up, only left and right floating. If the above element is a block-level label, then does not move up, if the above element is an inline or inline-block tag, then float moves up and squeezes the content back.

python:day43 Drawer

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.