Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html « migration « 4.5 « docs - github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4b6171c2813da20a6a6dfe60d499b0a1b711b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Bootstrap 4 is a major rewrite of the entire project. The most notable changes are summarized below, followed by more specific changes to relevant components.">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Jekyll v4.1.1">

<meta name="docsearch:language" content="en">
<meta name="docsearch:version" content="4.5">

<title>Migrating to v4 · Bootstrap v4.5</title>

<link rel="canonical" href="https://getbootstrap.com/docs/4.5/migration/">

<!-- Bootstrap core CSS -->
<link href="/docs/4.5/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<!-- Documentation extras -->

<link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet">


<link href="/docs/4.5/assets/css/docs.min.css" rel="stylesheet">

<!-- Favicons -->
<link rel="apple-touch-icon" href="/docs/4.5/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="/docs/4.5/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="/docs/4.5/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="/docs/4.5/assets/img/favicons/manifest.json">
<link rel="mask-icon" href="/docs/4.5/assets/img/favicons/safari-pinned-tab.svg" color="#563d7c">
<link rel="icon" href="/docs/4.5/assets/img/favicons/favicon.ico">
<meta name="msapplication-config" content="/docs/4.5/assets/img/favicons/browserconfig.xml">
<meta name="theme-color" content="#563d7c">

<!-- Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@getbootstrap">
<meta name="twitter:creator" content="@getbootstrap">
<meta name="twitter:title" content="Migrating to v4">
<meta name="twitter:description" content="Bootstrap 4 is a major rewrite of the entire project. The most notable changes are summarized below, followed by more specific changes to relevant components.">
<meta name="twitter:image" content="https://getbootstrap.com/docs/4.5/assets/brand/bootstrap-social-logo.png">

<!-- Facebook -->
<meta property="og:url" content="https://getbootstrap.com/docs/4.5/migration/">
<meta property="og:title" content="Migrating to v4">
<meta property="og:description" content="Bootstrap 4 is a major rewrite of the entire project. The most notable changes are summarized below, followed by more specific changes to relevant components.">
<meta property="og:type" content="website">
<meta property="og:image" content="https://getbootstrap.com/docs/4.5/assets/brand/bootstrap-social.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">

<script defer src="https://cdn.usefathom.com/script.js" data-site="ITUSEYJG"></script>
<script>
  window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
  ga('create', 'UA-146052-10', 'getbootstrap.com');
  ga('set', 'anonymizeIp', true);
  ga('send', 'pageview');
</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>


  </head>
  <body>
    <div class="skippy overflow-hidden">
  <div class="container-xl">
    <a class="sr-only sr-only-focusable d-inline-flex p-2 m-1" href="#content">Skip to main content</a><a class="sr-only sr-only-focusable d-none d-md-inline-flex p-2 m-1" href="#bd-docs-nav">Skip to docs navigation</a></div>
</div>


    <header class="navbar navbar-expand navbar-dark flex-column flex-md-row bd-navbar">
  <a class="navbar-brand mr-0 mr-md-2" href="/" aria-label="Bootstrap"><svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" class="d-block" viewBox="0 0 612 612" role="img" focusable="false"><title>Bootstrap</title><path fill="currentColor" d="M510 8a94.3 94.3 0 0 1 94 94v408a94.3 94.3 0 0 1-94 94H102a94.3 94.3 0 0 1-94-94V102a94.3 94.3 0 0 1 94-94h408m0-8H102C45.9 0 0 45.9 0 102v408c0 56.1 45.9 102 102 102h408c56.1 0 102-45.9 102-102V102C612 45.9 566.1 0 510 0z"/><path fill="currentColor" d="M196.77 471.5V154.43h124.15c54.27 0 91 31.64 91 79.1 0 33-24.17 63.72-54.71 69.21v1.76c43.07 5.49 70.75 35.82 70.75 78 0 55.81-40 89-107.45 89zm39.55-180.4h63.28c46.8 0 72.29-18.68 72.29-53 0-31.42-21.53-48.78-60-48.78h-75.57zm78.22 145.46c47.68 0 72.73-19.34 72.73-56s-25.93-55.37-76.46-55.37h-74.49v111.4z"/></svg></a>

  <div class="navbar-nav-scroll">
    <ul class="navbar-nav bd-navbar-nav flex-row">
      <li class="nav-item">
        <a class="nav-link " href="/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Bootstrap');">Home</a>
      </li>
      <li class="nav-item">
        <a class="nav-link active" href="/docs/4.5/getting-started/introduction/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Docs');">Documentation</a>
      </li>
      <li class="nav-item">
        <a class="nav-link " href="/docs/4.5/examples/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Examples');">Examples</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="https://icons.getbootstrap.com/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Icons');" target="_blank" rel="noopener">Icons</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="https://themes.getbootstrap.com/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Themes');" target="_blank" rel="noopener">Themes</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="https://expo.getbootstrap.com/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Expo');" target="_blank" rel="noopener">Expo</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="https://blog.getbootstrap.com/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Blog');" target="_blank" rel="noopener">Blog</a>
      </li>
    </ul>
  </div>

  <ul class="navbar-nav ml-md-auto">
    <li class="nav-item dropdown">
      <a class="nav-item nav-link dropdown-toggle mr-md-2" href="#" id="bd-versions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        v4.5
      </a>
      <div class="dropdown-menu dropdown-menu-md-right" aria-labelledby="bd-versions">
        <a class="dropdown-item active" href="/docs/4.5/">Latest (4.5.x)</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="https://getbootstrap.com/docs/3.4/">v3.4.1</a>
        <a class="dropdown-item" href="https://getbootstrap.com/2.3.2/">v2.3.2</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="/docs/versions/">All versions</a>
      </div>
    </li>

    <li class="nav-item">
      <a class="nav-link pl-2 pr-1 mx-1 py-3 my-n2" href="https://github.com/twbs" target="_blank" rel="noopener" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 499.36" role="img" focusable="false"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg></a>
    </li>
    <li class="nav-item">
      <a class="nav-link px-1 mx-1 py-3 my-n2" href="https://twitter.com/getbootstrap" target="_blank" rel="noopener" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 416.32" role="img" focusable="false"><title>Twitter</title><path fill="currentColor" d="M160.83 416.32c193.2 0 298.92-160.22 298.92-298.92 0-4.51 0-9-.2-13.52A214 214 0 0 0 512 49.38a212.93 212.93 0 0 1-60.44 16.6 105.7 105.7 0 0 0 46.3-58.19 209 209 0 0 1-66.79 25.37 105.09 105.09 0 0 0-181.73 71.91 116.12 116.12 0 0 0 2.66 24c-87.28-4.3-164.73-46.3-216.56-109.82A105.48 105.48 0 0 0 68 159.6a106.27 106.27 0 0 1-47.53-13.11v1.43a105.28 105.28 0 0 0 84.21 103.06 105.67 105.67 0 0 1-47.33 1.84 105.06 105.06 0 0 0 98.14 72.94A210.72 210.72 0 0 1 25 370.84a202.17 202.17 0 0 1-25-1.43 298.85 298.85 0 0 0 160.83 46.92"/></svg></a>
    </li>
    <li class="nav-item">
      <a class="nav-link px-1 mx-1 py-3 my-n2" href="https://bootstrap-slack.herokuapp.com/" target="_blank" rel="noopener" aria-label="Slack"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 512" role="img" focusable="false"><title>Slack</title><path fill="currentColor" d="M210.787 234.832l68.31-22.883 22.1 65.977-68.309 22.882z"/><path fill="currentColor" d="M490.54 185.6C437.7 9.59 361.6-31.34 185.6 21.46S-31.3 150.4 21.46 326.4 150.4 543.3 326.4 490.54 543.34 361.6 490.54 185.6zM401.7 299.8l-33.15 11.05 11.46 34.38c4.5 13.92-2.87 29.06-16.78 33.56-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18l-11.46-34.38-68.36 22.92 11.46 34.38c4.5 13.92-2.87 29.06-16.78 33.56-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18l-11.46-34.43-33.15 11.05c-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18c-4.5-13.92 2.87-29.06 16.78-33.56l33.12-11.03-22.1-65.9-33.15 11.05c-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18c-4.48-13.93 2.89-29.07 16.81-33.58l33.15-11.05-11.46-34.38c-4.5-13.92 2.87-29.06 16.78-33.56s29.06 2.87 33.56 16.78l11.46 34.38 68.36-22.92-11.46-34.38c-4.5-13.92 2.87-29.06 16.78-33.56s29.06 2.87 33.56 16.78l11.47 34.42 33.15-11.05c13.92-4.5 29.06 2.87 33.56 16.78s-2.87 29.06-16.78 33.56L329.7 194.6l22.1 65.9 33.15-11.05c13.92-4.5 29.06 2.87 33.56 16.78s-2.88 29.07-16.81 33.57z"/></svg></a>
    </li>
    <li class="nav-item">
      <a class="nav-link px-1 mx-1 py-3 my-n2" href="https://opencollective.com/bootstrap/" target="_blank" rel="noopener" aria-label="Open Collective"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" fill-rule="evenodd" class="navbar-nav-svg" viewBox="0 0 40 41" role="img" focusable="false"><title>Open Collective</title><path fill-opacity=".4" d="M32.8 21c0 2.4-.8 4.9-2 6.9l5.1 5.1c2.5-3.4 4.1-7.6 4.1-12 0-4.6-1.6-8.8-4-12.2L30.7 14c1.2 2 2 4.3 2 7z"/><path d="M20 33.7a12.8 12.8 0 0 1 0-25.6c2.6 0 5 .7 7 2.1L32 5a20 20 0 1 0 .1 31.9l-5-5.2a13 13 0 0 1-7 2z"/></svg></a>
    </li>
  </ul>

  <a class="btn btn-bd-download d-none d-lg-inline-block mb-3 mb-md-0 ml-md-3" href="/docs/4.5/getting-started/download/">Download</a>
