Skip to main content

NIM

Step 4: Explore the Bootstrap grid system (tutorial)

In this step, we'll manipulate the grid system to lay out items within a form.

  1. Form layouts are based on the Bootstrap grid system. Every form comprises rows, each of which can contain up to 12 columns. Each item spans one or more columns within a single row (the column width property).

    We need to make room for two additional items on this row. We'll click the column width property of the image, and change its value from 12 to 2.

    2023-10-16_11-15-02.jpg
  2. There are now 10 columns left in this row. We'll go back to the Items tab, and drag a Static Text item into the green drop zone to the right of our image, which represents these columns.

    2023-10-16_11-19-42.jpg
  3. We'll set its properties as follows:

    2023-10-16_11-29-20.jpg
    • column width: 8

    • display heading: h2

    • margin trbl: ____

    • padding trbl: 4___

    • styles: display: flex; justify-content: left; align-items: center; height: 100px; width: 100%;

    • text: Create AD User

    Tip

    Since we set the static text item's column width to 8, and the image's to 2, this means we still have 2 more columns in this row to work with. We'll add another item there in the next step.

  4. Because we added padding to our static text item, our image now looks out of place. We'll correct this by setting its margin and padding to the same values as the text item:

    2023-10-16_11-35-15.jpg
    • margin trbl: ____

    • padding trbl: 4___

  5. We'll click Save to save our progress so far.

Next: Step 5: Buttons & actions