Docsity

Advanced Client-Side Development: Bootstrap 5 Grid System and Components, Lecture notes of Web Design and Development

Partial preview of the text

Download Advanced Client-Side Development: Bootstrap 5 Grid System and Components and more Lecture notes Web Design and Development in PDF only on Docsity!

Advanced Client-Side

Development

Lecture: 5 (part 02)

Bootstrap (Cont’d)

Bootstrap 5 Grid System

  • Bootstrap's grid system is built with flexbox and allows up to 12 columns across the page.
  • If you do not want to use all 12 columns individually, you can group the columns together to create wider columns.
  • The grid system is responsive, and the columns will re-arrange automatically depending on the screen size.
  • Make sure that the sum adds up to 12 or fewer (it is not required that you use all 12 available columns).

Basic Structure of a Bootstrap 5 Grid

See Example 4 and 5 (Bootstrap Examples)

Unequal responsive Column

  • .col-sm-4 .col-sm-8

Bootstrap 5 Images

Image syntax

  • Rounded Corners

  • Circle

  • Thumbnail

Responsive Images

  • Images come in all sizes. So do screens. Responsive images automatically adjust to fit the size of the screen.
  • Create responsive images by adding an .img-fluid class to the tag. The image will then scale nicely to the parent element.
  • The .img-fluid class applies max-width: 100 %; and height: auto; to the image:

Bootstrap 5 Jumbotron

  • A jumbotron indicates a big grey box for calling extra attention to some special content or information.
  • Tip: Inside a jumbotron you can put nearly any valid HTML, including other Bootstrap elements/classes. - Bootstrap Tutorial

    Bootstrap is the most popular HTML, CSS...

Bootstrap 5 Button Groups

  • Bootstrap 5 allows you to group a series of buttons together (on a single line) in a button group.
  • Use a element with class .btn-group to create a button group:

    Apple Samsung Sony

Vertical Button Groups

  • Bootstrap 5 also supports vertical button groups.

  • Use the class .btn-group-vertical to create a vertical button group:

    Apple Samsung Sony
  • We can also have drop down menus in these buttons.

Spinners

  • To create a spinner/loader, use the .spinner-border class.

Spinner Buttons

Loading..

Loading..

Loading..

Basic Pagination

  • - Previous
  • 1 2 3 Next

Dropdowns

Dropdown button

Link 1 Link 2 Link 3