<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Bootstrap_3_vs_4</id>
	<title>Bootstrap 3 vs 4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Bootstrap_3_vs_4"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Bootstrap_3_vs_4&amp;action=history"/>
	<updated>2026-05-14T01:15:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Bootstrap_3_vs_4&amp;diff=66192&amp;oldid=prev</id>
		<title>Lsokolowski at 05:43, 13 April 2018</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Bootstrap_3_vs_4&amp;diff=66192&amp;oldid=prev"/>
		<updated>2018-04-13T05:43:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Bootstrap]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;slideshow style=&amp;quot;nobleprog&amp;quot; headingmark=&amp;quot;⌘&amp;quot; incmark=&amp;quot;…&amp;quot; scaled=&amp;quot;true&amp;quot; font=&amp;quot;Trebuchet MS&amp;quot; &amp;gt;&lt;br /&gt;
;title: Bootstrap 3 vs. 4&lt;br /&gt;
;author: Lukasz Sokolowski&lt;br /&gt;
&amp;lt;/slideshow&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Intro ⌘==&lt;br /&gt;
At the stage of HTML coding:&lt;br /&gt;
* it is always important to have at hand a good tool that will greatly accelerate the development process&lt;br /&gt;
* It should be flexible, easily customizable and will allow you to easily create mockups&lt;br /&gt;
* It should allow you to easily create pages that are well displayed on desktops and mobile devices&lt;br /&gt;
&lt;br /&gt;
== Bootstrap ⌘==&lt;br /&gt;
A powerful CSS framework for creating adaptive pages that includes:&lt;br /&gt;
* multiple-column adaptive grid&lt;br /&gt;
* ready-made elements by type of navigation, buttons, dropdowns, etc&lt;br /&gt;
* set of service classes for controlling the behavior of elements&lt;br /&gt;
* reset or normalize&lt;br /&gt;
* set up the typography in the template&lt;br /&gt;
* mediaobjects&lt;br /&gt;
* Some JS-plugins (Carousel, Modal and so on)&lt;br /&gt;
* and much more&lt;br /&gt;
&lt;br /&gt;
== B3 vs B4 ⌘==&lt;br /&gt;
&lt;br /&gt;
* Almost identical set of components and utilities&lt;br /&gt;
* But there are a lot of differences&lt;br /&gt;
&lt;br /&gt;
=== Sass vs Less ⌘===&lt;br /&gt;
&lt;br /&gt;
Source code for Bootstrap 4 uses Sass, Bootstrap 3 – Less &lt;br /&gt;
* Sass is recognized as the most widely used CSS preprocessor&lt;br /&gt;
* The code written on it is more readable and understandable&lt;br /&gt;
* Functional is slightly better than competitors&lt;br /&gt;
&lt;br /&gt;
=== Flexbox vs Floats ⌘===&lt;br /&gt;
&lt;br /&gt;
* In the 4th version you have no problem aligning vertically and the problem of columns of the same height&lt;br /&gt;
* Change the vertical and horizontal alignment on different devices using utilities and classes, such as: align-item-center, align-items-md-center, align-items-lg-start, and so on&lt;br /&gt;
* Change the order of your columns using flex-unordered, flex-last, flex-first&lt;br /&gt;
* Use mr-auto, ml-auto, which will align your element to the right or left&lt;br /&gt;
* Live example &lt;br /&gt;
** http://demo.tutorialzine.com/2016/11/boostrap-4-regular-vs-flex-grid/?1-basic-grid&lt;br /&gt;
&lt;br /&gt;
=== Responsive columns ⌘===&lt;br /&gt;
* Columns of the same width without specifying the explicitly labeled class numbers&lt;br /&gt;
** Inside your row just place as many “div” with the class col as you need and they will have the same width&lt;br /&gt;
** The result is 3 columns of the same width on all devices (there was no such possibility in the 3rd version)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;row&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;1&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;2&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;col&amp;quot;&amp;gt;3&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Responsive columns Con&amp;#039;t ⌘===&lt;br /&gt;
[[File:BootstrapCols.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Responsive con&amp;#039;t ⌘===&lt;br /&gt;
&lt;br /&gt;
* It is possible to create columns that change their width depending on the content&lt;br /&gt;
* To do this, you need to use the following class &lt;br /&gt;
** col-md-auto (instead of md substitute the another breakpoint)&lt;br /&gt;
&lt;br /&gt;
=== Media queries ⌘===&lt;br /&gt;
&lt;br /&gt;
We have the opportunity to more flexible approach to changes styles of the page on various devices&lt;br /&gt;
* in the grid system there are the following breakpoints:&lt;br /&gt;
extra large (&amp;gt;= 1200px) &lt;br /&gt;
large (&amp;gt;= 992px) &lt;br /&gt;
medium (&amp;gt;= 768px) &lt;br /&gt;
sm (&amp;gt;= 576px) &lt;br /&gt;
xs (&amp;lt; 576px) &lt;br /&gt;
* In the B3 of these breakpoints there were only 4&lt;br /&gt;
** this sometimes created some problems when marking on small tablets and phones with a big screen&lt;br /&gt;
&lt;br /&gt;
=== Flexible Con&amp;#039;t ⌘===&lt;br /&gt;
&lt;br /&gt;
* Not all elements in Bootstrap 4 have &amp;#039;&amp;#039;&amp;#039;display: flex&amp;#039;&amp;#039;&amp;#039; property&lt;br /&gt;
* If you need to make a &amp;#039;flex&amp;#039; element, then you should use the &amp;#039;&amp;#039;display&amp;#039;&amp;#039; utility&lt;br /&gt;
** For example, add a class &amp;#039;&amp;#039;&amp;#039;.d-flex&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;.d-inline-flex&amp;#039;&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;&amp;#039;.d-sm-flex&amp;#039;&amp;#039;&amp;#039;, when you need to apply the utility only for devices of the sm category and above&lt;br /&gt;
* For an item with the &amp;#039;&amp;#039;&amp;#039;.d-flex&amp;#039;&amp;#039;&amp;#039; class, there is a set of flex utilities with which&lt;br /&gt;
** you can change the axis of the container,&lt;br /&gt;
** reverse the order,&lt;br /&gt;
** align elements inside the container, and so on. &lt;br /&gt;
** these include: flex-row, flex-row-reverse, .flex-column, .flex-column-reverse, .flex-sm-row, .justify-content-start, .justify-content-start, .justify-content-sm-start and other variations&lt;br /&gt;
&lt;br /&gt;
=== Typography ⌘===&lt;br /&gt;
&lt;br /&gt;
The section of the typographies have improved indentation system for different elements (p, ul, etc.)&lt;br /&gt;
&lt;br /&gt;
== Migration to B4 ⌘==&lt;br /&gt;
&lt;br /&gt;
* Official docs&lt;br /&gt;
** https://getbootstrap.com/docs/4.0/migration/&lt;br /&gt;
* Converting&lt;br /&gt;
** One of many available exmaples&lt;br /&gt;
*** http://upgrade-bootstrap.bootply.com/&lt;/div&gt;</summary>
		<author><name>Lsokolowski</name></author>
	</entry>
</feed>