Rearranging Column Order with col-lg-push and col-lg-pull in Twitter Bootstrap 3
Column ordering in Bootstrap 3 allows developers to adjust the position of columns within rows for different screen sizes. The col-lg-push and col-lg-pull classes are specifically designed for this purpose, providing control over the layout of columns on large screen devices (desktops and laptops).
To customize the column order, you need to:
Example:
SecondFirstThird
Explanation:
In this example, the Second column is pushed to the right by 5 columns using col-lg-push-5, making it appear after the Third column on large screens. The First column is pulled to the left by 5 columns using col-lg-pull-5, bringing it before the Third column. This creates the desired layout: [5] (second), [5] (first), [2] on mobile and [5] [5] [2] on desktop.
Understanding Pull and Push:
Note:
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3