1
00:00:02,270 --> 00:00:04,420
So did you succeed?

2
00:00:04,420 --> 00:00:06,710
Let's try doing this together.

3
00:00:06,710 --> 00:00:08,840
And of course, to find out how that works,

4
00:00:08,840 --> 00:00:11,770
we should go into the Documentation

5
00:00:11,770 --> 00:00:14,633
and there into the Navbar documentation.

6
00:00:15,760 --> 00:00:17,210
And if we do go there;

7
00:00:17,210 --> 00:00:19,970
if we do go to the Navbar navigation,

8
00:00:19,970 --> 00:00:21,720
there we should be able to learn

9
00:00:21,720 --> 00:00:26,053
how we can make it fixed, maybe under Placement.

10
00:00:28,050 --> 00:00:30,510
And indeed, here we learn how we can place it

11
00:00:30,510 --> 00:00:32,683
such that it's fixed to the top.

12
00:00:33,610 --> 00:00:37,200
We see that this is how this example code looks like.

13
00:00:37,200 --> 00:00:39,823
And if we compare this to our Navbar,

14
00:00:40,810 --> 00:00:43,410
we have, of course, more content inside of it

15
00:00:43,410 --> 00:00:44,960
but on the nav element:

16
00:00:44,960 --> 00:00:47,310
We have navbar, navbar-expand-lg,

17
00:00:47,310 --> 00:00:50,640
navbar-light, and bg-light.

18
00:00:50,640 --> 00:00:52,630
And in the end, that's the same as here.

19
00:00:52,630 --> 00:00:55,073
But here we also have fixed-top,

20
00:00:56,070 --> 00:00:58,760
and we don't have navbar-expand-lg.

21
00:00:58,760 --> 00:01:01,220
But let's start with fixed-top

22
00:01:01,220 --> 00:01:03,750
because that sounds like it would be helpful.

23
00:01:03,750 --> 00:01:07,693
Copy that and simply add that class to our navbar.

24
00:01:09,290 --> 00:01:12,300
And if we do this and they go back,

25
00:01:12,300 --> 00:01:13,310
it's still looking good,

26
00:01:13,310 --> 00:01:14,930
but now indeed it is fixed;

27
00:01:14,930 --> 00:01:16,220
it's not scrolling away,

28
00:01:16,220 --> 00:01:19,423
but instead it's overlapping our content as you can tell.

29
00:01:20,290 --> 00:01:24,170
And that's, of course, very easy, very easy to do,

30
00:01:24,170 --> 00:01:27,193
and it shows us how we generally work with Bootstrap.

31
00:01:28,160 --> 00:01:31,350
Now to conclude the Bootstrap part,

32
00:01:31,350 --> 00:01:35,240
I wanna show you the Scrollspy feature which is also

33
00:01:35,240 --> 00:01:39,310
actually a built-in feature Bootstrap ships with.

34
00:01:39,310 --> 00:01:42,920
Here we see that we've got this Scrollspy behavior,

35
00:01:42,920 --> 00:01:45,920
and we see how it generally behaves;

36
00:01:45,920 --> 00:01:49,090
that it's all about changing what's highlighted

37
00:01:49,090 --> 00:01:52,910
in some navigation as we scroll through some content.

38
00:01:52,910 --> 00:01:54,320
Now, on this example page,

39
00:01:54,320 --> 00:01:55,830
I actually don't wanna add it

40
00:01:55,830 --> 00:01:57,830
because we don't really need it here,

41
00:01:57,830 --> 00:02:00,860
but of course, feel free to add it if you want to.

42
00:02:00,860 --> 00:02:02,450
In your official documentation,

43
00:02:02,450 --> 00:02:04,590
you'll see examples on how it works

44
00:02:04,590 --> 00:02:07,740
and how you could add it to your content.

45
00:02:07,740 --> 00:02:11,400
And in general, there are many features you can add,

46
00:02:11,400 --> 00:02:14,700
and Bootstrap is a very useful package;

47
00:02:14,700 --> 00:02:17,263
it's very popular for a reason after all.

48
00:02:18,520 --> 00:02:21,070
The big question that remains, though, is

49
00:02:21,070 --> 00:02:24,570
if you should now always use Bootstrap?

