Bootstrap CSS Component button Group (btn-group) _javascript tips

Source: Internet
Author: User
Tags button type

. Btn-toolbar (helps several groups of btn-group to be combined into one btn-toolbar)/.btn-group (BTN-GROUP-LG/BTN-GROUP-SM/BTN-GROUP-XS)/. Btn-group-vertical
The buttons inside the container can use the button element, or you can use a element to produce the same effect.

Multiple groupings of containers are displayed in table style, keeping 5px left margin between each group

Source code
. Btn-toolbar:before,
btn-toolbar:after{
 display:table;
 Content: "";
btn-toolbar:after{
 Clear:both
}

. Btn-toolbar {
 margin-left: -5px;
}
. Btn-toolbar. BTN,
Btn-toolbar btn-group,
. Btn-toolbar. input-group {
 float:left;
}
. Btn-toolbar > Btn,
. Btn-toolbar > Btn-group,
. Btn-toolbar > Input-group {
 margin-left:5px;
}

examples See button groups. html– general grouping, nested grouping, vertical grouping

<! DOCTYPE html>  

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.