Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,360 --> 00:00:02,310
In this video,
2
00:00:02,310 --> 00:00:05,270
we're gonna start targeting mobile devices.
3
00:00:05,270 --> 00:00:07,520
And in particular, in this one,
4
00:00:07,520 --> 00:00:11,593
we will make our website respond to landscape tablets.
5
00:00:13,490 --> 00:00:17,430
And so, let's continue decreasing our viewport width here
6
00:00:17,430 --> 00:00:20,293
so that we can find our next break point.
7
00:00:21,540 --> 00:00:23,543
So, let's keep going down.
8
00:00:25,020 --> 00:00:28,293
Right? And maybe let's stop here for now.
9
00:00:29,700 --> 00:00:33,840
So, let's see if some things are broken here,
10
00:00:33,840 --> 00:00:36,900
and for now it still looks quite nice.
11
00:00:36,900 --> 00:00:38,650
But here, if we take a look,
12
00:00:38,650 --> 00:00:43,290
then the text here is now looking quite bad, actually.
13
00:00:43,290 --> 00:00:47,423
So, it's a really thin column with a lot of lines.
14
00:00:49,560 --> 00:00:53,400
Also here, we start getting text and multiple lines
15
00:00:53,400 --> 00:00:54,850
and the same here.
16
00:00:54,850 --> 00:00:56,120
So, in some of these columns,
17
00:00:56,120 --> 00:00:59,400
we have now four lines in here as well.
18
00:00:59,400 --> 00:01:01,960
And also here, this one here.
19
00:01:01,960 --> 00:01:05,280
So, this entire section is now a bit too high
20
00:01:05,280 --> 00:01:08,693
because also this text here moved into three lines,
21
00:01:09,860 --> 00:01:12,690
and the same thing actually here.
22
00:01:12,690 --> 00:01:14,853
Now, since we're so zoomed out,
23
00:01:16,070 --> 00:01:18,700
it actually still looks quite okay.
24
00:01:18,700 --> 00:01:22,050
But, if we make it like 100%
25
00:01:22,900 --> 00:01:26,610
and like imagining that this is a tablet,
26
00:01:26,610 --> 00:01:29,330
then maybe we can start to see
27
00:01:29,330 --> 00:01:34,330
that everything looks like really huge here. Right?
28
00:01:34,500 --> 00:01:38,080
So, the design that we built has a lot of spacing
29
00:01:38,080 --> 00:01:42,500
and it also has some really big text in some situations.
30
00:01:42,500 --> 00:01:45,613
And so, we now should start making this a bit smaller.
31
00:01:47,093 --> 00:01:50,800
Actually, let's move up a little bit more here
32
00:01:50,800 --> 00:01:55,090
because this one here is one of the break points that I use.
33
00:01:55,090 --> 00:01:56,550
I would say, always.
34
00:01:56,550 --> 00:01:59,660
So, 1,200 pixels, because that is where we start
35
00:01:59,660 --> 00:02:03,120
getting into mobile device territory.
36
00:02:03,120 --> 00:02:05,170
Now, as we just learned previously,
37
00:02:05,170 --> 00:02:09,720
we shouldn't just base or break points on the device width,
38
00:02:09,720 --> 00:02:12,060
but also on where the design breaks.
39
00:02:12,060 --> 00:02:14,890
And in this case, it's not yet really visible
40
00:02:14,890 --> 00:02:16,760
that the design is breaking,
41
00:02:16,760 --> 00:02:19,080
at least not in terms of the layout,
42
00:02:19,080 --> 00:02:23,450
but still everything is quite too big here.
43
00:02:23,450 --> 00:02:25,870
So, everything looks like huge.
44
00:02:25,870 --> 00:02:28,500
So, even at 1,200.
45
00:02:28,500 --> 00:02:32,430
And so, yeah, let's fix that right now.
46
00:02:32,430 --> 00:02:35,870
So, we will add a break point at 1,200 pixels,
47
00:02:35,870 --> 00:02:38,853
which is something that I usually always do.
48
00:02:41,850 --> 00:02:44,020
So, at media,
49
00:02:44,020 --> 00:02:47,060
max-width,
50
00:02:47,060 --> 00:02:49,810
you now, remember how we make the calculation
51
00:02:49,810 --> 00:02:51,993
from pixel to em.
52
00:02:53,310 --> 00:02:57,270
So, that's 1,200 divided by 16.
53
00:02:57,270 --> 00:03:00,573
So, that's a nice round number of 75em.
54
00:03:06,180 --> 00:03:07,920
Let me grab this.
55
00:03:07,920 --> 00:03:11,763
And so, this is below 1,200 pixels.
56
00:03:16,160 --> 00:03:17,333
Let's say tablets here,
57
00:03:19,810 --> 00:03:21,860
or actually landscape tablets.
58
00:03:21,860 --> 00:03:24,840
So, tablets in the orientation of landscape,
59
00:03:24,840 --> 00:03:26,800
because with just tablets,
60
00:03:26,800 --> 00:03:31,520
we usually mean them in portrait mode. Okay?
61
00:03:31,520 --> 00:03:33,203
And so, let's start fixing
62
00:03:33,203 --> 00:03:35,480
that overall feeling that we have,
63
00:03:35,480 --> 00:03:38,020
that everything is too big.
64
00:03:38,020 --> 00:03:41,040
So, how do you think we could do that?
65
00:03:41,040 --> 00:03:43,900
Well, we can now finally use to our advantage,
66
00:03:43,900 --> 00:03:48,510
the fact that we used responsive units from the very start.
67
00:03:48,510 --> 00:03:51,720
Now, in fact, everything that we're doing here only works
68
00:03:51,720 --> 00:03:54,810
because we already have the other three responsive
69
00:03:54,810 --> 00:03:57,810
web design ingredients already in place,
70
00:03:57,810 --> 00:04:01,610
so we already have a fluid grid and responsive images
71
00:04:01,610 --> 00:04:04,270
and responsive units, right?
72
00:04:04,270 --> 00:04:07,640
Otherwise, none of this would work at all.
73
00:04:07,640 --> 00:04:10,603
So, all the fluidity that we can see here,
74
00:04:11,970 --> 00:04:14,540
like that the design even changes a little bit
75
00:04:14,540 --> 00:04:19,060
when we like do this, when we changed the viewport width,
76
00:04:19,060 --> 00:04:23,030
all of that is only because we already have flexible images
77
00:04:23,030 --> 00:04:26,743
and a fluid diet in the first place, right?
78
00:04:27,930 --> 00:04:31,300
And so now, let's make use of that other ingredient
79
00:04:31,300 --> 00:04:34,710
that is responsive units.
80
00:04:34,710 --> 00:04:38,090
Now, what do I mean with responsive units?
81
00:04:38,090 --> 00:04:41,670
Well, I simply mean the fact that we have been using rem
82
00:04:41,670 --> 00:04:44,160
all the time here, right?
83
00:04:44,160 --> 00:04:46,860
And what that means is that all of these lengths,
84
00:04:46,860 --> 00:04:49,550
so all of the sizes basically that we defined
85
00:04:49,550 --> 00:04:52,780
anywhere on the page are dependent
86
00:04:52,780 --> 00:04:55,750
on this one setting right here.
87
00:04:55,750 --> 00:04:59,220
So, on this font size, right?
88
00:04:59,220 --> 00:05:01,080
So, if we now change this,
89
00:05:01,080 --> 00:05:04,120
every single length and every single font size
90
00:05:04,120 --> 00:05:07,893
on the page will immediately change, right?
91
00:05:08,930 --> 00:05:11,840
So, if we want to make everything smaller,
92
00:05:11,840 --> 00:05:15,380
basically, we can simply change that font size.
93
00:05:15,380 --> 00:05:19,793
And so, that is the big, big trick of using this technique.
94
00:05:20,670 --> 00:05:23,463
So, of sizing everything using rem.
95
00:05:25,400 --> 00:05:28,570
So, font size, and now for demonstration,
96
00:05:28,570 --> 00:05:32,100
let me just actually set it just two pixels here
97
00:05:32,940 --> 00:05:35,490
and to something really, really small.
98
00:05:35,490 --> 00:05:38,720
So, five pixels is of course, way too small,
99
00:05:38,720 --> 00:05:42,530
but I just want you to demonstrate the dramatic effect
100
00:05:42,530 --> 00:05:46,003
that we can achieve with this symbol change here.
101
00:05:48,990 --> 00:05:53,683
So, let's make this big again and let's zoom out here.
102
00:05:54,870 --> 00:05:57,993
And so, watch what happens once we approach.
103
00:05:58,880 --> 00:06:00,500
Yeah. You saw that?
104
00:06:00,500 --> 00:06:04,550
Everything became really, really small, right?
105
00:06:04,550 --> 00:06:05,500
And again,
106
00:06:05,500 --> 00:06:09,420
all of that is simply because of the power of sizing,
107
00:06:09,420 --> 00:06:13,410
everything in rem and then changing that one setting.
108
00:06:13,410 --> 00:06:17,610
So, basically, changing the definition of what one rem is
109
00:06:17,610 --> 00:06:19,393
right there in the media query.
110
00:06:20,650 --> 00:06:25,480
So just with this, everything became small again, right?
111
00:06:25,480 --> 00:06:27,440
Except here for these images,
112
00:06:27,440 --> 00:06:31,667
because they are indeed sized in percentages, right?
113
00:06:33,420 --> 00:06:35,320
Now, of course, we don't want to make
114
00:06:35,320 --> 00:06:37,530
this dramatic of a change here.
115
00:06:37,530 --> 00:06:41,370
So, here, actually I want to set it to nine pixel.
116
00:06:41,370 --> 00:06:44,743
So, just moving it down one pixel, basically.
117
00:06:45,580 --> 00:06:49,350
But of course, I also don't want to set it in pixel,
118
00:06:49,350 --> 00:06:51,320
but in percentages.
119
00:06:51,320 --> 00:06:54,773
So, nine pixel divided by 16 pixels.
120
00:06:56,400 --> 00:06:58,810
So again, using the calculator here,
121
00:06:58,810 --> 00:07:00,480
nine divided by 16
122
00:07:02,060 --> 00:07:07,060
is 56.25%. Okay?
123
00:07:07,600 --> 00:07:12,530
So, 56.25%.
124
00:07:12,530 --> 00:07:15,633
And so now, the change will not be as dramatic,
125
00:07:16,890 --> 00:07:18,863
but there will be some change.
126
00:07:20,070 --> 00:07:23,800
So, let's see, and there it is.
127
00:07:23,800 --> 00:07:28,430
So, all of a sudden everything became just a small tad,
128
00:07:28,430 --> 00:07:30,773
smaller, right?
129
00:07:31,920 --> 00:07:35,290
And so, this can make a difference, indeed.
130
00:07:35,290 --> 00:07:37,670
So, even of course, the layout itself,
131
00:07:37,670 --> 00:07:41,900
as we come here is now smaller, right?
132
00:07:41,900 --> 00:07:45,160
So, it was already touching the sides here,
133
00:07:45,160 --> 00:07:49,120
but now, not anymore because now our container
134
00:07:49,120 --> 00:07:54,120
which used to have 1,200 pixels, now only has, let's see.
135
00:07:55,150 --> 00:07:56,333
So, 120rem,
136
00:07:57,250 --> 00:07:59,890
so, do used to be 1,200,
137
00:07:59,890 --> 00:08:03,820
but now it is only 1,080 pixels.
138
00:08:03,820 --> 00:08:08,820
So, that's actually a big difference, right?
139
00:08:09,420 --> 00:08:10,940
So, that's very cool.
140
00:08:10,940 --> 00:08:13,850
This is really an amazing trick that we can use
141
00:08:13,850 --> 00:08:16,840
when we build these kinds of websites.
142
00:08:16,840 --> 00:08:17,680
So, back in the day,
143
00:08:17,680 --> 00:08:20,490
when I built my first responsive website
144
00:08:20,490 --> 00:08:22,500
and I didn't know about this.
145
00:08:22,500 --> 00:08:25,470
Well, I would simply have to go and change manually
146
00:08:25,470 --> 00:08:29,060
all these single pixel length and all the font sizes
147
00:08:29,060 --> 00:08:33,180
that I had defined in pixels and that would be so much work.
148
00:08:33,180 --> 00:08:35,633
And, but this is really a lot easier.
149
00:08:36,640 --> 00:08:40,300
Now, of course, that doesn't cure all the problems.
150
00:08:40,300 --> 00:08:44,220
So, some text is probably still a bit too big.
151
00:08:44,220 --> 00:08:46,060
So, we can fix that.
152
00:08:46,060 --> 00:08:50,730
For example, this text right here still looks quite big.
153
00:08:50,730 --> 00:08:52,500
So, the secondary heading
154
00:08:52,500 --> 00:08:54,813
and the same also for the tertiary heading,
155
00:08:56,030 --> 00:08:59,110
and probably it's also time to decrease
156
00:08:59,110 --> 00:09:00,623
the spacing in our grid.
157
00:09:01,470 --> 00:09:03,830
So, here, the spacing between these columns
158
00:09:03,830 --> 00:09:05,553
is starting to get really big.
159
00:09:06,390 --> 00:09:09,743
And maybe, here also we have a little bit too much space,
160
00:09:11,520 --> 00:09:12,940
all right?
161
00:09:12,940 --> 00:09:16,280
But, by far, the biggest and most important change
162
00:09:16,280 --> 00:09:18,553
that we did here was this one.
163
00:09:19,770 --> 00:09:20,630
But anyway,
164
00:09:20,630 --> 00:09:25,630
let's now decrease the secondary and tertiary headings.
165
00:09:26,117 --> 00:09:28,930
The primary, I think, is not necessary yet
166
00:09:28,930 --> 00:09:30,970
because we just did that here.
167
00:09:30,970 --> 00:09:32,920
And so at this point, actually,
168
00:09:32,920 --> 00:09:35,280
the primary heading has the same size
169
00:09:35,280 --> 00:09:37,500
as the secondary heading.
170
00:09:37,500 --> 00:09:39,423
So, that doesn't make a lot of sense.
171
00:09:40,290 --> 00:09:42,330
And so, in this media query,
172
00:09:42,330 --> 00:09:47,253
let's now move both of them here, one step down.
173
00:09:48,600 --> 00:09:52,233
So, from 44 to 36, this one,
174
00:09:55,280 --> 00:09:56,790
3.6rem.
175
00:09:56,790 --> 00:09:59,460
So, and I'm still doing the calculation here
176
00:09:59,460 --> 00:10:03,190
as if one rem was still 10 pixels. Okay?
177
00:10:03,190 --> 00:10:06,920
So, just for consistency with the initial code,
178
00:10:06,920 --> 00:10:08,280
I will always still assume
179
00:10:08,280 --> 00:10:12,080
that one rem is 10 pixels here, all right?
180
00:10:12,080 --> 00:10:15,963
So, we do not change that mental convention that we have.
181
00:10:17,574 --> 00:10:20,340
Okay?
182
00:10:20,340 --> 00:10:21,310
The tertiary
183
00:10:24,450 --> 00:10:26,053
and font size,
184
00:10:27,070 --> 00:10:29,000
2.4rem.
185
00:10:29,000 --> 00:10:32,013
So, that is here the next step after 3rem.
186
00:10:33,140 --> 00:10:36,450
Next up, as I was saying, let's also change the grid
187
00:10:36,450 --> 00:10:37,283
a little bit.
188
00:10:38,630 --> 00:10:39,463
So,
189
00:10:43,530 --> 00:10:45,083
let's change the column-gap.
190
00:10:48,610 --> 00:10:50,763
Let's go one step down.
191
00:10:52,120 --> 00:10:54,823
So, 4.8 is after 6.4,
192
00:10:57,250 --> 00:10:58,533
and then the row-gap,
193
00:10:59,420 --> 00:11:02,370
and this one was very big to begin with.
194
00:11:02,370 --> 00:11:05,640
And so, let's take this one down, even two steps.
195
00:11:05,640 --> 00:11:07,210
So, to 6.4rem.
196
00:11:09,350 --> 00:11:12,033
All right. So, let's check it out.
197
00:11:16,440 --> 00:11:18,623
So, that still looks quite the same,
198
00:11:20,580 --> 00:11:22,120
but yeah, if you see here now,
199
00:11:22,120 --> 00:11:25,660
this edge too, now changes a lot, actually,
200
00:11:25,660 --> 00:11:29,053
and also the spacing here, now looks a bit better.
201
00:11:30,530 --> 00:11:33,490
And especially if we make this even smaller,
202
00:11:33,490 --> 00:11:37,250
so of course we cannot just test at 1,200. Right?
203
00:11:37,250 --> 00:11:40,350
We also need to test, for example, here,
204
00:11:40,350 --> 00:11:41,963
maybe at 1,000 pixels.
205
00:11:42,950 --> 00:11:45,430
So, 1,050 right now,
206
00:11:45,430 --> 00:11:49,260
because of course we will not add a lot of media queries.
207
00:11:49,260 --> 00:11:54,260
Maybe the next one is gonna be like at 900 or 950.
208
00:11:54,640 --> 00:11:59,640
But, so in that range, it needs to look great, right?
209
00:12:01,000 --> 00:12:03,453
So, here, it's actually still not so great,
210
00:12:06,090 --> 00:12:09,170
but I will leave it like this for now, actually.
211
00:12:09,170 --> 00:12:12,580
So, this section here is a bit hard to fix
212
00:12:12,580 --> 00:12:15,090
and I will maybe fix that a bit later
213
00:12:15,090 --> 00:12:19,163
once we go into the next media query. All right?
214
00:12:20,350 --> 00:12:23,520
But yeah, so I think everything looks a lot better now,
215
00:12:23,520 --> 00:12:25,250
even at this width.
216
00:12:25,250 --> 00:12:29,040
So, we just did 1,200 media query, but even here,
217
00:12:29,040 --> 00:12:33,793
it now looks quite decent, right?
218
00:12:35,150 --> 00:12:36,660
So, this is good already.
219
00:12:36,660 --> 00:12:38,270
Let's just go up a little bit
220
00:12:38,270 --> 00:12:41,378
because here, now the spacing on this side
221
00:12:41,378 --> 00:12:44,240
is different than it is here.
222
00:12:44,240 --> 00:12:47,750
So, you see that this one here is now more on the inside
223
00:12:47,750 --> 00:12:49,370
and the same here on this button.
224
00:12:49,370 --> 00:12:53,000
And so that does not look good at all.
225
00:12:53,000 --> 00:12:56,090
So, we now want this logo here and this button
226
00:12:56,090 --> 00:12:57,830
to be aligned to the site.
227
00:12:57,830 --> 00:13:00,823
So, having basically this same padding that we have here.
228
00:13:02,500 --> 00:13:04,223
So, let's see where that is.
229
00:13:06,190 --> 00:13:09,483
So, that's in the navigation or actually in the header.
230
00:13:17,660 --> 00:13:18,920
Yeah, right here.
231
00:13:18,920 --> 00:13:23,370
So, we have a padding of a 4.8rem on the sides,
232
00:13:23,370 --> 00:13:26,363
while on the usual container,
233
00:13:27,460 --> 00:13:30,320
we have a 3.2.
234
00:13:30,320 --> 00:13:33,170
And so that's what we also want in the header.
235
00:13:33,170 --> 00:13:35,740
So, let's actually copy this line of code here
236
00:13:39,350 --> 00:13:41,173
and put that in the header.
237
00:13:43,260 --> 00:13:45,230
Okay, great.
238
00:13:45,230 --> 00:13:47,320
So, now that it's consistent
239
00:13:47,320 --> 00:13:49,030
and I was just thinking that here,
240
00:13:49,030 --> 00:13:54,030
we actually also have this big gap that we had in the grid.
241
00:13:54,350 --> 00:13:58,183
So, that's the exact same gap, so let's also decrease that.
242
00:13:59,390 --> 00:14:03,683
So, here in the hero, you see,
243
00:14:04,890 --> 00:14:06,893
well, it's actually here.
244
00:14:09,640 --> 00:14:11,880
So, that the gap is 9.6.
245
00:14:11,880 --> 00:14:15,173
So, let's also take that down to just 4.8.
246
00:14:16,390 --> 00:14:20,063
So, here, the hero,
247
00:14:24,660 --> 00:14:27,003
4.8rem,
248
00:14:28,870 --> 00:14:30,133
Oh right?
249
00:14:31,480 --> 00:14:34,810
Yeah. So that looks better because now there is more space
250
00:14:34,810 --> 00:14:38,300
for this image to grow a little bit.
251
00:14:38,300 --> 00:14:39,533
So, that looks nicer.
252
00:14:42,700 --> 00:14:43,533
All right.
253
00:14:44,370 --> 00:14:47,180
Then of course, it starts breaking here again at some point,
254
00:14:47,180 --> 00:14:49,430
but that we will fix later.
255
00:14:49,430 --> 00:14:51,350
That's just something that I also notice,
256
00:14:51,350 --> 00:14:54,050
while preparing this lecture here,
257
00:14:54,050 --> 00:14:56,910
which is that on a like a big size,
258
00:14:56,910 --> 00:14:59,500
we actually have way too less space
259
00:14:59,500 --> 00:15:01,800
between these menu items.
260
00:15:01,800 --> 00:15:04,470
So, that's something that we should have done better
261
00:15:04,470 --> 00:15:06,270
in the last section.
262
00:15:06,270 --> 00:15:08,523
So, let's fix that now, actually.
263
00:15:10,630 --> 00:15:13,223
So, that's here in the menu as well.
264
00:15:15,370 --> 00:15:18,160
So, not in the header, but indeed,
265
00:15:18,160 --> 00:15:20,650
here in the main-nav-list.
266
00:15:20,650 --> 00:15:25,240
So, here we want a 4.8 at the normal state,
267
00:15:25,240 --> 00:15:27,710
so, one step up from 3.2.
268
00:15:29,310 --> 00:15:32,740
And so that does indeed look a lot better,
269
00:15:32,740 --> 00:15:35,870
but now as we come to the smaller width,
270
00:15:35,870 --> 00:15:37,973
it is time to then decrease that.
271
00:15:40,030 --> 00:15:40,890
All right?
272
00:15:40,890 --> 00:15:44,050
So, basically, we want it to be 3.2rem.
273
00:15:44,050 --> 00:15:47,023
So, one step down at this point here.
274
00:15:52,530 --> 00:15:55,653
So, gap, 3.2rem.
275
00:15:59,100 --> 00:15:59,933
Okay?
276
00:16:01,980 --> 00:16:04,230
So let's, yeah.
277
00:16:04,230 --> 00:16:07,060
So, see how the spacing decreases there.
278
00:16:07,060 --> 00:16:11,033
So, that looks better now on this, let's say smaller screen.
279
00:16:12,500 --> 00:16:15,800
So, at this point, we might be ready to actually test us
280
00:16:15,800 --> 00:16:20,253
on like a virtual tablet here, like this iPad,
281
00:16:21,510 --> 00:16:24,003
and it should be in the landscape view.
282
00:16:24,840 --> 00:16:28,050
So, that has 1,024 pixels.
283
00:16:28,050 --> 00:16:31,740
And so, that should look good in the media query
284
00:16:31,740 --> 00:16:33,290
that we just did.
285
00:16:33,290 --> 00:16:36,043
And indeed, I think that it does.
286
00:16:36,990 --> 00:16:41,350
So, this looks probably a bit similar to what we have
287
00:16:41,350 --> 00:16:42,810
when we scale it up.
288
00:16:42,810 --> 00:16:44,750
So, in the view for the big screen
289
00:16:44,750 --> 00:16:46,883
that we developed over the last section.
290
00:16:47,890 --> 00:16:49,880
Now here, again, it's not perfect,
291
00:16:49,880 --> 00:16:51,663
and we might fix that a bit later.
292
00:16:54,550 --> 00:16:56,010
All right?
293
00:16:56,010 --> 00:16:58,800
So yeah, I don't find any flaws here.
294
00:16:58,800 --> 00:17:02,120
We could maybe decrease all the spacing
295
00:17:02,120 --> 00:17:05,110
also in the beginning and the end of the sections
296
00:17:05,110 --> 00:17:09,550
so that padding, but yeah, let's not do that,
297
00:17:09,550 --> 00:17:11,673
that starting to become too much work.
298
00:17:12,630 --> 00:17:14,240
And yeah, we can also do that
299
00:17:14,240 --> 00:17:16,283
maybe in some next media query.
300
00:17:17,510 --> 00:17:21,760
Now, maybe just to make this really a lot better,
301
00:17:21,760 --> 00:17:24,750
let's maybe actually fix this one here,
302
00:17:24,750 --> 00:17:28,793
simply by removing some of the padding here on the sides.
303
00:17:30,130 --> 00:17:32,540
So, this entire element here
304
00:17:32,540 --> 00:17:35,853
is called the testimonials-container.
305
00:17:37,680 --> 00:17:38,563
So,
306
00:17:40,870 --> 00:17:42,513
I know that was way back.
307
00:17:45,150 --> 00:17:47,870
So, while you're following these videos here
308
00:17:47,870 --> 00:17:49,900
on making the page responsive,
309
00:17:49,900 --> 00:17:53,230
you might need to stop the video from time to time
310
00:17:53,230 --> 00:17:56,040
in order to go back and analyze the code
311
00:17:56,040 --> 00:17:59,320
that we are changing. All right?
312
00:17:59,320 --> 00:18:02,800
So, I cannot always go back to the HTML
313
00:18:02,800 --> 00:18:07,340
and find exactly what is the element that we need to change.
314
00:18:07,340 --> 00:18:09,820
So, I already know that beforehand.
315
00:18:09,820 --> 00:18:12,010
And so I can just tell you here
316
00:18:12,010 --> 00:18:14,843
so that we do not waste too much time. Okay?
317
00:18:17,940 --> 00:18:20,730
So, this testimonials-container here is again,
318
00:18:20,730 --> 00:18:22,723
what has that huge padding.
319
00:18:24,340 --> 00:18:26,020
So let's fix that here
320
00:18:26,870 --> 00:18:29,680
and it can stay for now 9.6rem
321
00:18:29,680 --> 00:18:33,030
at the top and bottom just to stay consistent.
322
00:18:33,030 --> 00:18:37,730
But then at the sides, I also wanted to have the same 3.2,
323
00:18:37,730 --> 00:18:40,203
just like the header and the container.
324
00:18:42,780 --> 00:18:46,550
Okay? And so that's now looks quite better again,
325
00:18:46,550 --> 00:18:50,623
because now the text looks a bit more like a square here.
326
00:18:51,520 --> 00:18:54,211
Right? And also now the alignment is exactly
327
00:18:54,211 --> 00:18:56,253
as the rest of the page.
328
00:18:57,610 --> 00:19:02,010
Okay? Now here, of course there is these two big spacing,
329
00:19:02,010 --> 00:19:06,410
but that's not a problem. All right?
330
00:19:06,410 --> 00:19:10,890
So, I think we are done here for this media query,
331
00:19:10,890 --> 00:19:14,100
but of course we will need a next one soon.
332
00:19:14,100 --> 00:19:16,030
So, maybe here, for example,
333
00:19:16,030 --> 00:19:20,550
we start getting some more problems, and yeah.
334
00:19:20,550 --> 00:19:22,713
So, let's do that in the next lecture.
24235
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.