SlideShare a Scribd company logo
Bootstrap 4
HEADS UP AUG 2017__ BOOTSTRAP 4 BETA IS OUT!
Support Changes
 v4 is now only IE10+ and iOS 7+
 Added official support for Android v5.0 Lollipop’s Browser and WebView.
Grid Has Changed
 Looking back at Bootstrap 3, the 4 grid tiers (‘xs’, ’sm’, ‘md’ and ‘lg’
breakpoints) .
 The smallest breakpoint has a wide range of devices less than 768px in
width.
Bootstrap 4 Grid
 Introducing the new XL grid tier
 There are 5 tiers (or breakpoints) to support typical portrait and landscape screen
widths.
 New grid breakpoint with the col-xl-* classes
 Breakpoints:
 The XL breakpoint is screen widths > 1200px
 The LG breakpoint is screen widths > 992px
 The MD breakpoint is screen widths > 768px
 The SM breakpoint is screen widths > 544px
 The XS breakpoint is screen widths < 544px
Utilities
Width w-25%, w-50%,w-75%, w-100%
Height h-25%, h-50%,h-75%, h-100%
Padding p
Margin m
Margin-top or padding-top t
Margin-bottom or padding-bottom b
Margin-left or padding-left l
Margin-right or padding-right r
for classes that set both *-left and *-right x
for classes that set both *-top and *-bottom y
for the classes that set on all four sides (margin and padding) blank
Border – borders, colors and radius
Colors
Headings and paragraphs
 Headings have margin-bottom: .5rem added and paragraphs margin-bottom: 1rem for
easy spacing.
Display Headings**
 A larger, slightly more opinionated heading style.
Blockquotes
 Wrap <blockquote class="blockquote"> around any HTML as the quote.
 Add a <footer class="blockquote-footer"> for identifying the source.
 Add .blockquote-reverse for a blockquote with right-aligned content.
Lists
 .list-unstyled removes the default list-style and left margin on list items
(immediate children only). This only applies to immediate children list
items.
 Inline: Remove a list’s bullets and apply some light margin with a
combination of two classes, .list-inline and .list-inline-item.
Images
 Renamed .img-respnsive to .img-fluid
 Renamed .img-rounded to .rounded
 Renamed img-circle to .rounded-circle
 .img-thumbnail to give an image a rounded 1px border appearance.
Tables
 Responsive tables no longer require a wrapping element. Instead, just put
the .table-responsive right on the <table>.
 Renamed .table-condensed to .table-sm for consistency.
 Added a new .table-inverse option.
 Added table header modifiers: .thead-default and .thead-inverse.
 Renamed contextual classes to have a .table--prefix.
Hence .active, .success, .warning, .danger and .table-info to .table-
active, .table-success, .table-warning, .table-danger and .table-info.
Figures
 included .figure , .figure-img and .figure-caption classes to provide some
baseline styles for the HTML5 <figure> and <figcaption> elements.
 Images in figures have no explicit size, so be sure to add the .img-fluid
class to your <img> to make it responsive.
 Aligning the figure’s caption is easy with text utilities.
Alerts
 For proper styling, use one of the four required contextual classes (e.g.,
.alert-success).
 For inline dismissal, use the alerts jQuery plugin.
 Link Color: Use the .alert-link utility class to quickly provide matching
colored links within any alert.
 Alerts can also contain additional HTML elements like headings,
paragraphs and dividers.

Alert Dismissing
 Using the alert JavaScript plugin, it’s possible
to dismiss any alert inline.
 Add a dismiss button and the .alert-
dismissible class, which adds extra padding
to the right of the alert and positions the
.close button.
 On the dismiss button, add the data-
dismiss="alert" attribute, which triggers the
JavaScript functionality. Be sure to use the
<button> element with it for proper
behavior across all devices.
 To animate alerts when dismissing them, be
sure to add the .fade and .show classes.
Alerts JavaScript Behaviour
Method Description
$().alert() Makes an alert listen for click
events on descendant elements
which have the data-
dismiss="alert" attribute. (Not
necessary when using the data-
api’s auto-initialization.)
$().alert('close') Closes an alert by removing it
from the DOM. If
the .fade and .show classes are
present on the element, the alert
will fade out before it is removed.
Event Description
close.bs.alert This event fires immediately
when the close instance
method is called.
closed.bs.alert This event is fired when the
alert has been closed (will
wait for CSS transitions to
complete).
Button tags
Outline buttons
Button Sizes and Actives States
Button Sizes
 Add .btn-lg or .btn-sm for additional
sizes.
 Create block level buttons—those that
span the full width of a parent—by
adding .btn-block.
Active and Disabled States
 active appearance with .active
 Buttons will appear pressed (with a
darker background, darker border,
and inset shadow) when active.
 .disabled class to make it visually
