Bootstrap

An open source toolkit for developing with HTML, CSS, and JS.

  • Responsive, mobile-ready front-end component

Using Bootstrap CDN

CDN

Content Delivery (Distribution) Network

  • A system that provides data to a network with multiple nodes for efficient delivery of Content (CSS, JS, Image, Text, etc.)

  • Can deliver quickly through a server close to the individual end-user

  • CSS code on the Web!

CSS CDN

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">

JS CDN

<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>

Utilities

  • position

  • display

  • spacing - margin, padding

  • border

  • color

  • flex

1-1. Spacing

Where property is one of:

  • m - for classes that set margin

  • p - for classes that set padding

Where sides is one of:

  • t - for classes that set margin-top or padding-top

  • b - for classes that set margin-bottom or padding-bottom

  • l - for classes that set margin-left or padding-left

  • r - for classes that set margin-right or padding-right

  • x - for classes that set both *-left and *-right

  • y - for classes that set both *-top and *-bottom

  • blank - for classes that set a margin or padding on all 4 sides of the element

Where size is one of:

  • 0 - for classes that eliminate the margin or padding by setting it to 0

  • 1 - (by default) for classes that set the margin or padding to $spacer * .25

  • 2 - (by default) for classes that set the margin or padding to $spacer * .5

  • 3 - (by default) for classes that set the margin or padding to $spacer

  • 4 - (by default) for classes that set the margin or padding to $spacer * 1.5

  • 5 - (by default) for classes that set the margin or padding to $spacer * 3

  • auto - for classes that set the margin to auto

ex)

  • Browser default rem = 16px

The flex concept appeared starting from Bootstrap version 4!

BEM

  • 1naming

Component

Refer to the Bootstrap Documentationarrow-up-right!

  • alert

  • badge

  • breadcrumb

  • button

  • card

  • carousel

    • JS-based

  • Form /input

  • modal

    • JS

  • Navbar

    • JS

  • Pagination

1. Alerts

2. Badge

: Frequently used in shopping malls

3. Breadcrumb

: Displays site navigation path

ex) Shopping mall - Home/Men/Outerwear/Jackets

4. Cards

: A common layout used on many sites such as tumblbug.com

Horizontal

Card styles

  • Continuously transitioning

  • Components rotate like a merry-go-round

6. Forms

7. Modals

Add dialogs to your site for lightboxes, user notifications, or completely custom content

8. Navbar

Pagination

Building a Resume with Bootstrap

When using github pages, etc., there must be an index.html for it to serve as the first page!

Miscellaneous

  • CSS Minifier

  • Class name sr-only

    : screen reader only

  • Static Portfolio

    • Creates a homepage based on markdown

      • Jekyll

      • Gatsby

Last updated