</header>


    <div class="container-fluid">
      <div class="row flex-xl-nowrap">
        <div class="col-md-3 col-xl-2 bd-sidebar">
          <form role="search" class="bd-search d-flex align-items-center">
  <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off" data-docs-version="4.5">
  <button class="btn bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation"><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30" role="img" focusable="false"><title>Menu</title><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"/></svg></button>
</form>

<nav class="collapse bd-links" id="bd-docs-nav" aria-label="Main navigation"><div class="bd-toc-item">
      <a class="bd-toc-link" href="/docs/4.5/getting-started/introduction/">
        Getting started
      </a>

      <ul class="nav bd-sidenav"><li>
            <a href="/docs/4.5/getting-started/introduction/">
              Introduction
            </a>
          </li><li>
            <a href="/docs/4.5/getting-started/download/">
              Download
            </a>
          </li><li>
            <a href="/docs/4.5/getting-started/contents/">
              Contents
            </a>
          </li><li>
            <a href="/docs/4.5/getting-started/browsers-devices/">
              Browsers & devices
            </a>
          </li><li>
            <a href="/docs/4.5/getting-started/javascript/">
              JavaScript
            </a>
          </li><li>
            <a href="/docs/4.5/getting-started/theming/">
              Theming
            </a>
          </li><li>
            <a href="/docs/4.5/getting-started/build-tools/">
              Build tools
            </a>
          </li><li>
            <a href="/docs/4.5/getting-started/webpack/">
              Webpack
            </a>
          </li><li>
            <a href="/docs/4.5/getting-started/accessibility/">
              Accessibility
            </a>
          </li></ul>
    </div><div class="bd-toc-item">
      <a class="bd-toc-link" href="/docs/4.5/layout/overview/">
        Layout
      </a>

      <ul class="nav bd-sidenav"><li>
            <a href="/docs/4.5/layout/overview/">
              Overview
            </a>
          </li><li>
            <a href="/docs/4.5/layout/grid/">
              Grid
            </a>
          </li><li>
            <a href="/docs/4.5/layout/utilities-for-layout/">
              Utilities for layout
            </a>
          </li></ul>
    </div><div class="bd-toc-item">
      <a class="bd-toc-link" href="/docs/4.5/content/reboot/">
        Content
      </a>

      <ul class="nav bd-sidenav"><li>
            <a href="/docs/4.5/content/reboot/">
              Reboot
            </a>
          </li><li>
            <a href="/docs/4.5/content/typography/">
              Typography
            </a>
          </li><li>
            <a href="/docs/4.5/content/code/">
              Code
            </a>
          </li><li>
            <a href="/docs/4.5/content/images/">
              Images
            </a>
          </li><li>
            <a href="/docs/4.5/content/tables/">
              Tables
            </a>
          </li><li>
            <a href="/docs/4.5/content/figures/">
              Figures
            </a>
          </li></ul>
    </div><div class="bd-toc-item">
      <a class="bd-toc-link" href="/docs/4.5/components/alerts/">
        Components
      </a>

      <ul class="nav bd-sidenav"><li>
            <a href="/docs/4.5/components/alerts/">
              Alerts
            </a>
          </li><li>
            <a href="/docs/4.5/components/badge/">
              Badge
            </a>
          </li><li>
            <a href="/docs/4.5/components/breadcrumb/">
              Breadcrumb
            </a>
          </li><li>
            <a href="/docs/4.5/components/buttons/">
              Buttons
            </a>
          </li><li>
            <a href="/docs/4.5/components/button-group/">
              Button group
            </a>
          </li><li>
            <a href="/docs/4.5/components/card/">
              Card
            </a>
          </li><li>
            <a href="/docs/4.5/components/carousel/">
              Carousel
            </a>
          </li><li>
            <a href="/docs/4.5/components/collapse/">
              Collapse
            </a>
          </li><li>
            <a href="/docs/4.5/components/dropdowns/">
              Dropdowns
            </a>
          </li><li>
            <a href="/docs/4.5/components/forms/">
              Forms
            </a>
          </li><li>
            <a href="/docs/4.5/components/input-group/">
              Input group
            </a>
          </li><li>
            <a href="/docs/4.5/components/jumbotron/">
              Jumbotron
            </a>
          </li><li>
            <a href="/docs/4.5/components/list-group/">
              List group
            </a>
          </li><li>
            <a href="/docs/4.5/components/media-object/">
              Media object
            </a>
          </li><li>
            <a href="/docs/4.5/components/modal/">
              Modal
            </a>
          </li><li>
            <a href="/docs/4.5/components/navs/">
              Navs
            </a>
          </li><li>
            <a href="/docs/4.5/components/navbar/">
              Navbar
            </a>
          </li><li>
            <a href="/docs/4.5/components/pagination/">
              Pagination
            </a>
          </li><li>
            <a href="/docs/4.5/components/popovers/">
              Popovers
            </a>
          </li><li>
            <a href="/docs/4.5/components/progress/">
              Progress
            </a>
          </li><li>
            <a href="/docs/4.5/components/scrollspy/">
              Scrollspy
            </a>
          </li><li>
            <a href="/docs/4.5/components/spinners/">
              Spinners
            </a>
          </li><li>
            <a href="/docs/4.5/components/toasts/">
              Toasts
            </a>
          </li><li>
            <a href="/docs/4.5/components/tooltips/">
              Tooltips
            </a>
          </li></ul>
    </div><div class="bd-toc-item">
      <a class="bd-toc-link" href="/docs/4.5/utilities/borders/">
        Utilities
      </a>

      <ul class="nav bd-sidenav"><li>
            <a href="/docs/4.5/utilities/borders/">
              Borders
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/clearfix/">
              Clearfix
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/close-icon/">
              Close icon
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/colors/">
              Colors
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/display/">
              Display
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/embed/">
              Embed
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/flex/">
              Flex
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/float/">
              Float
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/image-replacement/">
              Image replacement
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/interactions/">
              Interactions
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/overflow/">
              Overflow
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/position/">
              Position
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/screen-readers/">
              Screen readers
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/shadows/">
              Shadows
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/sizing/">
              Sizing
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/spacing/">
              Spacing
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/stretched-link/">
              Stretched link
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/text/">
              Text
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/vertical-align/">
              Vertical align
            </a>
          </li><li>
            <a href="/docs/4.5/utilities/visibility/">
              Visibility
            </a>
          </li></ul>
    </div><div class="bd-toc-item">
      <a class="bd-toc-link" href="/docs/4.5/extend/approach/">
        Extend
      </a>

      <ul class="nav bd-sidenav"><li>
            <a href="/docs/4.5/extend/approach/">
              Approach
            </a>
          </li><li>
            <a href="/docs/4.5/extend/icons/">
              Icons
            </a>
          </li></ul>
    </div><div class="bd-toc-item active">
      <a class="bd-toc-link" href="/docs/4.5/migration/">
        Migration
      </a>

      <ul class="nav bd-sidenav"></ul>
    </div><div class="bd-toc-item">
      <a class="bd-toc-link" href="/docs/4.5/about/overview/">
        About
      </a>

      <ul class="nav bd-sidenav"><li>
            <a href="/docs/4.5/about/overview/">
              Overview
            </a>
          </li><li>
            <a href="/docs/4.5/about/team/">
              Team
            </a>
          </li><li>
            <a href="/docs/4.5/about/brand/">
              Brand
            </a>
          </li><li>
            <a href="/docs/4.5/about/license/">
              License
            </a>
          </li><li>
            <a href="/docs/4.5/about/translations/">
              Translations
            </a>
          </li></ul>
    </div></nav>

        </div>


          <nav class="d-none d-xl-block col-xl-2 bd-toc" aria-label="Secondary navigation">
            <ul class="section-nav">