appear disabled.
Cards
 A card is a flexible and extensible content container.
 It includes options for headers and footers, a wide variety of content,
contextual background colors, and powerful display options.
 Card titles are used by adding .card-title
 Card subtitles used by adding .card-subtitle
 .card-img-top places an image to the top of the card
 Mix and match multiple content types to create the card you need, or
throw everything in there.
 an optional header and/or footer within a card an be added
Cards
 Cards can include top and bottom “image caps”—images at the top or
bottom of a card. Image overlays
 Turn an image into a card background and overlay your card’s text
 Cards include various options for customizing their backgrounds, borders,
and color.
 Includes a few options for laying out series of cards.
Collapse
 Toggle the visibility of content across your project with a few classes and
our JavaScript plugins.
 Examples
 .collapse hides content
 .collapsing is applied during transitions
 .collapse.show shows content
 You can use a link with the href attribute, or a button with the data-
target attribute. In both cases, the data-toggle="collapse" is required.
 Multiple targets
 Multiple <button> or <a> can show and hide an element if they each reference
it with their ‘href’ or ‘data-target’ attribute
Collapse with JavaScript Methods
 .collapse(options)
 .collapse('toggle') - Returns to the caller before the collapsible element
has actually been shown or hidden
 .collapse('show') - Returns to the caller before the collapsible element
has actually been shown
 .collapse('hide') - Returns to the caller before the collapsible element
has actually been hidden
Collapse with JavaScript Events
Event Type Description
show.bs.collapse This event fires immediately when the show instance
method is called.
shown.bs.collapse This event is fired when a collapse element has been
made visible to the user (will wait for CSS transitions to
complete).
hide.bs.collapse This event is fired immediately when the hide method has
been called.
hidden.bs.collapse This event is fired when a collapse element has been
hidden from the user (will wait for CSS transitions to
complete).
$('#myCollapsible').on('hidden.bs.collapse', function () {
// do something…
})
Forms
 Renamed .control-label to .form-control-label.
 Renamed .input-lg and .input-sm to .form-control-lg and .form-control-sm, respectively.
 Dropped .form-group-* classes for simplicity’s sake. Use .form-control-* classes instead
now.
 Dropped .help-block and replaced it with .form-text for block-level help text. For inline
help text and other flexible options, use utility classes like .text-muted.
 Horizontal forms overhauled:
 Dropped the .form-horizontal class requirement.
 .form-group no longer applies styles from the .row, so .row is now required for horizontal
grid layouts (e.g., <div class="form-group row">).
 Added new .form-control-label class to vertically center labels with .form-controls.
 Added custom forms support (for checkboxes, radios, selects, and file inputs).
Jumbotron
 Lightweight, flexible component for showcasing hero unit style content.
 To make the jumbotron full width, and without rounded corners, add the
.jumbotron-fluid modifier class and add a .container or .container-fluid
within.
Navs - Alignments
 Centered with .justify-content-center
 Right-aligned with .justify-content-end
 Vertical : By changing the flex item direction with the .flex-column
 Tabs : Uses .nav-tabs class to generate a tabbed interface.
 Pills : Use .nav-pills class to generate a pilled interface
 To proportionately fill all available space with your .nav-items, use .nav-fill
 For equal-width elements, use .nav-justified
Toggble Navs and Pills
 Can activate a tab or pill navigation without writing any JavaScript by
simply specifying data-toggle="tab" or data-toggle="pill" on an element.
 Via JavaScript
 $('#myTab a').click(function (e) {
 e.preventDefault()
 $(this).tab('show')
 })
Activate individual tabs in several ways
 $('#myTab a[href="#profile"]').tab('show') // Select tab by name
 $('#myTab a:first').tab('show') // Select first tab
 $('#myTab a:last').tab('show') // Select last tab
 $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
Nav - Events
 When showing a new tab, the events fire in the following order:
 hide.bs.tab (on the current active tab)
 show.bs.tab (on the to-be-shown tab)
 hidden.bs.tab (on the previous active tab, the same one as for the
hide.bs.tab event)
 shown.bs.tab (on the newly-active just-shown tab, the same one as for the
show.bs.tab event)
Navbar
 .navbar-nav for a full-height and lightweight navigation
 We can avoid the list-based approach entirely by using classes for navs.
 .navbar-text for adding vertically centered strings of text.
 Dropdown menus require a wrapping element for positioning, so be sure
to use separate and nested elements for .nav-item and .nav-link.
Navbars
 Place various form controls and components within a navbar with .form-
inline.
 Navbars may contain bits of text with the help of .navbar-text. This class