50
00:02:24,570 --> 00:02:26,850
I did mention that you, of course, can combine

51
00:02:26,850 --> 00:02:28,120
it with your own code,

52
00:02:28,120 --> 00:02:31,920
and I also did compare third-party packages

53
00:02:31,920 --> 00:02:34,150
and custom code before, and of course,

54
00:02:34,150 --> 00:02:38,293
the advantages and disadvantages I mentioned here do apply.

55
00:02:39,410 --> 00:02:41,620
Now, when it comes to CSS packages

56
00:02:41,620 --> 00:02:43,810
like Bootstrap specifically,

57
00:02:43,810 --> 00:02:47,780
it is important to be aware of one specific restriction

58
00:02:47,780 --> 00:02:50,360
or disadvantage you might have

59
00:02:50,360 --> 00:02:52,210
which does not apply that much

60
00:02:52,210 --> 00:02:54,720
when we talk about JavaScript packages

61
00:02:54,720 --> 00:02:56,830
as you will see later.

62
00:02:56,830 --> 00:03:01,750
With Bootstrap or with any CSS package you include,

63
00:03:01,750 --> 00:03:06,590
you, of course, commit to a certain look of your page.

64
00:03:06,590 --> 00:03:09,270
You can choose between different variants

65
00:03:09,270 --> 00:03:12,130
of alerts or of buttons.

66
00:03:12,130 --> 00:03:14,740
So you can choose between different buttons,

67
00:03:14,740 --> 00:03:17,740
and you can also customize Bootstrap.

68
00:03:17,740 --> 00:03:20,390
If you dive deeper here into the Documentation,

69
00:03:20,390 --> 00:03:22,360
you can learn and you do learn

70
00:03:22,360 --> 00:03:24,560
how you can customize Bootstrap

71
00:03:24,560 --> 00:03:27,740
and even overwrite or change the general look.

72
00:03:27,740 --> 00:03:32,370
But still, you always will have a certain look,

73
00:03:32,370 --> 00:03:36,190
a certain HTML structure that is expected,

74
00:03:36,190 --> 00:03:38,650
which you kind of commit to when using

75
00:03:38,650 --> 00:03:41,090
such a third-party package.

76
00:03:41,090 --> 00:03:44,180
And therefore, packages like Bootstrap,

77
00:03:44,180 --> 00:03:46,960
CSS packages that give you certain looks

78
00:03:46,960 --> 00:03:50,280
or certain stylings are very useful

79
00:03:50,280 --> 00:03:52,080
for building a site quickly

80
00:03:52,080 --> 00:03:55,560
since you have to write way less CSS code;

81
00:03:55,560 --> 00:03:59,460
but for real sites, sites that you might be building

82
00:03:59,460 --> 00:04:02,120
for clients or for your own business,

83
00:04:02,120 --> 00:04:05,670
you might not always get the behavior

84
00:04:05,670 --> 00:04:07,730
or the look you want.

85
00:04:07,730 --> 00:04:10,120
Sometimes you do, and then they are great,

86
00:04:10,120 --> 00:04:11,950
but sometimes you really wanna bring

87
00:04:11,950 --> 00:04:13,930
your own CSS code there

88
00:04:13,930 --> 00:04:18,113
so that you do have full control over every detail.

89
00:04:19,209 --> 00:04:22,110
So that's just something to be aware of that

90
00:04:22,110 --> 00:04:25,170
you might not wanna commit to a certain look,

91
00:04:25,170 --> 00:04:28,860
and behavior, and a certain HTML structure,

92
00:04:28,860 --> 00:04:31,660
and a limited set of components which you have.

93
00:04:31,660 --> 00:04:33,710
And therefore, you might wanna go

94
00:04:33,710 --> 00:04:37,560
for a custom CSS approach right from the start.

95
00:04:37,560 --> 00:04:40,060
It is something that comes down to preference

96
00:04:40,060 --> 00:04:42,750
and the exact project you're working on.

97
00:04:42,750 --> 00:04:44,240
For a lot of projects,

98
00:04:44,240 --> 00:04:47,010
especially for a lot of demos or examples,

99
00:04:47,010 --> 00:04:49,440
Bootstrap can be a great choice

100
00:04:49,440 --> 00:04:51,883
since it does save you a lot of time.