<li class="toc-entry toc-h2"><a href="#stable-changes">Stable changes</a>
<ul>
<li class="toc-entry toc-h3"><a href="#printing">Printing</a></li>
</ul>
</li>
<li class="toc-entry toc-h2"><a href="#beta-3-changes">Beta 3 changes</a>
<ul>
<li class="toc-entry toc-h3"><a href="#miscellaneous">Miscellaneous</a></li>
<li class="toc-entry toc-h3"><a href="#forms">Forms</a></li>
<li class="toc-entry toc-h3"><a href="#input-groups">Input groups</a></li>
</ul>
</li>
<li class="toc-entry toc-h2"><a href="#beta-2-changes">Beta 2 changes</a>
<ul>
<li class="toc-entry toc-h3"><a href="#breaking">Breaking</a></li>
<li class="toc-entry toc-h3"><a href="#highlights">Highlights</a></li>
</ul>
</li>
<li class="toc-entry toc-h2"><a href="#summary">Summary</a>
<ul>
<li class="toc-entry toc-h3"><a href="#browser-support">Browser support</a></li>
<li class="toc-entry toc-h3"><a href="#global-changes">Global changes</a></li>
<li class="toc-entry toc-h3"><a href="#grid-system">Grid system</a></li>
<li class="toc-entry toc-h3"><a href="#components">Components</a></li>
</ul>
</li>
<li class="toc-entry toc-h2"><a href="#by-component">By component</a>
<ul>
<li class="toc-entry toc-h3"><a href="#reboot">Reboot</a></li>
<li class="toc-entry toc-h3"><a href="#typography">Typography</a></li>
<li class="toc-entry toc-h3"><a href="#images">Images</a></li>
<li class="toc-entry toc-h3"><a href="#tables">Tables</a></li>
<li class="toc-entry toc-h3"><a href="#forms-1">Forms</a></li>
<li class="toc-entry toc-h3"><a href="#buttons">Buttons</a></li>
<li class="toc-entry toc-h3"><a href="#button-group">Button group</a></li>
<li class="toc-entry toc-h3"><a href="#dropdowns">Dropdowns</a></li>
<li class="toc-entry toc-h3"><a href="#grid-system-1">Grid system</a></li>
<li class="toc-entry toc-h3"><a href="#list-groups">List groups</a></li>
<li class="toc-entry toc-h3"><a href="#modal">Modal</a></li>
<li class="toc-entry toc-h3"><a href="#navs">Navs</a></li>
<li class="toc-entry toc-h3"><a href="#navbar">Navbar</a></li>
<li class="toc-entry toc-h3"><a href="#pagination">Pagination</a></li>
<li class="toc-entry toc-h3"><a href="#breadcrumbs">Breadcrumbs</a></li>
<li class="toc-entry toc-h3"><a href="#labels-and-badges">Labels and badges</a></li>
<li class="toc-entry toc-h3"><a href="#panels-thumbnails-and-wells">Panels, thumbnails, and wells</a></li>
<li class="toc-entry toc-h3"><a href="#panels">Panels</a></li>
<li class="toc-entry toc-h3"><a href="#progress">Progress</a></li>
<li class="toc-entry toc-h3"><a href="#carousel">Carousel</a></li>
<li class="toc-entry toc-h3"><a href="#tables-1">Tables</a></li>
<li class="toc-entry toc-h3"><a href="#utilities">Utilities</a></li>
<li class="toc-entry toc-h3"><a href="#vendor-prefix-mixins">Vendor prefix mixins</a></li>
</ul>
</li>
<li class="toc-entry toc-h2"><a href="#documentation">Documentation</a>
<ul>
<li class="toc-entry toc-h3"><a href="#responsive-utilities">Responsive utilities</a></li>
</ul>
</li>
</ul>
          </nav>


        <main class="col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
          <div class="d-md-flex flex-md-row-reverse align-items-center justify-content-between">
            <a class="btn btn-sm btn-bd-light my-2 my-md-0" href="https://github.com/twbs/bootstrap/blob/v4-dev/site/docs/4.5/migration.md" title="View and edit this file on GitHub" target="_blank" rel="noopener">View on GitHub</a>
            <h1 class="bd-title" id="content">Migrating to v4</h1>
          </div>
          <p class="bd-lead">Bootstrap 4 is a major rewrite of the entire project. The most notable changes are summarized below, followed by more specific changes to relevant components.</p>
          <script async src="https://cdn.carbonads.com/carbon.js?serve=CKYIKKJL&placement=getbootstrapcom" id="_carbonads_js"></script>

          <h2 id="stable-changes">Stable changes</h2>

<p>Moving from Beta 3 to our stable v4.x release, there are no breaking changes, but there are some notable changes.</p>

<h3 id="printing">Printing</h3>
<ul>
  <li>
    <p>Fixed broken print utilities. Previously, using a <code class="language-plaintext highlighter-rouge">.d-print-*</code> class would unexpectedly overrule any other <code class="language-plaintext highlighter-rouge">.d-*</code> class. Now, they match our other display utilities and only apply to that media (<code class="language-plaintext highlighter-rouge">@media print</code>).</p>
  </li>
  <li>
    <p>Expanded available print display utilities to match other utilities. Beta 3 and older only had <code class="language-plaintext highlighter-rouge">block</code>, <code class="language-plaintext highlighter-rouge">inline-block</code>, <code class="language-plaintext highlighter-rouge">inline</code>, and <code class="language-plaintext highlighter-rouge">none</code>. Stable v4 added <code class="language-plaintext highlighter-rouge">flex</code>, <code class="language-plaintext highlighter-rouge">inline-flex</code>, <code class="language-plaintext highlighter-rouge">table</code>, <code class="language-plaintext highlighter-rouge">table-row</code>, and <code class="language-plaintext highlighter-rouge">table-cell</code>.</p>
  </li>
  <li>
    <p>Fixed print preview rendering across browsers with new print styles that specify <code class="language-plaintext highlighter-rouge">@page</code> <code class="language-plaintext highlighter-rouge">size</code>.</p>
  </li>
</ul>

<h2 id="beta-3-changes">Beta 3 changes</h2>

<p>While Beta 2 saw the bulk of our breaking changes during the beta phase, but we still have a few that needed to be addressed in the Beta 3 release. These changes apply if you’re updating to Beta 3 from Beta 2 or any older version of Bootstrap.</p>

<h3 id="miscellaneous">Miscellaneous</h3>

<ul>
  <li>Removed the unused <code class="language-plaintext highlighter-rouge">$thumbnail-transition</code> variable. We weren’t transitioning anything, so it was just extra code.</li>
  <li>The npm package no longer includes any files other than our source and dist files; if you relied on them and were running our scripts via the <code class="language-plaintext highlighter-rouge">node_modules</code> folder, you should adapt your workflow.</li>
</ul>

<h3 id="forms">Forms</h3>

<ul>
  <li>
    <p>Rewrote both custom and default checkboxes and radios. Now, both have matching HTML structure (outer <code class="language-plaintext highlighter-rouge">&lt;div&gt;</code> with sibling <code class="language-plaintext highlighter-rouge">&lt;input&gt;</code> and <code class="language-plaintext highlighter-rouge">&lt;label&gt;</code>) and the same layout styles (stacked default, inline with modifier class). This allows us to style the label based on the input’s state, simplifying support for the <code class="language-plaintext highlighter-rouge">disabled</code> attribute (previously requiring a parent class) and better supporting our form validation.</p>

    <p>As part of this, we’ve changed the CSS for managing multiple <code class="language-plaintext highlighter-rouge">background-image</code>s on custom form checkboxes and radios. Previously, the now removed <code class="language-plaintext highlighter-rouge">.custom-control-indicator</code> element had the background color, gradient, and SVG icon. Customizing the background gradient meant replacing all of those every time you needed to change just one. Now, we have <code class="language-plaintext highlighter-rouge">.custom-control-label::before</code> for the fill and gradient and <code class="language-plaintext highlighter-rouge">.custom-control-label::after</code> handles the icon.</p>

    <p>To make a custom check inline, add <code class="language-plaintext highlighter-rouge">.custom-control-inline</code>.</p>
  </li>
  <li>
    <p>Updated selector for input-based button groups. Instead of <code class="language-plaintext highlighter-rouge">[data-toggle="buttons"] { }</code> for style and behavior, we use the <code class="language-plaintext highlighter-rouge">data</code> attribute just for JS behaviors and rely on a new <code class="language-plaintext highlighter-rouge">.btn-group-toggle</code> class for styling.</p>
  </li>
  <li>
    <p>Removed <code class="language-plaintext highlighter-rouge">.col-form-legend</code> in favor of a slightly improved <code class="language-plaintext highlighter-rouge">.col-form-label</code>. This way <code class="language-plaintext highlighter-rouge">.col-form-label-sm</code> and <code class="language-plaintext highlighter-rouge">.col-form-label-lg</code> can be used on <code class="language-plaintext highlighter-rouge">&lt;legend&gt;</code> elements with ease.</p>
  </li>
  <li>
    <p>Custom file inputs received a change to their <code class="language-plaintext highlighter-rouge">$custom-file-text</code> Sass variable. It’s no longer a nested Sass map and now only powers one string—the <code class="language-plaintext highlighter-rouge">Browse</code> button as that is now the only pseudo-element generated from our Sass. The <code class="language-plaintext highlighter-rouge">Choose file</code> text now comes from the <code class="language-plaintext highlighter-rouge">.custom-file-label</code>.</p>
  </li>
</ul>

<h3 id="input-groups">Input groups</h3>

<ul>
  <li>
    <p>Input group addons are now specific to their placement relative to an input. We’ve dropped <code class="language-plaintext highlighter-rouge">.input-group-addon</code> and <code class="language-plaintext highlighter-rouge">.input-group-btn</code> for two new classes, <code class="language-plaintext highlighter-rouge">.input-group-prepend</code> and <code class="language-plaintext highlighter-rouge">.input-group-append</code>. You must explicitly use an append or a prepend now, simplifying much of our CSS. Within an append or prepend, place your buttons as they would exist anywhere else, but wrap text in <code class="language-plaintext highlighter-rouge">.input-group-text</code>.</p>
  </li>
  <li>
    <p>Validation styles are now supported, as are multiple inputs (though you can only validate one input per group).</p>
  </li>
  <li>
    <p>Sizing classes must be on the parent <code class="language-plaintext highlighter-rouge">.input-group</code> and not the individual form elements.</p>
  </li>