adjusts vertical alignment and horizontal spacing for strings of text.
 Theming the navbar has never been easier thanks to the combination of
theming classes and background-color utilities.
Navbar Responsive behaviour
 Navbars can utilize .navbar-toggler, .navbar-collapse, and .navbar-expand{-
sm|-md|-lg|-xl} classes to change when their content collapses behind a
button.
 With a toggler on the left and brand name on the right:
 With a brand name shown on the left and toggler on the right:
Popover
 Popovers rely on the 3rd party library Popper.js for positioning. You must
include popper.min.js before bootstrap.js in order for popovers to work!
 Popovers require the tooltip plugin as a dependency.
 Specify container: 'body' to avoid rendering problems in more complex
components (like our input groups, button groups, etc).
 Triggering popovers on hidden elements will not work.
 Popovers for .disabled or disabled elements must be triggered on a
wrapper element.
Popover Everywhere
 initialize all popovers on a page would be to select them by their data-toggle
attribute:
 $(function () {
 $('[data-toggle="popover"]').popover()
 })
 Using the container option
 $(function () {
 $('.example-popover').popover({
 container: 'body'
 })
 })
Dismiss on next click
 Use the focus trigger to dismiss popovers on the next click that the user
makes.
<a tabindex="0" class="btn btn-lg btn-danger" role="button" data-
toggle="popover" data-trigger="focus" title="Dismissible popover" data-
content="And here's some amazing content. It's very engaging.
Right?">Dismissible popover</a>
Or
$('.popover-dismiss').popover({
trigger: 'focus'
})
Scrollspy
 It must to be used on a Bootstrap nav component or list group.
 Scrollspy requires position: relative; on the element you’re spying on,
usually the <body>.
 When spying on elements other than the <body>, be sure to have a
height set and overflow-y: scroll; applied.
 Anchors (<a>) are required and must point to an element with that id.
Scrollspy - with nested nav and list-
group
 Scrollspy also works with nested .navs. If a nested .nav is .active, its parents
will also be .active.
 Scroll the area next to the navbar and watch the active class change.
 Scrollspy also works with .list-groups. Scroll the area next to the list group
and watch the active class change.
Nested Nav List-group
Scrollspy - Using JavaScript
 After adding position: relative; in your CSS, call the scrollspy via JavaScript:
 Methods
 $('[data-spy="scroll"]').each(function () {
 var $spy = $(this).scrollspy('refresh')
 })
$('body').scrollspy({ target: '#navbar-example' })
Options and Events
 Options can be passed via data attributes or JavaScript.
 Events
 $('#myScrollspy').on('activate.bs.scrollspy', function () {
 // do something…
 })
Name Type Default Description
offset number 10 Pixels to offset from top when calculating position of
scroll.
Event Type Description
activate.bs.scrollspy This event fires whenever a new item becomes
activated by the scrollspy.
Embeds - Aspect ratios
 Aspect ratios can be customized with modifier classes.
Flex
 Direction
 Use .flex-row to set a horizontal direction (the browser default), or .flex-
row-reverse to start the horizontal direction from the opposite side.
 Use .flex-column to set a vertical direction, or .flex-column-reverse to
start the vertical direction from the opposite side.
 Justify content
 Use justify-content utilities on flexbox containers to change the alignment of
flex items on the main axis - start (browser default), end, center, between, or
around.
Flex - Alignments
 Align items
 Use align-items utilities on flexbox containers to change the alignment of
flex items on the cross axis (the y-axis to start, x-axis if flex-direction:
column). Choose from start, end, center, baseline, or stretch (browser
default).
 Align Self
 Use align-self utilities on flexbox items to individually change their
alignment on the cross axis
Flex - Auto margins
 With justify-content
 move all flex items to one side, but keep another on the opposite end
by mixing justify-content with margin-right: auto or margin-left: auto.
 With align-items
 move one flex item to the top or bottom of a container by mixing
align-items, flex-direction: column, and margin-top: auto or margin-
bottom: auto.
Flex - Wrap
Flex - Align content
 Use align-content utilities on flexbox containers to align flex items
together on the cross axis.
 Choose from start (browser default), end, center, between, around, or
stretch.
Float
Toggle floats on any element, across any breakpoint, using our responsive float
utilities.
Text
 Text transform
 <p class="text-lowercase">Lowercased text.</p>
 <p class="text-uppercase">Uppercased text.</p>
 <p class="text-capitalize">CapiTaliZed text.</p>
 Font weight and italics
 <p class="font-weight-bold">Bold text.</p>
 <p class="font-weight-normal">Normal weight text.</p>
 <p class="font-italic">Italic text.</p>

More Related Content

What's hot

cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
Bootstrap Part - 1
Bootstrap Part - 1Bootstrap Part - 1
Bootstrap Part - 1
EPAM Systems
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT Part - 2
EPAM Systems
 
Mediaqueries
MediaqueriesMediaqueries
Mediaqueries
Brillio
 
Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
Jubair Ahmed Junjun
 
Bootstrap 5 ppt
Bootstrap 5 pptBootstrap 5 ppt
Bootstrap 5 ppt
Mallikarjuna G D
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
Amit Tyagi
 
Introduction to JavaScript Basics.
Introduction to JavaScript Basics.Introduction to JavaScript Basics.
Introduction to JavaScript Basics.
Hassan Ahmed Baig - Web Developer
 
Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap
1amitgupta
 
Div tag presentation
Div tag presentationDiv tag presentation
Div tag presentationalyssa_lum11
 
JavaScript - An Introduction
JavaScript - An IntroductionJavaScript - An Introduction
JavaScript - An Introduction
Manvendra Singh
 
Web design - Working with forms in HTML
Web design - Working with forms in HTMLWeb design - Working with forms in HTML
Web design - Working with forms in HTML
Mustafa Kamel Mohammadi
 
Learn javascript easy steps
Learn javascript easy stepsLearn javascript easy steps
Learn javascript easy steps
prince Loffar
 
Flexbox
FlexboxFlexbox
Flexbox
Netcetera
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Andres Baravalle
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
Lanh Le
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
WordPress Memphis
 
Bootstrap ppt
Bootstrap pptBootstrap ppt
Bootstrap ppt
Nidhi mishra
 

What's hot (20)

cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
Bootstrap Part - 1
Bootstrap Part - 1Bootstrap Part - 1
Bootstrap Part - 1
 
Bootstrap PPT Part - 2
Bootstrap PPT Part - 2Bootstrap PPT Part - 2
Bootstrap PPT Part - 2
 
Mediaqueries
MediaqueriesMediaqueries
Mediaqueries
 
Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
 
Bootstrap 5 ppt
Bootstrap 5 pptBootstrap 5 ppt
Bootstrap 5 ppt
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Introduction to JavaScript Basics.
Introduction to JavaScript Basics.Introduction to JavaScript Basics.
Introduction to JavaScript Basics.
 
Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap
 
Div tag presentation
Div tag presentationDiv tag presentation
Div tag presentation
 
JavaScript - An Introduction
JavaScript - An IntroductionJavaScript - An Introduction
JavaScript - An Introduction
 
Web design - Working with forms in HTML
Web design - Working with forms in HTMLWeb design - Working with forms in HTML
Web design - Working with forms in HTML
 
Learn javascript easy steps
Learn javascript easy stepsLearn javascript easy steps
Learn javascript easy steps
 
Flexbox
FlexboxFlexbox
Flexbox
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Bootstrap ppt
Bootstrap pptBootstrap ppt
Bootstrap ppt
 

Similar to Bootstrap 4 ppt

Professional bootstrap training for it companies online onsite offsite
Professional bootstrap training for it companies online onsite offsiteProfessional bootstrap training for it companies online onsite offsite
Professional bootstrap training for it companies online onsite offsite
baabtra.com - No. 1 supplier of quality freshers
 
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
FirosK2
 
Read carefully and follow exactly Java You are to write a Breakou.pdf
Read carefully and follow exactly Java You are to write a Breakou.pdfRead carefully and follow exactly Java You are to write a Breakou.pdf
Read carefully and follow exactly Java You are to write a Breakou.pdf
rupeshmehta151
 
Angular.js Directives for Interactive Web Applications
Angular.js Directives for Interactive Web ApplicationsAngular.js Directives for Interactive Web Applications
Angular.js Directives for Interactive Web Applications
Brent Goldstein
 
Bootstrap 3 vs. bootstrap 4
Bootstrap 3 vs. bootstrap 4Bootstrap 3 vs. bootstrap 4
Bootstrap 3 vs. bootstrap 4
Ahmad Awsaf-uz-zaman
 
Backbone.js
Backbone.jsBackbone.js
Backbone.js
Knoldus Inc.
 
Jarv.us Showcase — SenchaCon 2011
Jarv.us Showcase — SenchaCon 2011Jarv.us Showcase — SenchaCon 2011
Jarv.us Showcase — SenchaCon 2011Chris Alfano
 
Java script basics
Java script basicsJava script basics
Java script basics
Thakur Amit Tomer
 
CSS Conf Budapest - New CSS Layout
CSS Conf Budapest - New CSS LayoutCSS Conf Budapest - New CSS Layout
CSS Conf Budapest - New CSS Layout
Rachel Andrew
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
Mukesh Kumar
 
Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)
NexThoughts Technologies
 
