Difference between container_fluid and bootiner_fluid in bootstrap3,

Source: Internet
Author: User

Difference between container_fluid and bootiner_fluid in bootstrap3,

. Container and. container_fluid are two different types of outer containers in bootstrap. According to the official statement, the difference between them is:

. Container class is used for fixed-width containers that support responsive layout.

The. container-fluid class is used for containers whose width is 100% and occupies all the viewports.

The so-called fixed width does not allow developers to set the container width themselves. Instead, bootstrap uses media queries based on the screen width to help us set a fixed width and adapt it.

And is adaptive. In any case, do not manually set a fixed width value for the outer layout container in the response layout.

. Container-fluid is automatically set to 100% of the outer window. If the outer window is body, it is displayed in full screen regardless of the screen size and automatically implements a responsive layout.

The following code is for reference only:

/* Container of a width greater than 0-768px is 100% */. container {padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto ;} /* The container width above 768-992px is 750px */@ media (min-width: 768px ){. container {width: 750px ;}}/* 992-1200px or higher container is 970px */@ media (min-width: 992px ){. container {width: 970px;}/* container above pixel is 1170px */@ media (min-width: 1200px ){. container {width: 1170px ;}/ * container-fluid is 100% */. container-fluid {padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto ;}


The above section describes the differences between the bootiner and the iner_fluid outer container in bootstrap3. I hope it will help you. If you have any questions, please leave a message, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!

Related Article

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.