</ul>

<h2 id="beta-2-changes">Beta 2 changes</h2>

<p>While in beta, we aim to have no breaking changes. However, things don’t always go as planned. Below are the breaking changes to bear in mind when moving from Beta 1 to Beta 2.</p>

<h3 id="breaking">Breaking</h3>

<ul>
  <li>Removed <code class="language-plaintext highlighter-rouge">$badge-color</code> variable and its usage on <code class="language-plaintext highlighter-rouge">.badge</code>. We use a color contrast function to pick a <code class="language-plaintext highlighter-rouge">color</code> based on the <code class="language-plaintext highlighter-rouge">background-color</code>, so the variable is unnecessary.</li>
  <li>Renamed <code class="language-plaintext highlighter-rouge">grayscale()</code> function to <code class="language-plaintext highlighter-rouge">gray()</code> to avoid breaking conflict with the CSS native <code class="language-plaintext highlighter-rouge">grayscale</code> filter.</li>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.table-inverse</code>, <code class="language-plaintext highlighter-rouge">.thead-inverse</code>, and <code class="language-plaintext highlighter-rouge">.thead-default</code> to <code class="language-plaintext highlighter-rouge">.*-dark</code> and <code class="language-plaintext highlighter-rouge">.*-light</code>, matching our color schemes used elsewhere.</li>
  <li>Responsive tables now generate classes for each grid breakpoint. This breaks from Beta 1 in that the <code class="language-plaintext highlighter-rouge">.table-responsive</code> you’ve been using is more like <code class="language-plaintext highlighter-rouge">.table-responsive-md</code>. You may now use <code class="language-plaintext highlighter-rouge">.table-responsive</code> or <code class="language-plaintext highlighter-rouge">.table-responsive-{sm,md,lg,xl}</code> as needed.</li>
  <li>Dropped Bower support as the package manager has been deprecated for alternatives (e.g., Yarn or npm). <a href="https://github.com/bower/bower/issues/2298">See bower/bower#2298</a> for details.</li>
  <li>Bootstrap still requires jQuery 1.9.1 or higher, but you’re advised to use version 3.x since v3.x’s supported browsers are the ones Bootstrap supports plus v3.x has some security fixes.</li>
  <li>Removed the unused <code class="language-plaintext highlighter-rouge">.form-control-label</code> class. If you did make use of this class, it was duplicate of the <code class="language-plaintext highlighter-rouge">.col-form-label</code> class that vertically centered a <code class="language-plaintext highlighter-rouge">&lt;label&gt;</code> with it’s associated input in horizontal form layouts.</li>
  <li>Changed the <code class="language-plaintext highlighter-rouge">color-yiq</code> from a mixin that included the <code class="language-plaintext highlighter-rouge">color</code> property to a function that returns a value, allowing you to use it for any CSS property. For example, instead of <code class="language-plaintext highlighter-rouge">color-yiq(#000)</code>, you’d write <code class="language-plaintext highlighter-rouge">color: color-yiq(#000);</code>.</li>
</ul>

<h3 id="highlights">Highlights</h3>

<ul>
  <li>Introduced new <code class="language-plaintext highlighter-rouge">pointer-events</code> usage on modals. The outer <code class="language-plaintext highlighter-rouge">.modal-dialog</code> passes through events with <code class="language-plaintext highlighter-rouge">pointer-events: none</code> for custom click handling (making it possible to just listen on the <code class="language-plaintext highlighter-rouge">.modal-backdrop</code> for any clicks), and then counteracts it for the actual <code class="language-plaintext highlighter-rouge">.modal-content</code> with <code class="language-plaintext highlighter-rouge">pointer-events: auto</code>.</li>
</ul>

<h2 id="summary">Summary</h2>

<p>Here are the big ticket items you’ll want to be aware of when moving from v3 to v4.</p>

<h3 id="browser-support">Browser support</h3>

<ul>
  <li>Dropped IE8, IE9, and iOS 6 support. v4 is now only IE10+ and iOS 7+. For sites needing either of those, use v3.</li>
  <li>Added official support for Android v5.0 Lollipop’s Browser and WebView. Earlier versions of the Android Browser and WebView remain only unofficially supported.</li>
</ul>

<h3 id="global-changes">Global changes</h3>

<ul>
  <li><strong>Flexbox is enabled by default.</strong> In general this means a move away from floats and more across our components.</li>
  <li>Switched from <a href="http://lesscss.org/">Less</a> to <a href="https://sass-lang.com/">Sass</a> for our source CSS files.</li>
  <li>Switched from <code class="language-plaintext highlighter-rouge">px</code> to <code class="language-plaintext highlighter-rouge">rem</code> as our primary CSS unit, though pixels are still used for media queries and grid behavior as device viewports are not affected by type size.</li>
  <li>Global font-size increased from <code class="language-plaintext highlighter-rouge">14px</code> to <code class="language-plaintext highlighter-rouge">16px</code>.</li>
  <li>Revamped grid tiers to add a fifth option (addressing smaller devices at <code class="language-plaintext highlighter-rouge">576px</code> and below) and removed the <code class="language-plaintext highlighter-rouge">-xs</code> infix from those classes. Example: <code class="language-plaintext highlighter-rouge">.col-6.col-sm-4.col-md-3</code>.</li>
  <li>Replaced the separate optional theme with configurable options via SCSS variables (e.g., <code class="language-plaintext highlighter-rouge">$enable-gradients: true</code>).</li>
  <li>Build system overhauled to use a series of npm scripts instead of Grunt. See <code class="language-plaintext highlighter-rouge">package.json</code> for all scripts, or our project readme for local development needs.</li>
  <li>Non-responsive usage of Bootstrap is no longer supported.</li>
  <li>Dropped the online Customizer in favor of more extensive setup documentation and customized builds.</li>
  <li>Added dozens of new <a href="/docs/4.5/utilities/">utility classes</a> for common CSS property-value pairs and margin/padding spacing shortcuts.</li>
</ul>

<h3 id="grid-system">Grid system</h3>

<ul>
  <li><strong>Moved to flexbox.</strong>
    <ul>
      <li>Added support for flexbox in the grid mixins and predefined classes.</li>
      <li>As part of flexbox, included support for vertical and horizontal alignment classes.</li>
    </ul>
  </li>
  <li><strong>Updated grid class names and a new grid tier.</strong>
    <ul>
      <li>Added a new <code class="language-plaintext highlighter-rouge">sm</code> grid tier below <code class="language-plaintext highlighter-rouge">768px</code> for more granular control. We now have <code class="language-plaintext highlighter-rouge">xs</code>, <code class="language-plaintext highlighter-rouge">sm</code>, <code class="language-plaintext highlighter-rouge">md</code>, <code class="language-plaintext highlighter-rouge">lg</code>, and <code class="language-plaintext highlighter-rouge">xl</code>. This also means every tier has been bumped up one level (so <code class="language-plaintext highlighter-rouge">.col-md-6</code> in v3 is now <code class="language-plaintext highlighter-rouge">.col-lg-6</code> in v4).</li>
      <li><code class="language-plaintext highlighter-rouge">xs</code> grid classes have been modified to not require the infix to more accurately represent that they start applying styles at <code class="language-plaintext highlighter-rouge">min-width: 0</code> and not a set pixel value. Instead of <code class="language-plaintext highlighter-rouge">.col-xs-6</code>, it’s now <code class="language-plaintext highlighter-rouge">.col-6</code>. All other grid tiers require the infix (e.g., <code class="language-plaintext highlighter-rouge">sm</code>).</li>
    </ul>
  </li>
  <li><strong>Updated grid sizes, mixins, and variables.</strong>
    <ul>
      <li>Grid gutters now have a Sass map so you can specify specific gutter widths at each breakpoint.</li>
      <li>Updated grid mixins to utilize a <code class="language-plaintext highlighter-rouge">make-col-ready</code> prep mixin and a <code class="language-plaintext highlighter-rouge">make-col</code> to set the <code class="language-plaintext highlighter-rouge">flex</code> and <code class="language-plaintext highlighter-rouge">max-width</code> for individual column sizing.</li>
      <li>Changed grid system media query breakpoints and container widths to account for new grid tier and ensure columns are evenly divisible by <code class="language-plaintext highlighter-rouge">12</code> at their max width.</li>
      <li>Grid breakpoints and container widths are now handled via Sass maps (<code class="language-plaintext highlighter-rouge">$grid-breakpoints</code> and <code class="language-plaintext highlighter-rouge">$container-max-widths</code>) instead of a handful of separate variables. These replace the <code class="language-plaintext highlighter-rouge">@screen-*</code> variables entirely and allow you to fully customize the grid tiers.</li>
      <li>Media queries have also changed. Instead of repeating our media query declarations with the same value each time, we now have <code class="language-plaintext highlighter-rouge">@include media-breakpoint-up/down/only</code>. Now, instead of writing <code class="language-plaintext highlighter-rouge">@media (min-width: @screen-sm-min) { ... }</code>, you can write <code class="language-plaintext highlighter-rouge">@include media-breakpoint-up(sm) { ... }</code>.</li>
    </ul>
  </li>
</ul>

<h3 id="components">Components</h3>

<ul>
  <li><strong>Dropped panels, thumbnails, and wells</strong> for a new all-encompassing component, <a href="/docs/4.5/components/card/">cards</a>.</li>
  <li><strong>Dropped the Glyphicons icon font.</strong> If you need icons, some options are:
    <ul>
      <li>the upstream version of <a href="https://www.glyphicons.com/">Glyphicons</a></li>
      <li><a href="https://octicons.github.com/">Octicons</a></li>
      <li><a href="https://fontawesome.com/">Font Awesome</a></li>
      <li>See the <a href="/docs/4.5/extend/icons/">Extend page</a> for a list of alternatives. Have additional suggestions? Please open an issue or PR.</li>
    </ul>
  </li>
  <li><strong>Dropped the Affix jQuery plugin.</strong>
    <ul>
      <li>We recommend using <code class="language-plaintext highlighter-rouge">position: sticky</code> instead. <a href="https://html5please.com/#sticky">See the HTML5 Please entry</a> for details and specific polyfill recommendations. One suggestion is to use an <code class="language-plaintext highlighter-rouge">@supports</code> rule for implementing it (e.g., <code class="language-plaintext highlighter-rouge">@supports (position: sticky) { ... }</code>)</li>
      <li>If you were using Affix to apply additional, non-<code class="language-plaintext highlighter-rouge">position</code> styles, the polyfills might not support your use case. One option for such uses is the third-party <a href="https://github.com/acch/scrollpos-styler">ScrollPos-Styler</a> library.</li>
    </ul>
  </li>
  <li><strong>Dropped the pager component</strong> as it was essentially slightly customized buttons.</li>
  <li><strong>Refactored nearly all components</strong> to use more un-nested class selectors instead of over-specific children selectors.</li>
</ul>

<h2 id="by-component">By component</h2>

<p>This list highlights key changes by component between v3.x.x and v4.0.0.</p>

<h3 id="reboot">Reboot</h3>

<p>New to Bootstrap 4 is the <a href="/docs/4.5/content/reboot/">Reboot</a>, a new stylesheet that builds on Normalize with our own somewhat opinionated reset styles. Selectors appearing in this file only use elements—there are no classes here. This isolates our reset styles from our component styles for a more modular approach. Some of the most important resets this includes are the <code class="language-plaintext highlighter-rouge">box-sizing: border-box</code> change, moving from <code class="language-plaintext highlighter-rouge">em</code> to <code class="language-plaintext highlighter-rouge">rem</code> units on many elements, link styles, and many form element resets.</p>

<h3 id="typography">Typography</h3>

<ul>
  <li>Moved all <code class="language-plaintext highlighter-rouge">.text-</code> utilities to the <code class="language-plaintext highlighter-rouge">_utilities.scss</code> file.</li>
  <li>Dropped <code class="language-plaintext highlighter-rouge">.page-header</code> as its styles can be applied via utilities.</li>
  <li><code class="language-plaintext highlighter-rouge">.dl-horizontal</code> has been dropped. Instead, use <code class="language-plaintext highlighter-rouge">.row</code> on <code class="language-plaintext highlighter-rouge">&lt;dl&gt;</code> and use grid column classes (or mixins) on its <code class="language-plaintext highlighter-rouge">&lt;dt&gt;</code> and <code class="language-plaintext highlighter-rouge">&lt;dd&gt;</code> children.</li>
  <li>Redesigned blockquotes, moving their styles from the <code class="language-plaintext highlighter-rouge">&lt;blockquote&gt;</code> element to a single class, <code class="language-plaintext highlighter-rouge">.blockquote</code>. Dropped the <code class="language-plaintext highlighter-rouge">.blockquote-reverse</code> modifier for text utilities.</li>
  <li><code class="language-plaintext highlighter-rouge">.list-inline</code> now requires that its children list items have the new <code class="language-plaintext highlighter-rouge">.list-inline-item</code> class applied to them.</li>
</ul>

<h3 id="images">Images</h3>

<ul>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.img-responsive</code> to <code class="language-plaintext highlighter-rouge">.img-fluid</code>.</li>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.img-rounded</code> to <code class="language-plaintext highlighter-rouge">.rounded</code></li>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.img-circle</code> to <code class="language-plaintext highlighter-rouge">.rounded-circle</code></li>
</ul>

<h3 id="tables">Tables</h3>

<ul>
  <li>Nearly all instances of the <code class="language-plaintext highlighter-rouge">&gt;</code> selector have been removed, meaning nested tables will now automatically inherit styles from their parents. This greatly simplifies our selectors and potential customizations.</li>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.table-condensed</code> to <code class="language-plaintext highlighter-rouge">.table-sm</code> for consistency.</li>
  <li>Added a new <code class="language-plaintext highlighter-rouge">.table-inverse</code> option.</li>
  <li>Added table header modifiers: <code class="language-plaintext highlighter-rouge">.thead-default</code> and <code class="language-plaintext highlighter-rouge">.thead-inverse</code>.</li>
  <li>Renamed contextual classes to have a <code class="language-plaintext highlighter-rouge">.table-</code>-prefix. Hence <code class="language-plaintext highlighter-rouge">.active</code>, <code class="language-plaintext highlighter-rouge">.success</code>, <code class="language-plaintext highlighter-rouge">.warning</code>, <code class="language-plaintext highlighter-rouge">.danger</code> and <code class="language-plaintext highlighter-rouge">.info</code> to <code class="language-plaintext highlighter-rouge">.table-active</code>, <code class="language-plaintext highlighter-rouge">.table-success</code>, <code class="language-plaintext highlighter-rouge">.table-warning</code>, <code class="language-plaintext highlighter-rouge">.table-danger</code> and <code class="language-plaintext highlighter-rouge">.table-info</code>.</li>
</ul>

<h3 id="forms-1">Forms</h3>

<ul>
  <li>Moved element resets to the <code class="language-plaintext highlighter-rouge">_reboot.scss</code> file.</li>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.control-label</code> to <code class="language-plaintext highlighter-rouge">.col-form-label</code>.</li>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.input-lg</code> and <code class="language-plaintext highlighter-rouge">.input-sm</code> to <code class="language-plaintext highlighter-rouge">.form-control-lg</code> and <code class="language-plaintext highlighter-rouge">.form-control-sm</code>, respectively.</li>
  <li>Dropped <code class="language-plaintext highlighter-rouge">.form-group-*</code> classes for simplicity’s sake. Use <code class="language-plaintext highlighter-rouge">.form-control-*</code> classes instead now.</li>
  <li>Dropped <code class="language-plaintext highlighter-rouge">.help-block</code> and replaced it with <code class="language-plaintext highlighter-rouge">.form-text</code> for block-level help text. For inline help text and other flexible options, use utility classes like <code class="language-plaintext highlighter-rouge">.text-muted</code>.</li>
  <li>Dropped <code class="language-plaintext highlighter-rouge">.radio-inline</code> and <code class="language-plaintext highlighter-rouge">.checkbox-inline</code>.</li>
  <li>Consolidated <code class="language-plaintext highlighter-rouge">.checkbox</code> and <code class="language-plaintext highlighter-rouge">.radio</code> into <code class="language-plaintext highlighter-rouge">.form-check</code> and the various <code class="language-plaintext highlighter-rouge">.form-check-*</code> classes.</li>
  <li>Horizontal forms overhauled:
    <ul>
      <li>Dropped the <code class="language-plaintext highlighter-rouge">.form-horizontal</code> class requirement.</li>
      <li><code class="language-plaintext highlighter-rouge">.form-group</code> no longer applies styles from the <code class="language-plaintext highlighter-rouge">.row</code> via mixin, so <code class="language-plaintext highlighter-rouge">.row</code> is now required for horizontal grid layouts (e.g., <code class="language-plaintext highlighter-rouge">&lt;div class="form-group row"&gt;</code>).</li>
      <li>Added new <code class="language-plaintext highlighter-rouge">.col-form-label</code> class to vertically center labels with <code class="language-plaintext highlighter-rouge">.form-control</code>s.</li>
      <li>Added new <code class="language-plaintext highlighter-rouge">.form-row</code> for compact form layouts with the grid classes (swap your <code class="language-plaintext highlighter-rouge">.row</code> for a <code class="language-plaintext highlighter-rouge">.form-row</code> and go).</li>
    </ul>
  </li>
  <li>Added custom forms support (for checkboxes, radios, selects, and file inputs).</li>
  <li>Replaced <code class="language-plaintext highlighter-rouge">.has-error</code>, <code class="language-plaintext highlighter-rouge">.has-warning</code>, and <code class="language-plaintext highlighter-rouge">.has-success</code> classes with HTML5 form validation via CSS’s <code class="language-plaintext highlighter-rouge">:invalid</code> and <code class="language-plaintext highlighter-rouge">:valid</code> pseudo-classes.</li>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.form-control-static</code> to <code class="language-plaintext highlighter-rouge">.form-control-plaintext</code>.</li>
</ul>

<h3 id="buttons">Buttons</h3>

<ul>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.btn-default</code> to <code class="language-plaintext highlighter-rouge">.btn-secondary</code>.</li>
  <li>Dropped the <code class="language-plaintext highlighter-rouge">.btn-xs</code> class entirely as <code class="language-plaintext highlighter-rouge">.btn-sm</code> is proportionally much smaller than v3’s.</li>
  <li>The <a href="https://getbootstrap.com/docs/3.3/javascript/#buttons-stateful">stateful button</a> feature of the <code class="language-plaintext highlighter-rouge">button.js</code> jQuery plugin has been dropped. This includes the <code class="language-plaintext highlighter-rouge">$().button(string)</code> and <code class="language-plaintext highlighter-rouge">$().button('reset')</code> methods. We advise using a tiny bit of custom JavaScript instead, which will have the benefit of behaving exactly the way you want it to.
    <ul>
      <li>Note that the other features of the plugin (button checkboxes, button radios, single-toggle buttons) have been retained in v4.</li>
    </ul>
  </li>
  <li>Change buttons’ <code class="language-plaintext highlighter-rouge">[disabled]</code> to <code class="language-plaintext highlighter-rouge">:disabled</code> as IE9+ supports <code class="language-plaintext highlighter-rouge">:disabled</code>. However <code class="language-plaintext highlighter-rouge">fieldset[disabled]</code> is still necessary because <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset#Browser_compatibility">native disabled fieldsets are still buggy in IE11</a>.</li>
</ul>

<h3 id="button-group">Button group</h3>

<ul>
  <li>Rewrote component with flexbox.</li>
  <li>Removed <code class="language-plaintext highlighter-rouge">.btn-group-justified</code>. As a replacement you can use <code class="language-plaintext highlighter-rouge">&lt;div class="btn-group d-flex" role="group"&gt;&lt;/div&gt;</code> as a wrapper around elements with <code class="language-plaintext highlighter-rouge">.w-100</code>.</li>
  <li>Dropped the <code class="language-plaintext highlighter-rouge">.btn-group-xs</code> class entirely given removal of <code class="language-plaintext highlighter-rouge">.btn-xs</code>.</li>
  <li>Removed explicit spacing between button groups in button toolbars; use margin utilities now.</li>
  <li>Improved documentation for use with other components.</li>
</ul>

<h3 id="dropdowns">Dropdowns</h3>

<ul>
  <li>Switched from parent selectors to singular classes for all components, modifiers, etc.</li>
  <li>Simplified dropdown styles to no longer ship with upward or downward facing arrows attached to the dropdown menu.</li>
  <li>Dropdowns can be built with <code class="language-plaintext highlighter-rouge">&lt;div&gt;</code>s or <code class="language-plaintext highlighter-rouge">&lt;ul&gt;</code>s now.</li>
  <li>Rebuilt dropdown styles and markup to provide easy, built-in support for <code class="language-plaintext highlighter-rouge">&lt;a&gt;</code> and <code class="language-plaintext highlighter-rouge">&lt;button&gt;</code> based dropdown items.</li>
  <li>Renamed <code class="language-plaintext highlighter-rouge">.divider</code> to <code class="language-plaintext highlighter-rouge">.dropdown-divider</code>.</li>
  <li>Dropdown items now require <code class="language-plaintext highlighter-rouge">.dropdown-item</code>.</li>
  <li>Dropdown toggles no longer require an explicit <code class="language-plaintext highlighter-rouge">&lt;span class="caret"&gt;&lt;/span&gt;</code>; this is now provided automatically via CSS’s <code class="language-plaintext highlighter-rouge">::after</code> on <code class="language-plaintext highlighter-rouge">.dropdown-toggle</code>.</li>
</ul>

<h3 id="grid-system-1">Grid system</h3>

<ul>
  <li>Added a new <code class="language-plaintext highlighter-rouge">576px</code> grid breakpoint as <code class="language-plaintext highlighter-rouge">sm</code>, meaning there are now five total tiers (<code class="language-plaintext highlighter-rouge">xs</code>, <code class="language-plaintext highlighter-rouge">sm</code>, <code class="language-plaintext highlighter-rouge">md</code>, <code class="language-plaintext highlighter-rouge">lg</code>, and <code class="language-plaintext highlighter-rouge">xl</code>).</li>
  <li>Renamed the responsive grid modifier classes from <code class="language-plaintext highlighter-rouge">.col-{breakpoint}-{modifier}-{size}</code> to <code class="language-plaintext highlighter-rouge">.{modifier}-{breakpoint}-{size}</code> for simpler grid classes.</li>
  <li>Dropped push and pull modifier classes for the new flexbox-powered <code class="language-plaintext highlighter-rouge">order</code> classes. For example, instead of <code class="language-plaintext highlighter-rouge">.col-8.push-4</code> and <code class="language-plaintext highlighter-rouge">.col-4.pull-8</code>, you’d use <code class="language-plaintext highlighter-rouge">.col-8.order-2</code> and <code class="language-plaintext highlighter-rouge">.col-4.order-1</code>.</li>
  <li>Added flexbox utility classes for grid system and components.</li>
</ul>

<h3 id="list-groups">List groups</h3>

<ul>
  <li>Rewrote component with flexbox.</li>
  <li>Replaced <code class="language-plaintext highlighter-rouge">a.list-group-item</code> with an explicit class, <code class="language-plaintext highlighter-rouge">.list-group-item-action</code>, for styling link and button versions of list group items.</li>
  <li>Added <code class="language-plaintext highlighter-rouge">.list-group-flush</code> class for use with cards.</li>
</ul>

<h3 id="modal">Modal</h3>

<ul>
  <li>Rewrote component with flexbox.</li>
  <li>Given the move to flexbox, alignment of dismiss icons in the header is likely broken as we’re no longer using floats. Floated content comes first, but with flexbox that’s no longer the case. Update your dismiss icons to come after modal titles to fix.</li>
  <li>The <code class="language-plaintext highlighter-rouge">remote</code> option (which could be used to automatically load and inject external content into a modal) and the corresponding <code class="language-plaintext highlighter-rouge">loaded.bs.modal</code> event were removed. We recommend instead using client-side templating or a data binding framework, or calling <a href="https://api.jquery.com/load/">jQuery.load</a> yourself.</li>
</ul>

<h3 id="navs">Navs</h3>

<ul>
  <li>Rewrote component with flexbox.</li>
  <li>Dropped nearly all <code class="language-plaintext highlighter-rouge">&gt;</code> selectors for simpler styling via un-nested classes.</li>
  <li>Instead of HTML-specific selectors like <code class="language-plaintext highlighter-rouge">.nav &gt; li &gt; a</code>, we use separate classes for <code class="language-plaintext highlighter-rouge">.nav</code>s, <code class="language-plaintext highlighter-rouge">.nav-item</code>s, and <code class="language-plaintext highlighter-rouge">.nav-link</code>s. This makes your HTML more flexible while bringing along increased extensibility.</li>
</ul>

<h3 id="navbar">Navbar</h3>

<p>The navbar has been entirely rewritten in flexbox with improved support for alignment, responsiveness, and customization.</p>

<ul>
  <li>Responsive navbar behaviors are now applied to the <code class="language-plaintext highlighter-rouge">.navbar</code> class via the <strong>required</strong> <code class="language-plaintext highlighter-rouge">.navbar-expand-{breakpoint}</code> where you choose where to collapse the navbar. Previously this was a Less variable modification and required recompiling.</li>
  <li><code class="language-plaintext highlighter-rouge">.navbar-default</code> is now <code class="language-plaintext highlighter-rouge">.navbar-light</code>, though <code class="language-plaintext highlighter-rouge">.navbar-dark</code> remains the same. <strong>One of these is required on each navbar.</strong> However, these classes no longer set <code class="language-plaintext highlighter-rouge">background-color</code>s; instead they essentially only affect <code class="language-plaintext highlighter-rouge">color</code>.</li>
  <li>Navbars now require a background declaration of some kind. Choose from our background utilities (<code class="language-plaintext highlighter-rouge">.bg-*</code>) or set your own with the light/inverse classes above <a href="/docs/4.5/components/navbar/#color-schemes">for mad customization</a>.</li>
  <li>Given flexbox styles, navbars can now use flexbox utilities for easy alignment options.</li>
  <li><code class="language-plaintext highlighter-rouge">.navbar-toggle</code> is now <code class="language-plaintext highlighter-rouge">.navbar-toggler</code> and has different styles and inner markup (no more three <code class="language-plaintext highlighter-rouge">&lt;span&gt;</code>s).</li>
  <li>Dropped the <code class="language-plaintext highlighter-rouge">.navbar-form</code> class entirely. It’s no longer necessary; instead, just use <code class="language-plaintext highlighter-rouge">.form-inline</code> and apply margin utilities as necessary.</li>
  <li>Navbars no longer include <code class="language-plaintext highlighter-rouge">margin-bottom</code> or <code class="language-plaintext highlighter-rouge">border-radius</code> by default. Use utilities as necessary.</li>
  <li>All examples featuring navbars have been updated to include new markup.</li>
</ul>

<h3 id="pagination">Pagination</h3>

<ul>
  <li>Rewrote component with flexbox.</li>
  <li>Explicit classes (<code class="language-plaintext highlighter-rouge">.page-item</code>, <code class="language-plaintext highlighter-rouge">.page-link</code>) are now required on the descendants of <code class="language-plaintext highlighter-rouge">.pagination</code>s</li>
  <li>Dropped the <code class="language-plaintext highlighter-rouge">.pager</code> component entirely as it was little more than customized outline buttons.</li>
</ul>

<h3 id="breadcrumbs">Breadcrumbs</h3>

<ul>
  <li>An explicit class, <code class="language-plaintext highlighter-rouge">.breadcrumb-item</code>, is now required on the descendants of <code class="language-plaintext highlighter-rouge">.breadcrumb</code>s</li>
</ul>

<h3 id="labels-and-badges">Labels and badges</h3>

<ul>
  <li>Consolidated <code class="language-plaintext highlighter-rouge">.label</code> and <code class="language-plaintext highlighter-rouge">.badge</code> to disambiguate from the <code class="language-plaintext highlighter-rouge">&lt;label&gt;</code> element and simplify related components.</li>
  <li>Added <code class="language-plaintext highlighter-rouge">.badge-pill</code> as modifier for rounded “pill” look.</li>
  <li>Badges are no longer floated automatically in list groups and other components. Utility classes are now required for that.</li>
  <li><code class="language-plaintext highlighter-rouge">.badge-default</code> has been dropped and <code class="language-plaintext highlighter-rouge">.badge-secondary</code> added to match component modifier classes used elsewhere.</li>
</ul>

<h3 id="panels-thumbnails-and-wells">Panels, thumbnails, and wells</h3>

<p>Dropped entirely for the new card component.</p>

<h3 id="panels">Panels</h3>

<ul>
  <li><code class="language-plaintext highlighter-rouge">.panel</code> to <code class="language-plaintext highlighter-rouge">.card</code>, now built with flexbox.</li>
  <li><code class="language-plaintext highlighter-rouge">.panel-default</code> removed and no replacement.</li>
  <li><code class="language-plaintext highlighter-rouge">.panel-group</code> removed and no replacement. <code class="language-plaintext highlighter-rouge">.card-group</code> is not a replacement, it is different.</li>
  <li><code class="language-plaintext highlighter-rouge">.panel-heading</code> to <code class="language-plaintext highlighter-rouge">.card-header</code></li>
  <li><code class="language-plaintext highlighter-rouge">.panel-title</code> to <code class="language-plaintext highlighter-rouge">.card-title</code>. Depending on the desired look, you may also want to use <a href="/docs/4.5/content/typography/#headings">heading elements or classes</a> (e.g. <code class="language-plaintext highlighter-rouge">&lt;h3&gt;</code>, <code class="language-plaintext highlighter-rouge">.h3</code>) or bold elements or classes (e.g. <code class="language-plaintext highlighter-rouge">&lt;strong&gt;</code>, <code class="language-plaintext highlighter-rouge">&lt;b&gt;</code>, <a href="/docs/4.5/utilities/text/#font-weight-and-italics"><code class="language-plaintext highlighter-rouge">.font-weight-bold</code></a>). Note that <code class="language-plaintext highlighter-rouge">.card-title</code>, while similarly named, produces a different look than <code class="language-plaintext highlighter-rouge">.panel-title</code>.</li>
  <li><code class="language-plaintext highlighter-rouge">.panel-body</code> to <code class="language-plaintext highlighter-rouge">.card-body</code></li>
  <li><code class="language-plaintext highlighter-rouge">.panel-footer</code> to <code class="language-plaintext highlighter-rouge">.card-footer</code></li>
  <li><code class="language-plaintext highlighter-rouge">.panel-primary</code>, <code class="language-plaintext highlighter-rouge">.panel-success</code>, <code class="language-plaintext highlighter-rouge">.panel-info</code>, <code class="language-plaintext highlighter-rouge">.panel-warning</code>, and <code class="language-plaintext highlighter-rouge">.panel-danger</code> have been dropped for <code class="language-plaintext highlighter-rouge">.bg-</code>, <code class="language-plaintext highlighter-rouge">.text-</code>, and <code class="language-plaintext highlighter-rouge">.border</code> utilities generated from our <code class="language-plaintext highlighter-rouge">$theme-colors</code> Sass map.</li>
</ul>

<h3 id="progress">Progress</h3>

<ul>
  <li>Replaced contextual <code class="language-plaintext highlighter-rouge">.progress-bar-*</code> classes with <code class="language-plaintext highlighter-rouge">.bg-*</code> utilities. For example, <code class="language-plaintext highlighter-rouge">class="progress-bar progress-bar-danger"</code> becomes <code class="language-plaintext highlighter-rouge">class="progress-bar bg-danger"</code>.</li>
  <li>Replaced <code class="language-plaintext highlighter-rouge">.active</code> for animated progress bars with <code class="language-plaintext highlighter-rouge">.progress-bar-animated</code>.</li>
</ul>

<h3 id="carousel">Carousel</h3>

<ul>
  <li>Overhauled the entire component to simplify design and styling. We have fewer styles for you to override, new indicators, and new icons.</li>
  <li>All CSS has been un-nested and renamed, ensuring each class is prefixed with <code class="language-plaintext highlighter-rouge">.carousel-</code>.
    <ul>
      <li>For carousel items, <code class="language-plaintext highlighter-rouge">.next</code>, <code class="language-plaintext highlighter-rouge">.prev</code>, <code class="language-plaintext highlighter-rouge">.left</code>, and <code class="language-plaintext highlighter-rouge">.right</code> are now <code class="language-plaintext highlighter-rouge">.carousel-item-next</code>, <code class="language-plaintext highlighter-rouge">.carousel-item-prev</code>, <code class="language-plaintext highlighter-rouge">.carousel-item-left</code>, and <code class="language-plaintext highlighter-rouge">.carousel-item-right</code>.</li>
      <li><code class="language-plaintext highlighter-rouge">.item</code> is also now <code class="language-plaintext highlighter-rouge">.carousel-item</code>.</li>
      <li>For prev/next controls, <code class="language-plaintext highlighter-rouge">.carousel-control.right</code> and <code class="language-plaintext highlighter-rouge">.carousel-control.left</code> are now <code class="language-plaintext highlighter-rouge">.carousel-control-next</code> and <code class="language-plaintext highlighter-rouge">.carousel-control-prev</code>, meaning they no longer require a specific base class.</li>
    </ul>
  </li>
  <li>Removed all responsive styling, deferring to utilities (e.g., showing captions on certain viewports) and custom styles as needed.</li>
  <li>Removed image overrides for images in carousel items, deferring to utilities.</li>
  <li>Tweaked the Carousel example to include the new markup and styles.</li>
</ul>

<h3 id="tables-1">Tables</h3>

<ul>
  <li>Removed support for styled nested tables. All table styles are now inherited in v4 for simpler selectors.</li>
  <li>Added inverse table variant.</li>
</ul>

<h3 id="utilities">Utilities</h3>

<ul>
  <li><strong>Display, hidden, and more:</strong>
    <ul>
      <li>Made display utilities responsive (e.g., <code class="language-plaintext highlighter-rouge">.d-none</code> and <code class="language-plaintext highlighter-rouge">d-{sm,md,lg,xl}-none</code>).</li>
      <li>Dropped the bulk of <code class="language-plaintext highlighter-rouge">.hidden-*</code> utilities for new <a href="/docs/4.5/utilities/display/">display utilities</a>. For example, instead of <code class="language-plaintext highlighter-rouge">.hidden-sm-up</code>, use <code class="language-plaintext highlighter-rouge">.d-sm-none</code>. Renamed the <code class="language-plaintext highlighter-rouge">.hidden-print</code> utilities to use the display utility naming scheme. More info under the <a href="#responsive-utilities">Responsive utilities</a> section of this page.</li>
      <li>Added <code class="language-plaintext highlighter-rouge">.float-{sm,md,lg,xl}-{left,right,none}</code> classes for responsive floats and removed <code class="language-plaintext highlighter-rouge">.pull-left</code> and <code class="language-plaintext highlighter-rouge">.pull-right</code> since they’re redundant to <code class="language-plaintext highlighter-rouge">.float-left</code> and <code class="language-plaintext highlighter-rouge">.float-right</code>.</li>
    </ul>
  </li>
  <li><strong>Type:</strong>
    <ul>
      <li>Added responsive variations to our text alignment classes <code class="language-plaintext highlighter-rouge">.text-{sm,md,lg,xl}-{left,center,right}</code>.</li>
    </ul>
  </li>
  <li><strong>Alignment and spacing:</strong>
    <ul>
      <li>Added new <a href="/docs/4.5/utilities/spacing/">responsive margin and padding utilities</a> for all sides, plus vertical and horizontal shorthands.</li>
      <li>Added boatload of <a href="/docs/4.5/utilities/flex/">flexbox utilities</a>.</li>
      <li>Dropped <code class="language-plaintext highlighter-rouge">.center-block</code> for the new <code class="language-plaintext highlighter-rouge">.mx-auto</code> class.</li>
    </ul>
  </li>
  <li>Clearfix updated to drop support for older browser versions.</li>
</ul>

<h3 id="vendor-prefix-mixins">Vendor prefix mixins</h3>

<p>Bootstrap 3’s <a href="https://www.lifewire.com/css-vendor-prefixes-3466867">vendor prefix</a> mixins, which were deprecated in v3.2.0, have been removed in Bootstrap 4. Since we use <a href="https://github.com/postcss/autoprefixer">Autoprefixer</a>, they’re no longer necessary.</p>

<p>Removed the following mixins: <code class="language-plaintext highlighter-rouge">animation</code>, <code class="language-plaintext highlighter-rouge">animation-delay</code>, <code class="language-plaintext highlighter-rouge">animation-direction</code>, <code class="language-plaintext highlighter-rouge">animation-duration</code>, <code class="language-plaintext highlighter-rouge">animation-fill-mode</code>, <code class="language-plaintext highlighter-rouge">animation-iteration-count</code>, <code class="language-plaintext highlighter-rouge">animation-name</code>, <code class="language-plaintext highlighter-rouge">animation-timing-function</code>, <code class="language-plaintext highlighter-rouge">backface-visibility</code>, <code class="language-plaintext highlighter-rouge">box-sizing</code>, <code class="language-plaintext highlighter-rouge">content-columns</code>, <code class="language-plaintext highlighter-rouge">hyphens</code>, <code class="language-plaintext highlighter-rouge">opacity</code>, <code class="language-plaintext highlighter-rouge">perspective</code>, <code class="language-plaintext highlighter-rouge">perspective-origin</code>, <code class="language-plaintext highlighter-rouge">rotate</code>, <code class="language-plaintext highlighter-rouge">rotateX</code>, <code class="language-plaintext highlighter-rouge">rotateY</code>, <code class="language-plaintext highlighter-rouge">scale</code>, <code class="language-plaintext highlighter-rouge">scaleX</code>, <code class="language-plaintext highlighter-rouge">scaleY</code>, <code class="language-plaintext highlighter-rouge">skew</code>, <code class="language-plaintext highlighter-rouge">transform-origin</code>, <code class="language-plaintext highlighter-rouge">transition-delay</code>, <code class="language-plaintext highlighter-rouge">transition-duration</code>, <code class="language-plaintext highlighter-rouge">transition-property</code>, <code class="language-plaintext highlighter-rouge">transition-timing-function</code>, <code class="language-plaintext highlighter-rouge">transition-transform</code>, <code class="language-plaintext highlighter-rouge">translate</code>, <code class="language-plaintext highlighter-rouge">translate3d</code>, <code class="language-plaintext highlighter-rouge">user-select</code></p>

<h2 id="documentation">Documentation</h2>

<p>Our documentation received an upgrade across the board as well. Here’s the low down:</p>

<ul>
  <li>We’re still using Jekyll, but we have plugins in the mix:
    <ul>
      <li><code class="language-plaintext highlighter-rouge">bugify.rb</code> is used to efficiently list out the entries on our <a href="/docs/4.5/browser-bugs/">browser bugs</a> page.</li>
      <li><code class="language-plaintext highlighter-rouge">example.rb</code> is a custom fork of the default <code class="language-plaintext highlighter-rouge">highlight.rb</code> plugin, allowing for easier example-code handling.</li>
      <li><code class="language-plaintext highlighter-rouge">callout.rb</code> is a similar custom fork of that, but designed for our special docs callouts.</li>
      <li><a href="https://github.com/toshimaru/jekyll-toc">jekyll-toc</a> is used to generate our table of contents.</li>
    </ul>
  </li>
  <li>All docs content has been rewritten in Markdown (instead of HTML) for easier editing.</li>
  <li>Pages have been reorganized for simpler content and a more approachable hierarchy.</li>
  <li>We moved from regular CSS to SCSS to take full advantage of Bootstrap’s variables, mixins, and more.</li>
</ul>

<h3 id="responsive-utilities">Responsive utilities</h3>

<p>All <code class="language-plaintext highlighter-rouge">@screen-</code> variables have been removed in v4.0.0. Use the <code class="language-plaintext highlighter-rouge">media-breakpoint-up()</code>, <code class="language-plaintext highlighter-rouge">media-breakpoint-down()</code>, or <code class="language-plaintext highlighter-rouge">media-breakpoint-only()</code> Sass mixins or the <code class="language-plaintext highlighter-rouge">$grid-breakpoints</code> Sass map instead.</p>

<p>Our responsive utility classes have largely been removed in favor of explicit <code class="language-plaintext highlighter-rouge">display</code> utilities.</p>

<ul>
  <li>The <code class="language-plaintext highlighter-rouge">.hidden</code> and <code class="language-plaintext highlighter-rouge">.show</code> classes have been removed because they conflicted with jQuery’s <code class="language-plaintext highlighter-rouge">$(...).hide()</code> and <code class="language-plaintext highlighter-rouge">$(...).show()</code> methods. Instead, try toggling the <code class="language-plaintext highlighter-rouge">[hidden]</code> attribute or use inline styles like <code class="language-plaintext highlighter-rouge">style="display: none;"</code> and <code class="language-plaintext highlighter-rouge">style="display: block;"</code>.</li>
  <li>All <code class="language-plaintext highlighter-rouge">.hidden-</code> classes have been removed, save for the print utilities which have been renamed.
    <ul>
      <li>Removed from v3: <code class="language-plaintext highlighter-rouge">.hidden-xs</code> <code class="language-plaintext highlighter-rouge">.hidden-sm</code> <code class="language-plaintext highlighter-rouge">.hidden-md</code> <code class="language-plaintext highlighter-rouge">.hidden-lg</code> <code class="language-plaintext highlighter-rouge">.visible-xs-block</code> <code class="language-plaintext highlighter-rouge">.visible-xs-inline</code> <code class="language-plaintext highlighter-rouge">.visible-xs-inline-block</code> <code class="language-plaintext highlighter-rouge">.visible-sm-block</code> <code class="language-plaintext highlighter-rouge">.visible-sm-inline</code> <code class="language-plaintext highlighter-rouge">.visible-sm-inline-block</code> <code class="language-plaintext highlighter-rouge">.visible-md-block</code> <code class="language-plaintext highlighter-rouge">.visible-md-inline</code> <code class="language-plaintext highlighter-rouge">.visible-md-inline-block</code> <code class="language-plaintext highlighter-rouge">.visible-lg-block</code> <code class="language-plaintext highlighter-rouge">.visible-lg-inline</code> <code class="language-plaintext highlighter-rouge">.visible-lg-inline-block</code></li>
      <li>Removed from v4 alphas: <code class="language-plaintext highlighter-rouge">.hidden-xs-up</code> <code class="language-plaintext highlighter-rouge">.hidden-xs-down</code> <code class="language-plaintext highlighter-rouge">.hidden-sm-up</code> <code class="language-plaintext highlighter-rouge">.hidden-sm-down</code> <code class="language-plaintext highlighter-rouge">.hidden-md-up</code> <code class="language-plaintext highlighter-rouge">.hidden-md-down</code> <code class="language-plaintext highlighter-rouge">.hidden-lg-up</code> <code class="language-plaintext highlighter-rouge">.hidden-lg-down</code></li>
    </ul>
  </li>
  <li>Print utilities no longer start with <code class="language-plaintext highlighter-rouge">.hidden-</code> or <code class="language-plaintext highlighter-rouge">.visible-</code>, but with <code class="language-plaintext highlighter-rouge">.d-print-</code>.
    <ul>
      <li>Old names: <code class="language-plaintext highlighter-rouge">.visible-print-block</code>, <code class="language-plaintext highlighter-rouge">.visible-print-inline</code>, <code class="language-plaintext highlighter-rouge">.visible-print-inline-block</code>, <code class="language-plaintext highlighter-rouge">.hidden-print</code></li>
      <li>New classes: <code class="language-plaintext highlighter-rouge">.d-print-block</code>, <code class="language-plaintext highlighter-rouge">.d-print-inline</code>, <code class="language-plaintext highlighter-rouge">.d-print-inline-block</code>, <code class="language-plaintext highlighter-rouge">.d-print-none</code></li>
    </ul>
  </li>
</ul>

<p>Rather than using explicit <code class="language-plaintext highlighter-rouge">.visible-*</code> classes, you make an element visible by simply not hiding it at that screen size. You can combine one <code class="language-plaintext highlighter-rouge">.d-*-none</code> class with one <code class="language-plaintext highlighter-rouge">.d-*-block</code> class to show an element only on a given interval of screen sizes (e.g. <code class="language-plaintext highlighter-rouge">.d-none.d-md-block.d-xl-none</code> shows the element only on medium and large devices).</p>

<p>Note that the changes to the grid breakpoints in v4 means that you’ll need to go one breakpoint larger to achieve the same results. The new responsive utility classes don’t attempt to accommodate less common cases where an element’s visibility can’t be expressed as a single contiguous range of viewport sizes; you will instead need to use custom CSS in such cases.</p>

        </main>
      </div>
    </div>

    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="/docs/4.5/assets/js/vendor/jquery.slim.min.js"><\/script>')</script><script src="/docs/4.5/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script><script src="/docs/4.5/assets/js/docs.min.js"></script>
  </body>
</html>