Oracle adf performance tips
Oracle adf performance tipsOracle adf performance tips
Oracle adf performance tips
Vinay Kumar
 
Introduction to Web Components
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web Components
Felix Arntz
 
New CSS Layout Meets the Real World
New CSS Layout Meets the Real WorldNew CSS Layout Meets the Real World
New CSS Layout Meets the Real World
Rachel Andrew
 
As Triage Code Camp
As Triage Code CampAs Triage Code Camp
As Triage Code Camp
Rob Sawyer
 
JAVA AWT
JAVA AWTJAVA AWT
JAVA AWT
shanmuga rajan
 
But what about old browsers?
But what about old browsers?But what about old browsers?
But what about old browsers?
Rachel Andrew
 
Bootstrap with liferay
Bootstrap with liferayBootstrap with liferay
Bootstrap with liferay
Sendhil Kumar Kannan
 
Hello Android
Hello AndroidHello Android
Hello Android
Trong Dinh
 
WPF L02-Graphics, Binding and Animation
WPF L02-Graphics, Binding and AnimationWPF L02-Graphics, Binding and Animation
WPF L02-Graphics, Binding and AnimationMohammad Shaker
 

Similar to Bootstrap 4 ppt (20)

Professional bootstrap training for it companies online onsite offsite
Professional bootstrap training for it companies online onsite offsiteProfessional bootstrap training for it companies online onsite offsite
Professional bootstrap training for it companies online onsite offsite
 
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
 
Read carefully and follow exactly Java You are to write a Breakou.pdf
Read carefully and follow exactly Java You are to write a Breakou.pdfRead carefully and follow exactly Java You are to write a Breakou.pdf
Read carefully and follow exactly Java You are to write a Breakou.pdf
 
Angular.js Directives for Interactive Web Applications
Angular.js Directives for Interactive Web ApplicationsAngular.js Directives for Interactive Web Applications
Angular.js Directives for Interactive Web Applications
 
Bootstrap 3 vs. bootstrap 4
Bootstrap 3 vs. bootstrap 4Bootstrap 3 vs. bootstrap 4
Bootstrap 3 vs. bootstrap 4
 
Backbone.js
Backbone.jsBackbone.js
Backbone.js
 
Jarv.us Showcase — SenchaCon 2011
Jarv.us Showcase — SenchaCon 2011Jarv.us Showcase — SenchaCon 2011
Jarv.us Showcase — SenchaCon 2011
 
Java script basics
Java script basicsJava script basics
Java script basics
 
CSS Conf Budapest - New CSS Layout
CSS Conf Budapest - New CSS LayoutCSS Conf Budapest - New CSS Layout
CSS Conf Budapest - New CSS Layout
 
Bootstrap PPT by Mukesh
Bootstrap PPT by MukeshBootstrap PPT by Mukesh
Bootstrap PPT by Mukesh
 
Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)Twitter bootstrap (css, components and javascript)
Twitter bootstrap (css, components and javascript)
 
Oracle adf performance tips
Oracle adf performance tipsOracle adf performance tips
Oracle adf performance tips
 
Introduction to Web Components
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web Components
 
New CSS Layout Meets the Real World
New CSS Layout Meets the Real WorldNew CSS Layout Meets the Real World
New CSS Layout Meets the Real World
 
As Triage Code Camp
As Triage Code CampAs Triage Code Camp
As Triage Code Camp
 
JAVA AWT
JAVA AWTJAVA AWT
JAVA AWT
 
But what about old browsers?
But what about old browsers?But what about old browsers?
But what about old browsers?
 
Bootstrap with liferay
Bootstrap with liferayBootstrap with liferay
Bootstrap with liferay
 
Hello Android
Hello AndroidHello Android
Hello Android
 
WPF L02-Graphics, Binding and Animation
WPF L02-Graphics, Binding and AnimationWPF L02-Graphics, Binding and Animation
WPF L02-Graphics, Binding and Animation
 

More from EPAM Systems

Complete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScriptComplete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScript
EPAM Systems
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete Notes
EPAM Systems
 
Css3 Complete Reference
Css3 Complete ReferenceCss3 Complete Reference
Css3 Complete Reference
EPAM Systems
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
EPAM Systems
 
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsJquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
EPAM Systems
 
Angular Js Advantages - Complete Reference
Angular Js Advantages - Complete ReferenceAngular Js Advantages - Complete Reference
Angular Js Advantages - Complete Reference
EPAM Systems
 
Html
HtmlHtml

More from EPAM Systems (8)

Complete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScriptComplete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScript
 
Css Complete Notes
Css Complete NotesCss Complete Notes
Css Complete Notes
 
Css3 Complete Reference
Css3 Complete ReferenceCss3 Complete Reference
Css3 Complete Reference
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
 
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsJquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
 
