All language subtitles for 079 Implementing Border-radius.en_US

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian Download
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,400 --> 00:00:05,370 And specifying border radius in CSS is actually 2 00:00:05,370 --> 00:00:08,963 extremely easy. And so let's now go do that. 3 00:00:10,700 --> 00:00:14,160 So all we need to do is to specify the border radius 4 00:00:14,160 --> 00:00:16,423 property on some element. 5 00:00:17,390 --> 00:00:20,040 So let's go, for example, to images 6 00:00:20,040 --> 00:00:22,683 and apply a border radius to all of them. 7 00:00:23,900 --> 00:00:27,980 So I'm actually going to select right here, all the images 8 00:00:30,280 --> 00:00:34,450 and then border radius. 9 00:00:34,450 --> 00:00:37,420 And so here, of course, we need to specify a length, 10 00:00:37,420 --> 00:00:39,730 and let's just experiment with different values, 11 00:00:39,730 --> 00:00:42,830 just so you get a sense for how much border radius 12 00:00:42,830 --> 00:00:46,120 corresponds to a certain amount of pixels. 13 00:00:46,120 --> 00:00:47,990 Like if we say two pixels, 14 00:00:47,990 --> 00:00:50,083 then almost nothing is going to change. 15 00:00:51,060 --> 00:00:53,150 So you'll see that here it is still 16 00:00:53,150 --> 00:00:54,893 almost completely squared. 17 00:00:55,840 --> 00:00:58,430 Now, if we use, like, 50 pixels, 18 00:00:58,430 --> 00:01:03,000 then that will actually take away a lot of the corner here. 19 00:01:03,000 --> 00:01:04,600 Right? 20 00:01:04,600 --> 00:01:09,470 So that is 50 pixels, but now let's use something more 21 00:01:09,470 --> 00:01:12,460 sensitive, like 12 pixels. 22 00:01:12,460 --> 00:01:15,500 And so this looks a little bit nicer also because, 23 00:01:15,500 --> 00:01:20,150 our typeface is actually quite boxy, so quite squared. 24 00:01:20,150 --> 00:01:23,750 And so maybe we wouldn't even need any border radius at all 25 00:01:23,750 --> 00:01:25,200 in this design, 26 00:01:25,200 --> 00:01:29,520 but of course I still want to show it to you. And so yeah. 27 00:01:29,520 --> 00:01:33,370 This project is mainly about actually showing you stuff. 28 00:01:33,370 --> 00:01:34,960 So this image is here, 29 00:01:34,960 --> 00:01:39,960 has now 12 pixels, and this one, and this one. 30 00:01:40,190 --> 00:01:42,000 And so since we're already here, 31 00:01:42,000 --> 00:01:44,370 let's not give this entire section here 32 00:01:44,370 --> 00:01:46,810 a border radius as well. 33 00:01:46,810 --> 00:01:49,890 So we have it here on the image 12 pixels. 34 00:01:49,890 --> 00:01:51,600 And so to make this look nice, 35 00:01:51,600 --> 00:01:53,890 we should give this section here 36 00:01:53,890 --> 00:01:56,253 the exact same amount of border radius. 37 00:01:57,690 --> 00:01:59,853 So remember that is 12 pixels. 38 00:02:01,100 --> 00:02:04,960 So border radius. 39 00:02:04,960 --> 00:02:08,640 So if we added something else, like 20 pixels, 40 00:02:08,640 --> 00:02:11,420 then that would look kind of off. 41 00:02:11,420 --> 00:02:14,330 Well, actually with 20, it wouldn't be so bad, 42 00:02:14,330 --> 00:02:15,923 but let's say 30. 43 00:02:16,960 --> 00:02:19,980 So now it looks weird because this radius here 44 00:02:19,980 --> 00:02:21,690 is really a lot bigger. 45 00:02:21,690 --> 00:02:26,400 And so that's why we make it the same also at 12 pixels. 46 00:02:26,400 --> 00:02:29,310 So you'll see that now it looks quite consistent 47 00:02:30,270 --> 00:02:31,750 and let's do the same here 48 00:02:31,750 --> 00:02:35,840 since we're already down here as well with these cards. 49 00:02:35,840 --> 00:02:40,840 So that is the chair box, probably it's the chair actually. 50 00:02:43,930 --> 00:02:47,333 So a border radius of 12 pixel, 51 00:02:48,240 --> 00:02:52,030 and you see down here, we have that border radius. 52 00:02:52,030 --> 00:02:55,500 However, now this looks kind of strange here 53 00:02:55,500 --> 00:02:57,290 because we have the border radius, 54 00:02:57,290 --> 00:03:01,720 not only on the card here, but we also have it in 55 00:03:01,720 --> 00:03:05,600 these two corners of the image, right? 56 00:03:05,600 --> 00:03:09,640 So we want it here in the top, but not at the bottom. 57 00:03:09,640 --> 00:03:13,210 And so we can actually control individual corners also 58 00:03:13,210 --> 00:03:15,120 using CSS. 59 00:03:15,120 --> 00:03:18,300 So let's basically take away the border radius here 60 00:03:18,300 --> 00:03:20,023 in this corner and in this one. 61 00:03:21,430 --> 00:03:26,110 So let's select the chair, 62 00:03:26,110 --> 00:03:29,510 and then the image that's inside of that. 63 00:03:29,510 --> 00:03:32,400 So we're using a child selector again, 64 00:03:32,400 --> 00:03:33,830 selecting the chair element, 65 00:03:33,830 --> 00:03:36,500 which has all of this and then, in there the image, 66 00:03:36,500 --> 00:03:38,203 which is this element here. 67 00:03:39,240 --> 00:03:43,383 So remember that the image itself has a border radius of 12, 68 00:03:45,160 --> 00:03:49,800 and now we can selectively turn off one corner. 69 00:03:49,800 --> 00:03:53,363 So bottom and then left radius 70 00:03:56,300 --> 00:03:59,823 and let's set it to zero, and it's gone. 71 00:04:00,770 --> 00:04:01,660 Right? 72 00:04:01,660 --> 00:04:05,410 And so this is actually how you would also style a button 73 00:04:05,410 --> 00:04:07,190 like those creative buttons that 74 00:04:07,190 --> 00:04:09,220 I showed you in the last lecture. 75 00:04:09,220 --> 00:04:13,320 So where one corner looks like this: completely squared, 76 00:04:13,320 --> 00:04:15,320 and then the other three ones are round. 77 00:04:16,714 --> 00:04:19,000 But here that's not what we're looking for. 78 00:04:19,000 --> 00:04:24,000 We also want the other one to be zero. 79 00:04:24,220 --> 00:04:26,903 So just like this, right? 80 00:04:27,980 --> 00:04:30,370 So that looks nice and round. 81 00:04:30,370 --> 00:04:33,740 And now all we need to fix is these buttons. 82 00:04:33,740 --> 00:04:36,280 So this one and this one. 83 00:04:36,280 --> 00:04:38,150 And what we want to do with these 84 00:04:38,150 --> 00:04:41,120 is to actually make them completely round. 85 00:04:41,120 --> 00:04:43,533 So basically like this here. 86 00:04:45,150 --> 00:04:46,790 So where is that? 87 00:04:48,840 --> 00:04:49,673 Right here. 88 00:04:50,840 --> 00:04:53,800 So border radius. 89 00:04:53,800 --> 00:04:57,210 So, again, here we don't want this, 90 00:04:57,210 --> 00:04:59,810 which of course would still not look bad, 91 00:04:59,810 --> 00:05:03,140 but now I want to show you how we can actually make this 92 00:05:03,140 --> 00:05:04,600 really rounded. 93 00:05:04,600 --> 00:05:06,550 Now there are two ways of doing this, 94 00:05:06,550 --> 00:05:09,790 but one only works if the element is a square. 95 00:05:09,790 --> 00:05:12,660 So if the element is a square, to make it round, 96 00:05:12,660 --> 00:05:17,460 we give it a border radius of 50% like this. 97 00:05:17,460 --> 00:05:19,620 However, since this is not a square, 98 00:05:19,620 --> 00:05:23,150 it will then turn into this, like, oval. 99 00:05:23,150 --> 00:05:25,680 And so that is not what we want. 100 00:05:25,680 --> 00:05:29,720 And so, and so instead in a situation like this, 101 00:05:29,720 --> 00:05:32,190 what we need to do is to simply specify 102 00:05:32,190 --> 00:05:34,420 a really big value here. 103 00:05:34,420 --> 00:05:37,750 So as long as it's taller than the element is tall, 104 00:05:37,750 --> 00:05:39,400 we will be fine. 105 00:05:39,400 --> 00:05:42,650 So we can, for example, use 100 pixels. 106 00:05:42,650 --> 00:05:45,290 And so now that's the result. 107 00:05:45,290 --> 00:05:47,810 But we could also use, like, 1,000 pixels 108 00:05:47,810 --> 00:05:49,810 and it wouldn't change anything. 109 00:05:49,810 --> 00:05:51,913 It just cannot be less than the height. 110 00:05:52,810 --> 00:05:55,110 So like this, it wouldn't work. 111 00:05:55,110 --> 00:05:57,990 Like this, now, maybe we're already there, 112 00:05:57,990 --> 00:06:02,083 but to play it safe, I like to use a really big value here. 113 00:06:03,230 --> 00:06:04,960 So that should have fixed it here. 114 00:06:04,960 --> 00:06:08,310 And also down there, since that is using 115 00:06:08,310 --> 00:06:10,490 the same class of button. 116 00:06:10,490 --> 00:06:13,450 All right, so this nice little design 117 00:06:13,450 --> 00:06:16,900 is starting to look really great, I think. 118 00:06:16,900 --> 00:06:19,080 Now one thing that we still need to fix 119 00:06:19,080 --> 00:06:22,300 is all the spacing that we have here on the page. 120 00:06:22,300 --> 00:06:24,760 So there's not enough white space here, 121 00:06:24,760 --> 00:06:27,970 which really makes it that there is a lack of 122 00:06:27,970 --> 00:06:30,580 visual hierarchy also on the page. 123 00:06:30,580 --> 00:06:32,870 And so that's what we're going to learn about 124 00:06:32,870 --> 00:06:34,490 in the next two videos. 125 00:06:34,490 --> 00:06:37,150 So that then we can come back and fix that here 126 00:06:37,150 --> 00:06:38,253 in our design. 9190

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.