Lecture 03
Lecture 03
Summary
• What is Bootstrap?
• Bootstrap Files
• Advantages of Bootstrap
• Where to Get Bootstrap 4?
• Bootstrap 4 Grid System
What is Bootstrap?
• Bootstrap is an open-source Javascript framework developed by
the team at Twitter. It is a combination of HTML, CSS, and
Javascript code designed to help build user interface components.
Bootstrap was also programmed to support both HTML5 and
CSS3.
• Also it is called Front-end-framework.
Aligning Images
Float an image to the right with the .float-
right class or to the left with .float-left
Centered Image
Center an image by adding the utility classes.mx-auto
and.d-block
Cont..
Bootstrap 4 Forms
Form controls automatically receive some global styling
with Bootstrap
All textual <input>, <textarea>, and <select> elements
with class .form-control have a width of 100%
Bootstrap provides two types of form layouts
• Stacked (full-width) form
– Add a wrapper element with .form-group,
around each form control, to ensure proper
margins and create Stacked (full-width) form
• Inline form
– Add class .form-inline to the <form> element
to all of the elements are inline and left-aligned
Example of Bootstrap form
Borders
Color
Background Color Classes
Bootstrap 4 Text
• Text transform
• <p class="text-lowercase">Lowercased text.</p>
• <p class="text-uppercase">Uppercased text.</p>
• <p class="text-capitalize">Capitalized text.</p>