Angular Js Advantages - Complete Reference
Angular Js Advantages - Complete ReferenceAngular Js Advantages - Complete Reference
Angular Js Advantages - Complete Reference
 
Html
HtmlHtml
Html
 

Recently uploaded

How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 

Recently uploaded (20)

How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 

Bootstrap 4 ppt

  • 1. Bootstrap 4 HEADS UP AUG 2017__ BOOTSTRAP 4 BETA IS OUT!
  • 2. Support Changes  v4 is now only IE10+ and iOS 7+  Added official support for Android v5.0 Lollipop’s Browser and WebView.
  • 3. Grid Has Changed  Looking back at Bootstrap 3, the 4 grid tiers (‘xs’, ’sm’, ‘md’ and ‘lg’ breakpoints) .  The smallest breakpoint has a wide range of devices less than 768px in width.
  • 4. Bootstrap 4 Grid  Introducing the new XL grid tier  There are 5 tiers (or breakpoints) to support typical portrait and landscape screen widths.  New grid breakpoint with the col-xl-* classes  Breakpoints:  The XL breakpoint is screen widths > 1200px  The LG breakpoint is screen widths > 992px  The MD breakpoint is screen widths > 768px  The SM breakpoint is screen widths > 544px  The XS breakpoint is screen widths < 544px
  • 5. Utilities Width w-25%, w-50%,w-75%, w-100% Height h-25%, h-50%,h-75%, h-100% Padding p Margin m Margin-top or padding-top t Margin-bottom or padding-bottom b Margin-left or padding-left l Margin-right or padding-right r for classes that set both *-left and *-right x for classes that set both *-top and *-bottom y for the classes that set on all four sides (margin and padding) blank
  • 6. Border – borders, colors and radius
  • 8. Headings and paragraphs  Headings have margin-bottom: .5rem added and paragraphs margin-bottom: 1rem for easy spacing.
  • 9. Display Headings**  A larger, slightly more opinionated heading style.
  • 10. Blockquotes  Wrap <blockquote class="blockquote"> around any HTML as the quote.  Add a <footer class="blockquote-footer"> for identifying the source.  Add .blockquote-reverse for a blockquote with right-aligned content.
  • 11. Lists  .list-unstyled removes the default list-style and left margin on list items (immediate children only). This only applies to immediate children list items.  Inline: Remove a list’s bullets and apply some light margin with a combination of two classes, .list-inline and .list-inline-item.
  • 12. Images  Renamed .img-respnsive to .img-fluid  Renamed .img-rounded to .rounded  Renamed img-circle to .rounded-circle  .img-thumbnail to give an image a rounded 1px border appearance.
  • 13. Tables  Responsive tables no longer require a wrapping element. Instead, just put the .table-responsive right on the <table>.  Renamed .table-condensed to .table-sm for consistency.  Added a new .table-inverse option.  Added table header modifiers: .thead-default and .thead-inverse.  Renamed contextual classes to have a .table--prefix. Hence .active, .success, .warning, .danger and .table-info to .table- active, .table-success, .table-warning, .table-danger and .table-info.
  • 14. Figures  included .figure , .figure-img and .figure-caption classes to provide some baseline styles for the HTML5 <figure> and <figcaption> elements.  Images in figures have no explicit size, so be sure to add the .img-fluid class to your <img> to make it responsive.  Aligning the figure’s caption is easy with text utilities.
  • 15. Alerts  For proper styling, use one of the four required contextual classes (e.g., .alert-success).  For inline dismissal, use the alerts jQuery plugin.  Link Color: Use the .alert-link utility class to quickly provide matching colored links within any alert.  Alerts can also contain additional HTML elements like headings, paragraphs and dividers. 
  • 16. Alert Dismissing  Using the alert JavaScript plugin, it’s possible to dismiss any alert inline.  Add a dismiss button and the .alert- dismissible class, which adds extra padding to the right of the alert and positions the .close button.  On the dismiss button, add the data- dismiss="alert" attribute, which triggers the JavaScript functionality. Be sure to use the <button> element with it for proper behavior across all devices.  To animate alerts when dismissing them, be sure to add the .fade and .show classes.
  • 17. Alerts JavaScript Behaviour Method Description $().alert() Makes an alert listen for click events on descendant elements which have the data- dismiss="alert" attribute. (Not necessary when using the data- api’s auto-initialization.) $().alert('close') Closes an alert by removing it from the DOM. If the .fade and .show classes are present on the element, the alert will fade out before it is removed. Event Description close.bs.alert This event fires immediately when the close instance method is called. closed.bs.alert This event is fired when the alert has been closed (will wait for CSS transitions to complete).
  • 20. Button Sizes and Actives States Button Sizes  Add .btn-lg or .btn-sm for additional sizes.  Create block level buttons—those that span the full width of a parent—by adding .btn-block. Active and Disabled States  active appearance with .active  Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active.  .disabled class to make it visually appear disabled.
  • 21. Cards  A card is a flexible and extensible content container.  It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.  Card titles are used by adding .card-title  Card subtitles used by adding .card-subtitle  .card-img-top places an image to the top of the card  Mix and match multiple content types to create the card you need, or throw everything in there.  an optional header and/or footer within a card an be added
  • 22. Cards  Cards can include top and bottom “image caps”—images at the top or bottom of a card. Image overlays  Turn an image into a card background and overlay your card’s text  Cards include various options for customizing their backgrounds, borders, and color.  Includes a few options for laying out series of cards.
  • 23. Collapse  Toggle the visibility of content across your project with a few classes and our JavaScript plugins.  Examples  .collapse hides content  .collapsing is applied during transitions  .collapse.show shows content  You can use a link with the href attribute, or a button with the data- target attribute. In both cases, the data-toggle="collapse" is required.  Multiple targets  Multiple <button> or <a> can show and hide an element if they each reference it with their ‘href’ or ‘data-target’ attribute
  • 24. Collapse with JavaScript Methods  .collapse(options)  .collapse('toggle') - Returns to the caller before the collapsible element has actually been shown or hidden  .collapse('show') - Returns to the caller before the collapsible element has actually been shown  .collapse('hide') - Returns to the caller before the collapsible element has actually been hidden
  • 25. Collapse with JavaScript Events Event Type Description show.bs.collapse This event fires immediately when the show instance method is called. shown.bs.collapse This event is fired when a collapse element has been made visible to the user (will wait for CSS transitions to complete). hide.bs.collapse This event is fired immediately when the hide method has been called. hidden.bs.collapse This event is fired when a collapse element has been hidden from the user (will wait for CSS transitions to complete). $('#myCollapsible').on('hidden.bs.collapse', function () { // do something… })
  • 26. Forms  Renamed .control-label to .form-control-label.  Renamed .input-lg and .input-sm to .form-control-lg and .form-control-sm, respectively.  Dropped .form-group-* classes for simplicity’s sake. Use .form-control-* classes instead now.  Dropped .help-block and replaced it with .form-text for block-level help text. For inline help text and other flexible options, use utility classes like .text-muted.  Horizontal forms overhauled:  Dropped the .form-horizontal class requirement.  .form-group no longer applies styles from the .row, so .row is now required for horizontal grid layouts (e.g., <div class="form-group row">).  Added new .form-control-label class to vertically center labels with .form-controls.  Added custom forms support (for checkboxes, radios, selects, and file inputs).
  • 27. Jumbotron  Lightweight, flexible component for showcasing hero unit style content.  To make the jumbotron full width, and without rounded corners, add the .jumbotron-fluid modifier class and add a .container or .container-fluid within.
  • 28. Navs - Alignments  Centered with .justify-content-center  Right-aligned with .justify-content-end  Vertical : By changing the flex item direction with the .flex-column  Tabs : Uses .nav-tabs class to generate a tabbed interface.  Pills : Use .nav-pills class to generate a pilled interface  To proportionately fill all available space with your .nav-items, use .nav-fill  For equal-width elements, use .nav-justified
  • 29. Toggble Navs and Pills  Can activate a tab or pill navigation without writing any JavaScript by simply specifying data-toggle="tab" or data-toggle="pill" on an element.  Via JavaScript  $('#myTab a').click(function (e) {  e.preventDefault()  $(this).tab('show')  })
  • 30. Activate individual tabs in several ways  $('#myTab a[href="#profile"]').tab('show') // Select tab by name  $('#myTab a:first').tab('show') // Select first tab  $('#myTab a:last').tab('show') // Select last tab  $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
  • 31. Nav - Events  When showing a new tab, the events fire in the following order:  hide.bs.tab (on the current active tab)  show.bs.tab (on the to-be-shown tab)  hidden.bs.tab (on the previous active tab, the same one as for the hide.bs.tab event)  shown.bs.tab (on the newly-active just-shown tab, the same one as for the show.bs.tab event)
  • 32. Navbar  .navbar-nav for a full-height and lightweight navigation  We can avoid the list-based approach entirely by using classes for navs.  .navbar-text for adding vertically centered strings of text.  Dropdown menus require a wrapping element for positioning, so be sure to use separate and nested elements for .nav-item and .nav-link.
  • 33. Navbars  Place various form controls and components within a navbar with .form- inline.  Navbars may contain bits of text with the help of .navbar-text. This class adjusts vertical alignment and horizontal spacing for strings of text.  Theming the navbar has never been easier thanks to the combination of theming classes and background-color utilities.
  • 34. Navbar Responsive behaviour  Navbars can utilize .navbar-toggler, .navbar-collapse, and .navbar-expand{- sm|-md|-lg|-xl} classes to change when their content collapses behind a button.  With a toggler on the left and brand name on the right:  With a brand name shown on the left and toggler on the right:
  • 35. Popover  Popovers rely on the 3rd party library Popper.js for positioning. You must include popper.min.js before bootstrap.js in order for popovers to work!  Popovers require the tooltip plugin as a dependency.  Specify container: 'body' to avoid rendering problems in more complex components (like our input groups, button groups, etc).  Triggering popovers on hidden elements will not work.  Popovers for .disabled or disabled elements must be triggered on a wrapper element.
  • 36. Popover Everywhere  initialize all popovers on a page would be to select them by their data-toggle attribute:  $(function () {  $('[data-toggle="popover"]').popover()  })  Using the container option  $(function () {  $('.example-popover').popover({  container: 'body'  })  })
  • 37. Dismiss on next click  Use the focus trigger to dismiss popovers on the next click that the user makes. <a tabindex="0" class="btn btn-lg btn-danger" role="button" data- toggle="popover" data-trigger="focus" title="Dismissible popover" data- content="And here's some amazing content. It's very engaging. Right?">Dismissible popover</a> Or $('.popover-dismiss').popover({ trigger: 'focus' })
  • 38. Scrollspy  It must to be used on a Bootstrap nav component or list group.  Scrollspy requires position: relative; on the element you’re spying on, usually the <body>.  When spying on elements other than the <body>, be sure to have a height set and overflow-y: scroll; applied.  Anchors (<a>) are required and must point to an element with that id.
  • 39. Scrollspy - with nested nav and list- group  Scrollspy also works with nested .navs. If a nested .nav is .active, its parents will also be .active.  Scroll the area next to the navbar and watch the active class change.  Scrollspy also works with .list-groups. Scroll the area next to the list group and watch the active class change.
  • 41. Scrollspy - Using JavaScript  After adding position: relative; in your CSS, call the scrollspy via JavaScript:  Methods  $('[data-spy="scroll"]').each(function () {  var $spy = $(this).scrollspy('refresh')  }) $('body').scrollspy({ target: '#navbar-example' })
  • 42. Options and Events  Options can be passed via data attributes or JavaScript.  Events  $('#myScrollspy').on('activate.bs.scrollspy', function () {  // do something…  }) Name Type Default Description offset number 10 Pixels to offset from top when calculating position of scroll. Event Type Description activate.bs.scrollspy This event fires whenever a new item becomes activated by the scrollspy.
  • 43. Embeds - Aspect ratios  Aspect ratios can be customized with modifier classes.
  • 44. Flex  Direction  Use .flex-row to set a horizontal direction (the browser default), or .flex- row-reverse to start the horizontal direction from the opposite side.  Use .flex-column to set a vertical direction, or .flex-column-reverse to start the vertical direction from the opposite side.  Justify content  Use justify-content utilities on flexbox containers to change the alignment of flex items on the main axis - start (browser default), end, center, between, or around.
  • 45. Flex - Alignments  Align items  Use align-items utilities on flexbox containers to change the alignment of flex items on the cross axis (the y-axis to start, x-axis if flex-direction: column). Choose from start, end, center, baseline, or stretch (browser default).  Align Self  Use align-self utilities on flexbox items to individually change their alignment on the cross axis
  • 46. Flex - Auto margins  With justify-content  move all flex items to one side, but keep another on the opposite end by mixing justify-content with margin-right: auto or margin-left: auto.  With align-items  move one flex item to the top or bottom of a container by mixing align-items, flex-direction: column, and margin-top: auto or margin- bottom: auto.
  • 48. Flex - Align content  Use align-content utilities on flexbox containers to align flex items together on the cross axis.  Choose from start (browser default), end, center, between, around, or stretch.
  • 49. Float Toggle floats on any element, across any breakpoint, using our responsive float utilities.
  • 50. Text  Text transform  <p class="text-lowercase">Lowercased text.</p>  <p class="text-uppercase">Uppercased text.</p>  <p class="text-capitalize">CapiTaliZed text.</p>  Font weight and italics  <p class="font-weight-bold">Bold text.</p>  <p class="font-weight-normal">Normal weight text.</p>  <p class="font-italic">Italic text.</p>

Editor's Notes

  1. Methods: $(".alert").alert('close') Events: $('#myAlert').on('closed.bs.alert', function () { // do something… })
  2. Sizes, alignments, Navigation, Background Colors, Bordrer