Bootstrap CSS Layout

Source: Internet
Author: User

Smart-form

Single-line elements: generally included with Div, class= "Row"

Column elements: Included with section, class= "Col col-x" (sections with Margin-bottom, div if you want to remove)

Buttons and elements are generally used label,class= "type", which contains element tags and span,span within the display content.

Smart-form with Row and Col, no other place, row function is just margin:-14px 0

Bootstrap FORM element:

Form's class= "Form-horizontal", vertically arranged forms

Each area of the form is split with a section, without a class

Section area heading with <legend> tags.

One line element with <div class= "Form-group" >

Display labels by: <label class= "Control-label col-md-2" >small input</label>

Note in the input box with

<div class= "Col-md-10" >
<input class= "Form-control input-xs" placeholder= ". Input-xs" type= "text" >
</div>

Example:

<fieldset>                                                <legend>Input Sizes</legend>                                                                                                <Divclass= "Form-group">                                                    <labelclass= "Control-label col-md-2">Extra Small Input</label>                                                    <Divclass= "Col-md-10">                                                        <inputclass= "Form-control input-xs"placeholder= ". Input-xs"type= "text">                                                    </Div>                                                </Div>                                                <Divclass= "Form-group">                                                    <labelclass= "Control-label col-md-2">Small Input</label>                                                    <Divclass= "Col-md-10">                                                        <inputclass= "Form-control input-sm"placeholder= ". Input-sm"type= "text">                                                    </Div>                                                </Div>                                                <Divclass= "Form-group">                                                    <labelclass= "Control-label col-md-2">Default Input</label>                                                    <Divclass= "Col-md-10">                                                        <inputclass= "Form-control"placeholder= "Default input"type= "text">                                                    </Div>                                                </Div>                                                <Divclass= "Form-group">                                                    <labelclass= "Control-label col-md-2">Large Input</label>                                                    <Divclass= "Col-md-10">                                                        <inputclass= "Form-control input-lg"placeholder= ". Input-lg"type= "text">                                                    </Div>                                                </Div>                                                            </fieldset>

Approximate structure:

-xs min,-sm small, normal normal,-LG large

. col-**-offset-sets how much to offset.

Bootstrap CSS Layout

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.