All language subtitles for 0024 - CSS Complete Project for Beginners.en.clean

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
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
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (SoranĂ®)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,539 --> 00:00:07,030 foreign 2 00:00:07,040 --> 00:00:10,070 this tutorial is part of a beginner CSS 3 00:00:10,080 --> 00:00:12,169 series I'll be using the Chrome web 4 00:00:12,179 --> 00:00:14,749 browser the visual studio code editor 5 00:00:14,759 --> 00:00:17,210 and the live server extension for visual 6 00:00:17,220 --> 00:00:19,849 studio code to view the web page there 7 00:00:19,859 --> 00:00:21,830 are links to these tools starter code 8 00:00:21,840 --> 00:00:24,109 files and all resources in the 9 00:00:24,119 --> 00:00:25,849 description below 10 00:00:25,859 --> 00:00:28,670 welcome to the final project of this CSS 11 00:00:28,680 --> 00:00:31,009 for beginners course at the end of my 12 00:00:31,019 --> 00:00:33,350 HTML for beginners course we built a 13 00:00:33,360 --> 00:00:35,270 full website for the little taco shop 14 00:00:35,280 --> 00:00:38,090 that you see here it's a basic website 15 00:00:38,100 --> 00:00:41,150 with very minimal CSS applied but it 16 00:00:41,160 --> 00:00:43,490 provides a great foundation for our CSS 17 00:00:43,500 --> 00:00:45,590 final project we're going to take this 18 00:00:45,600 --> 00:00:49,130 basic HTML website and turn it into this 19 00:00:49,140 --> 00:00:51,950 modern website with responsive design by 20 00:00:51,960 --> 00:00:53,689 applying much of what we've learned 21 00:00:53,699 --> 00:00:56,990 about CSS let's get started today by 22 00:00:57,000 --> 00:00:59,990 looking at the starter code and this is 23 00:01:00,000 --> 00:01:02,029 available in the course resources you'll 24 00:01:02,039 --> 00:01:04,549 want to download this code because it is 25 00:01:04,559 --> 00:01:07,429 the full website that we completed at 26 00:01:07,439 --> 00:01:09,770 the end of my HTML for beginners course 27 00:01:09,780 --> 00:01:11,690 and it will give us a great foundation 28 00:01:11,700 --> 00:01:15,170 for this project now if you completed 29 00:01:15,180 --> 00:01:17,149 that you already know what all is in the 30 00:01:17,159 --> 00:01:19,070 code however if you hadn't let's quickly 31 00:01:19,080 --> 00:01:21,830 go over it we have a few HTML pages and 32 00:01:21,840 --> 00:01:23,810 we're going to make a few changes to 33 00:01:23,820 --> 00:01:26,390 those not many though and then we have 34 00:01:26,400 --> 00:01:29,990 an image folder IMG inside this image 35 00:01:30,000 --> 00:01:32,270 folder I've included some larger images 36 00:01:32,280 --> 00:01:34,789 today so we will be able to delete the 37 00:01:34,799 --> 00:01:37,010 smaller images I left those in as well 38 00:01:37,020 --> 00:01:39,830 though in case you wanted to launch the 39 00:01:39,840 --> 00:01:42,830 project as it was in the beginning as we 40 00:01:42,840 --> 00:01:44,990 finished it in the HTML for beginners 41 00:01:45,000 --> 00:01:47,569 course but the top names when you see 42 00:01:47,579 --> 00:01:50,569 the double names they end with the 43 00:01:50,579 --> 00:01:53,030 dimensions and of course the width on 44 00:01:53,040 --> 00:01:55,429 the smaller the older images is 400 45 00:01:55,439 --> 00:01:58,550 pixels the width on the newer images is 46 00:01:58,560 --> 00:02:00,770 1 000 pixels and I've included those 47 00:02:00,780 --> 00:02:03,230 dimensions in the file names so for the 48 00:02:03,240 --> 00:02:04,969 duplicates you always want to choose the 49 00:02:04,979 --> 00:02:06,350 one on top 50 00:02:06,360 --> 00:02:09,109 and then I have a fourth image that does 51 00:02:09,119 --> 00:02:11,330 not have a duplicate because we will add 52 00:02:11,340 --> 00:02:13,070 one page today 53 00:02:13,080 --> 00:02:15,830 but let's select those duplicates and 54 00:02:15,840 --> 00:02:17,449 then I'm going to press the delete key 55 00:02:17,459 --> 00:02:20,150 and now we're left with just our larger 56 00:02:20,160 --> 00:02:20,949 images 57 00:02:20,959 --> 00:02:23,630 likewise there was an examples folder 58 00:02:23,640 --> 00:02:27,530 and this just gave us example images of 59 00:02:27,540 --> 00:02:30,110 what the project looked like at the end 60 00:02:30,120 --> 00:02:32,330 of that HTML course if you wanted to 61 00:02:32,340 --> 00:02:34,130 complete the challenge at that point you 62 00:02:34,140 --> 00:02:35,990 were welcome to try to look at these 63 00:02:36,000 --> 00:02:38,570 images and complete that and then look 64 00:02:38,580 --> 00:02:40,970 at my code so let's click that examples 65 00:02:40,980 --> 00:02:43,670 folder and also press delete as we no 66 00:02:43,680 --> 00:02:45,890 longer need those files now there is 67 00:02:45,900 --> 00:02:49,369 very very minimal CSS applied to this 68 00:02:49,379 --> 00:02:51,350 project so we will be cleaning out 69 00:02:51,360 --> 00:02:54,350 everything that is in the CSS file you 70 00:02:54,360 --> 00:02:57,589 can press Ctrl a to select all and hit 71 00:02:57,599 --> 00:03:00,530 backspace and delete those 19 lines of 72 00:03:00,540 --> 00:03:03,530 CSS that did exist so that gets us 73 00:03:03,540 --> 00:03:07,009 started now let's go to the index.html 74 00:03:07,019 --> 00:03:09,050 which is the home page and we'll start 75 00:03:09,060 --> 00:03:11,690 by looking at the head section the head 76 00:03:11,700 --> 00:03:13,970 section contains all of the meta tags 77 00:03:13,980 --> 00:03:15,830 that we would need in a project and you 78 00:03:15,840 --> 00:03:18,229 can see author and description however 79 00:03:18,239 --> 00:03:19,970 there is one missing that we're going to 80 00:03:19,980 --> 00:03:22,070 have to add but since we're creating 81 00:03:22,080 --> 00:03:24,470 another new page and we're going to just 82 00:03:24,480 --> 00:03:26,809 include the about content that is 83 00:03:26,819 --> 00:03:30,110 currently in the index.html we had an 84 00:03:30,120 --> 00:03:31,729 about section we're just going to make 85 00:03:31,739 --> 00:03:34,610 that a new page and Abstract that just 86 00:03:34,620 --> 00:03:37,430 remove it from the index and put it in 87 00:03:37,440 --> 00:03:39,530 its own page today so let's go ahead and 88 00:03:39,540 --> 00:03:41,809 do that and then I'll show you what's 89 00:03:41,819 --> 00:03:44,570 missing from the head section in all of 90 00:03:44,580 --> 00:03:46,789 the pages we already have so let's click 91 00:03:46,799 --> 00:03:49,729 the new file icon then type well it 92 00:03:49,739 --> 00:03:51,770 looks like maybe I already included it 93 00:03:51,780 --> 00:03:53,690 here before I actually do that but you 94 00:03:53,700 --> 00:03:55,550 would want to click the new file icon 95 00:03:55,560 --> 00:03:58,309 because the about page would not be in 96 00:03:58,319 --> 00:04:00,530 the starter code I guess I typed that in 97 00:04:00,540 --> 00:04:03,470 earlier but now we have a blank HTML 98 00:04:03,480 --> 00:04:06,170 file I'm going to type in exclamation 99 00:04:06,180 --> 00:04:08,990 mark which is an image shortcut but if 100 00:04:09,000 --> 00:04:11,270 the shortcut doesn't pop up for you you 101 00:04:11,280 --> 00:04:13,429 can press control in the spacebar bar 102 00:04:13,439 --> 00:04:15,229 and then you should see the shortcut 103 00:04:15,239 --> 00:04:17,150 menu and select this top imit 104 00:04:17,160 --> 00:04:19,370 abbreviation and this gives us the 105 00:04:19,380 --> 00:04:21,469 outline of a page now there's a couple 106 00:04:21,479 --> 00:04:23,330 of things it includes that we don't have 107 00:04:23,340 --> 00:04:26,570 in the other HTML files from that HTML 108 00:04:26,580 --> 00:04:29,930 beginners project one is this meta tag 109 00:04:29,940 --> 00:04:33,670 that has xua compatible IE equals Edge 110 00:04:33,680 --> 00:04:36,290 they still include that with this image 111 00:04:36,300 --> 00:04:38,510 shortcut but it's not really necessary 112 00:04:38,520 --> 00:04:40,790 unless you're concerned about possibly 113 00:04:40,800 --> 00:04:42,950 supporting Internet Explorer which at 114 00:04:42,960 --> 00:04:46,310 this point has been discontinued and for 115 00:04:46,320 --> 00:04:48,590 the most part is no longer in use but 116 00:04:48,600 --> 00:04:50,749 you could include that the one that I 117 00:04:50,759 --> 00:04:53,030 want to make sure we include today is 118 00:04:53,040 --> 00:04:55,670 the next one meta with the name equal to 119 00:04:55,680 --> 00:04:58,070 viewport and then the content is equal 120 00:04:58,080 --> 00:05:01,070 to width equals device width and initial 121 00:05:01,080 --> 00:05:05,029 scale of 1.0 we absolutely need that 122 00:05:05,039 --> 00:05:07,490 meta tag in the header of all of our 123 00:05:07,500 --> 00:05:09,770 HTML pages so we can make them 124 00:05:09,780 --> 00:05:12,590 responsive so I'm going to copy this and 125 00:05:12,600 --> 00:05:15,409 then I'll go go back to that index.html 126 00:05:15,419 --> 00:05:17,390 and I'm just going to put it right 127 00:05:17,400 --> 00:05:21,529 underneath the utf-8 that we have in the 128 00:05:21,539 --> 00:05:24,230 medic care set which is character set 129 00:05:24,240 --> 00:05:26,270 here in the head and of course we can 130 00:05:26,280 --> 00:05:29,090 remove that space and save and then I'm 131 00:05:29,100 --> 00:05:30,850 going to want to do that in the 132 00:05:30,860 --> 00:05:33,170 hours.html as well 133 00:05:33,180 --> 00:05:35,090 so I'll put that in get rid of the blank 134 00:05:35,100 --> 00:05:38,749 line Ctrl s to save one more time in the 135 00:05:38,759 --> 00:05:41,450 contact dot HTML and we'll put it right 136 00:05:41,460 --> 00:05:42,850 after the 137 00:05:42,860 --> 00:05:46,189 utf-8 line and save so now that we've 138 00:05:46,199 --> 00:05:48,050 done that back here in our about we 139 00:05:48,060 --> 00:05:50,150 could fill in all of these blank things 140 00:05:50,160 --> 00:05:52,850 that we have or we could just copy the 141 00:05:52,860 --> 00:05:55,730 pattern that we already have inside of 142 00:05:55,740 --> 00:05:58,370 the index.html so I'm just going to copy 143 00:05:58,380 --> 00:06:01,490 the full head section here the entire 144 00:06:01,500 --> 00:06:03,529 head element with the opening and 145 00:06:03,539 --> 00:06:07,249 closing tags go back to about and then 146 00:06:07,259 --> 00:06:10,189 I'm going to select it here and paste it 147 00:06:10,199 --> 00:06:12,110 in now I'll just change some information 148 00:06:12,120 --> 00:06:14,570 now I can see some of that's going off 149 00:06:14,580 --> 00:06:17,629 the screen so I'll press alt Z and get 150 00:06:17,639 --> 00:06:19,430 that code to wrap so I can see 151 00:06:19,440 --> 00:06:21,529 everything you'll want to change of 152 00:06:21,539 --> 00:06:24,830 course my name in the author meta tag to 153 00:06:24,840 --> 00:06:26,990 your name and now for the description 154 00:06:27,000 --> 00:06:29,809 instead of the official website here we 155 00:06:29,819 --> 00:06:32,749 would just want about the little taco 156 00:06:32,759 --> 00:06:36,110 shop up so this is the about page and 157 00:06:36,120 --> 00:06:38,390 that's what we have and we could put the 158 00:06:38,400 --> 00:06:41,150 same in the title about the little taco 159 00:06:41,160 --> 00:06:44,090 shop everything else is pretty much as 160 00:06:44,100 --> 00:06:46,370 we need it for now so I'll press Ctrl s 161 00:06:46,380 --> 00:06:49,129 to save that and of course we see a 162 00:06:49,139 --> 00:06:50,629 little Auto formatting now where it 163 00:06:50,639 --> 00:06:53,270 included the lines the spaces that you 164 00:06:53,280 --> 00:06:55,430 see here but we'll just leave it as is 165 00:06:55,440 --> 00:06:57,650 and then we will come back and get that 166 00:06:57,660 --> 00:07:00,969 information or abstract that out of the 167 00:07:00,979 --> 00:07:03,890 index.html when we get to that point now 168 00:07:03,900 --> 00:07:06,770 moving back to the index.html file I'm 169 00:07:06,780 --> 00:07:09,170 going to scroll down and we have a 170 00:07:09,180 --> 00:07:11,330 header section already clearly defined 171 00:07:11,340 --> 00:07:13,370 but we can see it goes clear off the 172 00:07:13,380 --> 00:07:15,290 page I don't have the closing tag here 173 00:07:15,300 --> 00:07:17,809 yet however everything we see here is 174 00:07:17,819 --> 00:07:20,210 really all I want in the header now we 175 00:07:20,220 --> 00:07:22,909 had a figure here with an image but 176 00:07:22,919 --> 00:07:24,290 we're going to pull that out of the 177 00:07:24,300 --> 00:07:25,969 header and put it inside of its own 178 00:07:25,979 --> 00:07:29,089 section so select everything from the 179 00:07:29,099 --> 00:07:31,550 opening figure to the closing figure and 180 00:07:31,560 --> 00:07:34,370 I press Ctrl X to cut 181 00:07:34,380 --> 00:07:36,469 and then I'm going to backspace and 182 00:07:36,479 --> 00:07:38,809 remove those spaces and then I'm going 183 00:07:38,819 --> 00:07:39,830 to type 184 00:07:39,840 --> 00:07:42,589 section and press Tab and so I get a 185 00:07:42,599 --> 00:07:44,990 closing tag as well and then press 186 00:07:45,000 --> 00:07:48,050 return or enter so I get a new line and 187 00:07:48,060 --> 00:07:50,390 then I'm going to control V to paste 188 00:07:50,400 --> 00:07:52,390 that figure in so now the section 189 00:07:52,400 --> 00:07:55,070 contains the figure and the header 190 00:07:55,080 --> 00:07:58,129 contains the nav and the H1 and I'm 191 00:07:58,139 --> 00:08:01,129 going to do that on all of the pages but 192 00:08:01,139 --> 00:08:03,469 and I'll remove that HR which was the 193 00:08:03,479 --> 00:08:06,710 horizontal rule however I want to apply 194 00:08:06,720 --> 00:08:08,930 some classes here as well that will help 195 00:08:08,940 --> 00:08:12,110 us format our CSS so before I make these 196 00:08:12,120 --> 00:08:14,330 changes to the other Pages let's apply 197 00:08:14,340 --> 00:08:16,790 those classes in the final lesson before 198 00:08:16,800 --> 00:08:19,369 this project we learned about the bem 199 00:08:19,379 --> 00:08:22,249 block element modifier naming convention 200 00:08:22,259 --> 00:08:24,469 and I'm going to use that some today for 201 00:08:24,479 --> 00:08:27,050 each section of the page so we'll start 202 00:08:27,060 --> 00:08:30,050 here with a class and we're going to set 203 00:08:30,060 --> 00:08:33,230 this equal to header the same as the 204 00:08:33,240 --> 00:08:35,449 element name and it will be the parent 205 00:08:35,459 --> 00:08:38,690 class for everything inside so when we 206 00:08:38,700 --> 00:08:42,529 label the H1 we'll say class and here 207 00:08:42,539 --> 00:08:44,870 I'm going to say header two underscores 208 00:08:44,880 --> 00:08:48,470 and H1 likewise for the nav we'll say 209 00:08:48,480 --> 00:08:51,590 class equals and then we'll have header 210 00:08:51,600 --> 00:08:55,490 two underscores and nav and when we get 211 00:08:55,500 --> 00:08:57,530 to the unordered list we'll say class 212 00:08:57,540 --> 00:09:01,070 equals and then we'll have header 213 00:09:01,080 --> 00:09:03,170 two underscores if I could find that 214 00:09:03,180 --> 00:09:05,570 underscore key again and then 215 00:09:05,580 --> 00:09:07,910 UL but then I'm not going to apply 216 00:09:07,920 --> 00:09:10,850 classes to the list items some may want 217 00:09:10,860 --> 00:09:13,430 to do that and that would be okay this 218 00:09:13,440 --> 00:09:16,250 is a small project and I don't have any 219 00:09:16,260 --> 00:09:19,670 plans to put Styles directly on these 220 00:09:19,680 --> 00:09:21,829 list items so I can accomplish 221 00:09:21,839 --> 00:09:23,509 everything we're doing today without 222 00:09:23,519 --> 00:09:25,550 doing that so I'll leave that as is 223 00:09:25,560 --> 00:09:28,970 however we do need to rearrange some of 224 00:09:28,980 --> 00:09:31,850 the menu so I'm going to select this top 225 00:09:31,860 --> 00:09:34,790 list item for about and press Ctrl X to 226 00:09:34,800 --> 00:09:37,970 cut it out we'll leave the menu as the 227 00:09:37,980 --> 00:09:39,949 first selection the second selection 228 00:09:39,959 --> 00:09:42,889 will be the hours page the third will be 229 00:09:42,899 --> 00:09:46,190 the contact.html so at the bottom I'm 230 00:09:46,200 --> 00:09:49,730 going to paste in the what was the first 231 00:09:49,740 --> 00:09:52,190 list item it's now the last list item 232 00:09:52,200 --> 00:09:54,949 but it will no longer be an anchor tag 233 00:09:54,959 --> 00:09:56,930 that goes to part of this page it's 234 00:09:56,940 --> 00:10:01,009 going to go to the about dot HTML page 235 00:10:01,019 --> 00:10:04,190 so we'll switch that over and we don't 236 00:10:04,200 --> 00:10:05,690 really need to have the whole 237 00:10:05,700 --> 00:10:07,790 abbreviation here so I'm going to remove 238 00:10:07,800 --> 00:10:09,290 that it was good to learn about 239 00:10:09,300 --> 00:10:12,410 abbreviations in the HTML course but now 240 00:10:12,420 --> 00:10:14,630 we'll just use the word about because 241 00:10:14,640 --> 00:10:17,329 that pretty much sums it up likewise we 242 00:10:17,339 --> 00:10:21,710 can change contact us to contact and 243 00:10:21,720 --> 00:10:24,290 store hours can just simply be changed 244 00:10:24,300 --> 00:10:27,889 to hours likewise our menu 245 00:10:27,899 --> 00:10:31,009 can just be menu and that will still 246 00:10:31,019 --> 00:10:33,650 indicate what these pages are all about 247 00:10:33,660 --> 00:10:35,810 now let's scroll down to our section 248 00:10:35,820 --> 00:10:37,730 that contains the figure and we're going 249 00:10:37,740 --> 00:10:39,949 to call this a hero section it's the 250 00:10:39,959 --> 00:10:41,990 part of the page after the header where 251 00:10:42,000 --> 00:10:44,329 you usually see a large image or an 252 00:10:44,339 --> 00:10:46,370 attention getter that's often referred 253 00:10:46,380 --> 00:10:48,650 to as the hero section so let's give 254 00:10:48,660 --> 00:10:51,470 this section a class and we'll just set 255 00:10:51,480 --> 00:10:55,370 it equal to hero and then inside we're 256 00:10:55,380 --> 00:10:57,650 going to put an H2 element that is not 257 00:10:57,660 --> 00:11:00,470 currently there so we'll type H2 press 258 00:11:00,480 --> 00:11:03,650 Tab and we can complete the closing tag 259 00:11:03,660 --> 00:11:07,490 that way now let's give this H2 a class 260 00:11:07,500 --> 00:11:12,650 equal to Hero two underscores and H2 and 261 00:11:12,660 --> 00:11:14,449 we're going to put a welcome here that 262 00:11:14,459 --> 00:11:17,030 the owner of the little taco shop wants 263 00:11:17,040 --> 00:11:19,990 us to add and it's going to say bien 264 00:11:20,000 --> 00:11:23,150 Benitos which I believe is saying 265 00:11:23,160 --> 00:11:25,190 welcome in Spanish as well so we'll just 266 00:11:25,200 --> 00:11:27,590 have that H2 there and this won't be on 267 00:11:27,600 --> 00:11:30,530 every page it's only going to be on the 268 00:11:30,540 --> 00:11:33,170 home page after that we have some 269 00:11:33,180 --> 00:11:36,230 changes to make to our figure itself now 270 00:11:36,240 --> 00:11:39,050 the figure can just stay there as is so 271 00:11:39,060 --> 00:11:41,269 really what needs to be changed is the 272 00:11:41,279 --> 00:11:43,730 image and maybe applying a new class to 273 00:11:43,740 --> 00:11:45,769 the Fig caption so we're going to start 274 00:11:45,779 --> 00:11:47,990 off with the image and it's still the 275 00:11:48,000 --> 00:11:50,569 tacos and drink image but the dimensions 276 00:11:50,579 --> 00:11:52,190 have changed so we just need to change 277 00:11:52,200 --> 00:11:54,889 the name so it's going to be 1000 and 278 00:11:54,899 --> 00:11:56,930 you can see vs code knows what's in our 279 00:11:56,940 --> 00:11:59,030 image folder and it wants to help us 280 00:11:59,040 --> 00:12:02,030 complete that the alt will stay the same 281 00:12:02,040 --> 00:12:04,430 the alt attribute the title will stay 282 00:12:04,440 --> 00:12:06,590 the same but now we need to go ahead and 283 00:12:06,600 --> 00:12:09,410 Supply the actual dimensions so we can 284 00:12:09,420 --> 00:12:12,350 avoid that content layout shift that may 285 00:12:12,360 --> 00:12:14,690 happen and that was discussed previously 286 00:12:14,700 --> 00:12:16,490 in a lesson as well and of course we 287 00:12:16,500 --> 00:12:18,769 will be styling this image to be a 288 00:12:18,779 --> 00:12:21,230 responsive image too and then we're 289 00:12:21,240 --> 00:12:23,629 going to give the Fig caption a class 290 00:12:23,639 --> 00:12:26,090 while we're here and this class is going 291 00:12:26,100 --> 00:12:28,009 to be off screen 292 00:12:28,019 --> 00:12:31,129 and what that does if you remember when 293 00:12:31,139 --> 00:12:33,050 we had covered that in a previous lesson 294 00:12:33,060 --> 00:12:36,050 is it will take this caption off the 295 00:12:36,060 --> 00:12:38,050 screen but it will leave it available 296 00:12:38,060 --> 00:12:41,389 for screen readers for accessibility so 297 00:12:41,399 --> 00:12:43,850 that is important as well so it won't be 298 00:12:43,860 --> 00:12:46,250 viewable but it will be readable and now 299 00:12:46,260 --> 00:12:47,990 we need to structure these top two 300 00:12:48,000 --> 00:12:50,569 sections the header and the hero section 301 00:12:50,579 --> 00:12:53,210 in all of the other HTML files as well 302 00:12:53,220 --> 00:12:55,250 so we have a good foundation before we 303 00:12:55,260 --> 00:12:57,650 start in on the CSS so I'm going to 304 00:12:57,660 --> 00:13:01,550 scroll up for now and select this header 305 00:13:01,560 --> 00:13:04,550 on line 15 and scroll all the way down 306 00:13:04,560 --> 00:13:07,250 to line 44 where the section ends I'll 307 00:13:07,260 --> 00:13:09,710 hold down the shift key and click my 308 00:13:09,720 --> 00:13:12,170 mouse select all of that because right 309 00:13:12,180 --> 00:13:15,110 now our about.html does not have any of 310 00:13:15,120 --> 00:13:17,509 this content so I'll press Ctrl C to 311 00:13:17,519 --> 00:13:21,230 copy and now I'll go to the about.html 312 00:13:21,240 --> 00:13:24,590 page and inside the body element I'm 313 00:13:24,600 --> 00:13:26,930 going to paste all of that in now it 314 00:13:26,940 --> 00:13:29,030 will currently be the same game as we 315 00:13:29,040 --> 00:13:31,250 have on the index page but we can make 316 00:13:31,260 --> 00:13:33,710 some changes here and the first change 317 00:13:33,720 --> 00:13:36,410 we're going to make is to select this 318 00:13:36,420 --> 00:13:40,069 last list item and control X to remove 319 00:13:40,079 --> 00:13:42,590 it from the bottom of the list and it 320 00:13:42,600 --> 00:13:44,449 will now go once again 321 00:13:44,459 --> 00:13:47,090 at the top of the list so Ctrl V to 322 00:13:47,100 --> 00:13:49,370 paste but it's not going to go to the 323 00:13:49,380 --> 00:13:51,710 about page we just want to put in a 324 00:13:51,720 --> 00:13:53,810 slash which means it will be the root 325 00:13:53,820 --> 00:13:56,750 page that will take us back to the home 326 00:13:56,760 --> 00:13:59,629 page so we'll type home there and then 327 00:13:59,639 --> 00:14:01,490 the next one should go to not just 328 00:14:01,500 --> 00:14:03,889 hashtag menu because that means it would 329 00:14:03,899 --> 00:14:05,810 be on the same page it should go to the 330 00:14:05,820 --> 00:14:08,689 home page which is the Slash and then 331 00:14:08,699 --> 00:14:12,470 hashtag menu and that will take the 332 00:14:12,480 --> 00:14:14,930 visitor back to not only the home page 333 00:14:14,940 --> 00:14:17,810 but then to that particular spot on the 334 00:14:17,820 --> 00:14:20,569 home page which is the menu so now we've 335 00:14:20,579 --> 00:14:24,470 completed or adjusted the menu for our 336 00:14:24,480 --> 00:14:26,930 about page but then we also need to 337 00:14:26,940 --> 00:14:29,030 change this header so instead of Welcome 338 00:14:29,040 --> 00:14:31,910 to the little taco shop let's just put 339 00:14:31,920 --> 00:14:35,329 little taco shop at the top of our about 340 00:14:35,339 --> 00:14:36,530 here 341 00:14:36,540 --> 00:14:39,170 and then after that we can scroll down 342 00:14:39,180 --> 00:14:41,569 and change our hero section just a 343 00:14:41,579 --> 00:14:43,490 little bit as well so we're not going to 344 00:14:43,500 --> 00:14:47,930 have the H2 bambinitos on the about page 345 00:14:47,940 --> 00:14:50,210 we're just going to have the figure and 346 00:14:50,220 --> 00:14:53,090 this is going to be a different image 347 00:14:53,100 --> 00:14:55,670 here so this one will take the last part 348 00:14:55,680 --> 00:14:58,129 of this image file because this is named 349 00:14:58,139 --> 00:15:02,150 tacos delicioso tacos delicioso if I 350 00:15:02,160 --> 00:15:04,069 could pronounce that correctly and then 351 00:15:04,079 --> 00:15:06,350 we'll have a different caption here as 352 00:15:06,360 --> 00:15:09,530 well which should say tacos 353 00:15:09,540 --> 00:15:12,050 delicioso 354 00:15:12,060 --> 00:15:14,629 I could double check my spelling on that 355 00:15:14,639 --> 00:15:17,509 as well and let me go ahead and check 356 00:15:17,519 --> 00:15:20,930 the title tag the title is basically the 357 00:15:20,940 --> 00:15:22,970 same so I'll copy that but we'll put an 358 00:15:22,980 --> 00:15:25,069 exclamation mark in there because the 359 00:15:25,079 --> 00:15:27,350 title and the alt do not have to be the 360 00:15:27,360 --> 00:15:30,650 same the dimensions are the same 1000 by 361 00:15:30,660 --> 00:15:33,530 667 we're once again going to have a 362 00:15:33,540 --> 00:15:35,749 class of off screen on the Fig caption 363 00:15:35,759 --> 00:15:37,970 but the caption should be different so 364 00:15:37,980 --> 00:15:40,370 this will be try these 365 00:15:40,380 --> 00:15:42,230 delicious 366 00:15:42,240 --> 00:15:45,530 tacos and we can save and now we have 367 00:15:45,540 --> 00:15:48,590 the header and the hero section complete 368 00:15:48,600 --> 00:15:52,910 on the about page so now we can make the 369 00:15:52,920 --> 00:15:55,129 same similar changes to the other two 370 00:15:55,139 --> 00:15:57,530 pages we have but we won't need to paste 371 00:15:57,540 --> 00:15:59,689 in the content we really already have it 372 00:15:59,699 --> 00:16:02,810 there so let's go to the hours page and 373 00:16:02,820 --> 00:16:05,449 we can scroll down and look at that menu 374 00:16:05,459 --> 00:16:07,490 and what we're going to have to do is 375 00:16:07,500 --> 00:16:10,430 apply those classes once again but we 376 00:16:10,440 --> 00:16:12,350 essentially already have the menu that 377 00:16:12,360 --> 00:16:14,030 we're going to need to have on the hours 378 00:16:14,040 --> 00:16:16,629 page we're already linking to home 379 00:16:16,639 --> 00:16:20,150 however the next one should be menu so 380 00:16:20,160 --> 00:16:22,370 let's cut out that about with the 381 00:16:22,380 --> 00:16:24,530 control X 382 00:16:24,540 --> 00:16:28,069 and we will link to the home page and 383 00:16:28,079 --> 00:16:31,009 then the hashtag menu and then we'll 384 00:16:31,019 --> 00:16:33,949 have hours after that or I'm sorry we 385 00:16:33,959 --> 00:16:35,629 won't have hours after that we're on the 386 00:16:35,639 --> 00:16:38,090 hours page we're going to have contact 387 00:16:38,100 --> 00:16:40,790 and then we'll have the about page which 388 00:16:40,800 --> 00:16:43,670 once again needs to remove the Slash and 389 00:16:43,680 --> 00:16:47,530 the hashtag and we'll say about dot HTML 390 00:16:47,540 --> 00:16:50,930 and ALT Z to wrap this code because we 391 00:16:50,940 --> 00:16:54,170 no longer need the about LTS it will 392 00:16:54,180 --> 00:16:56,389 just be about and then we'll make those 393 00:16:56,399 --> 00:16:58,249 similar changes here no longer contact 394 00:16:58,259 --> 00:17:01,430 us it will be contact no longer our menu 395 00:17:01,440 --> 00:17:04,970 it will just be menu and then home so we 396 00:17:04,980 --> 00:17:07,429 can save now let's scroll down and we'll 397 00:17:07,439 --> 00:17:10,069 take that figure once again control X to 398 00:17:10,079 --> 00:17:11,150 remove it 399 00:17:11,160 --> 00:17:13,909 and then underneath the header create 400 00:17:13,919 --> 00:17:16,250 just a little space I'll highlight that 401 00:17:16,260 --> 00:17:19,730 HR to remove it we'll type section and 402 00:17:19,740 --> 00:17:21,650 now in the section we'll paste in our 403 00:17:21,660 --> 00:17:22,730 figure 404 00:17:22,740 --> 00:17:25,309 and then I'll give just a empty line 405 00:17:25,319 --> 00:17:27,949 after the section and we're now ready to 406 00:17:27,959 --> 00:17:30,470 apply the classes as we expect to have 407 00:17:30,480 --> 00:17:33,230 them here on the hours page as well or 408 00:17:33,240 --> 00:17:35,210 we I guess we could go ahead and change 409 00:17:35,220 --> 00:17:37,130 the details on the figure it's going to 410 00:17:37,140 --> 00:17:40,450 be tacos tray again but it's going to be 411 00:17:40,460 --> 00:17:44,150 1000 by 667 I believe but let's check 412 00:17:44,160 --> 00:17:46,690 this because vs code will help us so 413 00:17:46,700 --> 00:17:51,350 tacos tray there we go 1000 by 667 414 00:17:51,360 --> 00:17:53,570 and then the rest of this won't change 415 00:17:53,580 --> 00:17:58,669 except the dimensions so 1000 by 6 67 416 00:17:58,679 --> 00:18:01,250 and then the Fig caption once again is 417 00:18:01,260 --> 00:18:04,430 going to need that class equal to 418 00:18:04,440 --> 00:18:07,610 off screen there we go now we need to 419 00:18:07,620 --> 00:18:11,750 add the class up above which is hero 420 00:18:11,760 --> 00:18:13,970 and save now let's go ahead and scroll 421 00:18:13,980 --> 00:18:16,070 up and we'll apply those header classes 422 00:18:16,080 --> 00:18:19,070 once again at the top for the hours page 423 00:18:19,080 --> 00:18:23,630 so we have class equals header and then 424 00:18:23,640 --> 00:18:25,970 I'm just going to copy this to save just 425 00:18:25,980 --> 00:18:27,230 a little time 426 00:18:27,240 --> 00:18:29,930 paste it into the H1 paste it into the 427 00:18:29,940 --> 00:18:32,990 nav and paste it into the UL and now 428 00:18:33,000 --> 00:18:34,250 this first one is going to be two 429 00:18:34,260 --> 00:18:37,190 underscores and H1 the next one is going 430 00:18:37,200 --> 00:18:40,130 to be two underscores and nav and the 431 00:18:40,140 --> 00:18:42,710 last one is going to be two underscores 432 00:18:42,720 --> 00:18:45,409 and ul and now we've added the classes 433 00:18:45,419 --> 00:18:47,750 we need one more time let's make those 434 00:18:47,760 --> 00:18:50,570 same changes to the contact page now so 435 00:18:50,580 --> 00:18:53,390 our starter will be the header with a 436 00:18:53,400 --> 00:18:56,510 class of header the H1 will then have a 437 00:18:56,520 --> 00:18:59,650 class of header two underscores an H1 438 00:18:59,660 --> 00:19:03,710 and nav will have the class of net our 439 00:19:03,720 --> 00:19:06,890 header two underscores and nav and the 440 00:19:06,900 --> 00:19:09,950 unordered list will have the class of 441 00:19:09,960 --> 00:19:12,950 header two underscores and UL for 442 00:19:12,960 --> 00:19:14,630 unordered list looks like I put some 443 00:19:14,640 --> 00:19:16,789 Extra Spaces in there I'll remove but 444 00:19:16,799 --> 00:19:18,590 we've applied the class to the header 445 00:19:18,600 --> 00:19:20,930 let's look and see if we have the menu 446 00:19:20,940 --> 00:19:23,450 in the order that we want it as well so 447 00:19:23,460 --> 00:19:25,430 we want to start with home and then 448 00:19:25,440 --> 00:19:28,130 about is okay but once again it needs to 449 00:19:28,140 --> 00:19:30,770 be to the about page here so we'll say 450 00:19:30,780 --> 00:19:31,909 about 451 00:19:31,919 --> 00:19:35,570 dot HTML and we're going to remove the 452 00:19:35,580 --> 00:19:37,610 abbreviation alt Z to just wrap that 453 00:19:37,620 --> 00:19:39,529 code so we can see it all 454 00:19:39,539 --> 00:19:41,870 remove the abbreviation so it's just an 455 00:19:41,880 --> 00:19:44,330 about link which we will select with 456 00:19:44,340 --> 00:19:47,870 control X then and remove and put it at 457 00:19:47,880 --> 00:19:50,270 the bottom of the list and the second 458 00:19:50,280 --> 00:19:52,190 one should be menu which is where we 459 00:19:52,200 --> 00:19:54,669 really want customers to go then hours 460 00:19:54,679 --> 00:19:57,289 and about there so that is in the 461 00:19:57,299 --> 00:19:58,970 correct order we'll remove the extra 462 00:19:58,980 --> 00:20:01,549 wording so we just have menu 463 00:20:01,559 --> 00:20:04,610 hours and about and save and now finally 464 00:20:04,620 --> 00:20:07,070 one more figure to remove to put in its 465 00:20:07,080 --> 00:20:09,169 own section element so highlight that 466 00:20:09,179 --> 00:20:11,570 Ctrl X to remove it 467 00:20:11,580 --> 00:20:14,029 we'll leave the header to itself I'll 468 00:20:14,039 --> 00:20:16,730 delete that horizontal rule element then 469 00:20:16,740 --> 00:20:18,770 above here we'll add the section element 470 00:20:18,780 --> 00:20:21,649 inside we'll go ahead and add the figure 471 00:20:21,659 --> 00:20:24,169 the section will be a class equal to 472 00:20:24,179 --> 00:20:25,970 Hero 473 00:20:25,980 --> 00:20:29,090 and then here we have tacos close up so 474 00:20:29,100 --> 00:20:31,490 this is going to change as well so we'll 475 00:20:31,500 --> 00:20:34,870 say tacos now we've got close up 1000 by 476 00:20:34,880 --> 00:20:38,090 649 which is just a little different so 477 00:20:38,100 --> 00:20:40,490 we'll delete that and now the height 478 00:20:40,500 --> 00:20:42,070 here is 479 00:20:42,080 --> 00:20:45,289 649. the Fig caption once again gets the 480 00:20:45,299 --> 00:20:47,810 class equal to 481 00:20:47,820 --> 00:20:50,750 off screen and save and now we are 482 00:20:50,760 --> 00:20:53,690 finally ready to write some CSS and what 483 00:20:53,700 --> 00:20:55,070 we're going to do at the top is what 484 00:20:55,080 --> 00:20:57,590 you've seen me do at a lot in a lot of 485 00:20:57,600 --> 00:20:59,690 different tutorials and that is import 486 00:20:59,700 --> 00:21:01,730 some fonts from Google I'm going to 487 00:21:01,740 --> 00:21:03,950 control B so you can see this full line 488 00:21:03,960 --> 00:21:06,470 for just a second and notice I'm 489 00:21:06,480 --> 00:21:08,510 importing two fonts here so after the 490 00:21:08,520 --> 00:21:11,330 URL you see family equals and there's 491 00:21:11,340 --> 00:21:14,810 fugaz one and then there's also nanito 492 00:21:14,820 --> 00:21:16,430 that you've seen me use in several 493 00:21:16,440 --> 00:21:18,950 tutorials using both of those fonts 494 00:21:18,960 --> 00:21:21,610 today and if you remember from the 495 00:21:21,620 --> 00:21:23,930 typography lesson of how we can go get 496 00:21:23,940 --> 00:21:25,810 those fonts from 497 00:21:25,820 --> 00:21:28,850 fonts.google.com you can do that and 498 00:21:28,860 --> 00:21:31,250 then import those into your CSS as I 499 00:21:31,260 --> 00:21:33,529 have after that we're going to have a 500 00:21:33,539 --> 00:21:37,430 CSS reset it will be fairly minimal and 501 00:21:37,440 --> 00:21:39,230 you have seen minimal ones throughout 502 00:21:39,240 --> 00:21:40,970 some of the lessons but let's go ahead 503 00:21:40,980 --> 00:21:43,610 and label our sections as we create our 504 00:21:43,620 --> 00:21:45,649 style sheet today it's going to start 505 00:21:45,659 --> 00:21:48,710 out with the everything so selector the 506 00:21:48,720 --> 00:21:51,289 all selector but then a couple that you 507 00:21:51,299 --> 00:21:53,510 may not have seen that are commonly in 508 00:21:53,520 --> 00:21:56,750 resets that I did not add in the lesson 509 00:21:56,760 --> 00:21:59,510 on pseudo elements but you see these 510 00:21:59,520 --> 00:22:01,730 pseudo elements so you also see the all 511 00:22:01,740 --> 00:22:04,130 selector with the after and the all 512 00:22:04,140 --> 00:22:05,330 selector 513 00:22:05,340 --> 00:22:07,370 with before so we're going to do that 514 00:22:07,380 --> 00:22:09,830 for all of those and then we'll put in 515 00:22:09,840 --> 00:22:11,750 what you typically see me put the margin 516 00:22:11,760 --> 00:22:13,010 0 517 00:22:13,020 --> 00:22:17,510 padding of zero and then a box sizing of 518 00:22:17,520 --> 00:22:20,090 Border box now that's not all of the 519 00:22:20,100 --> 00:22:21,590 reset that I want to use today but 520 00:22:21,600 --> 00:22:23,630 that's a great start we also need to put 521 00:22:23,640 --> 00:22:25,430 something in for the images and this 522 00:22:25,440 --> 00:22:27,470 will make all of the images 523 00:22:27,480 --> 00:22:30,289 display block which gets rid of that 524 00:22:30,299 --> 00:22:32,510 minimal little space below the images 525 00:22:32,520 --> 00:22:35,149 that they were originally designed to be 526 00:22:35,159 --> 00:22:37,370 in line so they have that little spacing 527 00:22:37,380 --> 00:22:39,649 problem and that will remove that then 528 00:22:39,659 --> 00:22:42,549 we'll set the max width to 100 percent 529 00:22:42,559 --> 00:22:45,950 and we'll set the height to Auto and 530 00:22:45,960 --> 00:22:48,169 this will make the images responsive for 531 00:22:48,179 --> 00:22:50,810 our project I'm going to control s to 532 00:22:50,820 --> 00:22:52,730 save that much and then scroll just a 533 00:22:52,740 --> 00:22:55,070 little bit there's a few more styles to 534 00:22:55,080 --> 00:22:58,970 add to this reset the form elements like 535 00:22:58,980 --> 00:23:01,789 input text area and button for example 536 00:23:01,799 --> 00:23:03,110 the ones that we're going to use today 537 00:23:03,120 --> 00:23:05,149 so we'll say input 538 00:23:05,159 --> 00:23:06,770 button 539 00:23:06,780 --> 00:23:09,230 text area all three of these and other 540 00:23:09,240 --> 00:23:11,510 form elements that you may use do not 541 00:23:11,520 --> 00:23:14,870 inherit font properties like other 542 00:23:14,880 --> 00:23:17,289 elements do so we need to say font 543 00:23:17,299 --> 00:23:19,970 inherit if we want that to happen and 544 00:23:19,980 --> 00:23:21,529 when I save we'll probably see them 545 00:23:21,539 --> 00:23:23,990 formatted yep on three separate lines 546 00:23:24,000 --> 00:23:26,990 there but that is the end of my reset 547 00:23:27,000 --> 00:23:30,350 for this project okay after that I'm 548 00:23:30,360 --> 00:23:32,690 going to add another section and this is 549 00:23:32,700 --> 00:23:36,409 where I will Define CSS variables now 550 00:23:36,419 --> 00:23:38,810 I'll Define these as I need them and 551 00:23:38,820 --> 00:23:40,610 then be able to come back and reference 552 00:23:40,620 --> 00:23:43,370 them so I'll just say variables here and 553 00:23:43,380 --> 00:23:47,090 then as you know that starts in the root 554 00:23:47,100 --> 00:23:49,490 selector so I'll just have a selector 555 00:23:49,500 --> 00:23:52,310 here and then inside I'm going to have 556 00:23:52,320 --> 00:23:54,649 some labels too and the first one that 557 00:23:54,659 --> 00:23:57,049 we will do today is font and I know what 558 00:23:57,059 --> 00:23:58,730 I'm already going to do for font so I 559 00:23:58,740 --> 00:24:00,950 can at least add one variable now and 560 00:24:00,960 --> 00:24:04,190 that will be FF for font family and the 561 00:24:04,200 --> 00:24:06,289 main one that I'm going to use is that 562 00:24:06,299 --> 00:24:09,529 in Neato font and then after that I'm 563 00:24:09,539 --> 00:24:12,710 going to have the fallback of sans serif 564 00:24:12,720 --> 00:24:15,470 and then for the headings on the project 565 00:24:15,480 --> 00:24:17,390 is where I'm going to use the other font 566 00:24:17,400 --> 00:24:20,269 so I'll say font family headings and 567 00:24:20,279 --> 00:24:22,789 here I'm going to use 568 00:24:22,799 --> 00:24:27,169 let me spell this correctly fugaz one 569 00:24:27,179 --> 00:24:29,870 and then it has a fallback of cursive 570 00:24:29,880 --> 00:24:32,330 okay I can add just a few more variables 571 00:24:32,340 --> 00:24:33,890 that I know I'm going to use right away 572 00:24:33,900 --> 00:24:36,950 and the other one for fonts is the font 573 00:24:36,960 --> 00:24:40,130 size so I'll just call that fs and I'm 574 00:24:40,140 --> 00:24:41,870 going to use the clamp function that we 575 00:24:41,880 --> 00:24:44,510 learned about so the font can grow and 576 00:24:44,520 --> 00:24:47,870 shrink and this is modern CSS this helps 577 00:24:47,880 --> 00:24:51,529 us prevent adding it prevents us or 578 00:24:51,539 --> 00:24:54,350 keeps us from adding mini media queries 579 00:24:54,360 --> 00:24:57,289 as some older CSS might have done so our 580 00:24:57,299 --> 00:24:59,510 page can stay more responsive without 581 00:24:59,520 --> 00:25:01,909 having an abundance of media queries 582 00:25:01,919 --> 00:25:04,850 attached to it so our minimum size today 583 00:25:04,860 --> 00:25:07,730 will be one REM and then we'll allow it 584 00:25:07,740 --> 00:25:11,930 to grow at 2.2 viewport units based on 585 00:25:11,940 --> 00:25:14,269 the height and then the max size would 586 00:25:14,279 --> 00:25:16,730 be 1.5 written that's what we'll put in 587 00:25:16,740 --> 00:25:19,130 and so that will allow the font to grow 588 00:25:19,140 --> 00:25:21,950 as the page gets larger and of course it 589 00:25:21,960 --> 00:25:24,289 will stop so it doesn't get any smaller 590 00:25:24,299 --> 00:25:27,110 than one rent okay after these fonts 591 00:25:27,120 --> 00:25:29,810 variables I'm also going to put in 592 00:25:29,820 --> 00:25:30,890 another 593 00:25:30,900 --> 00:25:33,470 note here four colors I like to Define 594 00:25:33,480 --> 00:25:36,890 all of the colors in variables and that 595 00:25:36,900 --> 00:25:39,230 way I can just change them in one spot 596 00:25:39,240 --> 00:25:41,570 and see how they work together I will be 597 00:25:41,580 --> 00:25:43,789 coming back to add more colors here but 598 00:25:43,799 --> 00:25:45,350 I'm going to start off with a background 599 00:25:45,360 --> 00:25:48,710 color and I just want a basic Orange 600 00:25:48,720 --> 00:25:50,990 it's going to match something that's in 601 00:25:51,000 --> 00:25:53,330 the photo that we have and I think 602 00:25:53,340 --> 00:25:55,250 that's going to look good then I'm also 603 00:25:55,260 --> 00:25:57,830 going to use a background 604 00:25:57,840 --> 00:26:01,250 Color dash fade and that's because we're 605 00:26:01,260 --> 00:26:03,049 going to use a linear gradient now I've 606 00:26:03,059 --> 00:26:05,990 picked out this color it is a fade of 607 00:26:06,000 --> 00:26:08,810 the orange color so I'm using RGB and 608 00:26:08,820 --> 00:26:11,930 then it's 252 220 609 00:26:11,940 --> 00:26:15,789 160 and you'll see it's a faded orange 610 00:26:15,799 --> 00:26:19,130 after that I'm going to use background 611 00:26:19,140 --> 00:26:22,610 image to create this gradient that we're 612 00:26:22,620 --> 00:26:25,909 going to fade with so here I'll say 613 00:26:25,919 --> 00:26:28,250 linear gradient 614 00:26:28,260 --> 00:26:31,250 and then we'll go to the bottom 615 00:26:31,260 --> 00:26:33,230 and then we'll put in our variables that 616 00:26:33,240 --> 00:26:35,149 we just created above so we'll start 617 00:26:35,159 --> 00:26:37,370 with the background color 618 00:26:37,380 --> 00:26:39,710 and after the background color we'll put 619 00:26:39,720 --> 00:26:42,409 a comma another variable 620 00:26:42,419 --> 00:26:44,990 and we'll start in and we'll go to the 621 00:26:45,000 --> 00:26:47,269 background color fade so we'll start at 622 00:26:47,279 --> 00:26:48,950 the top with the full orange and we'll 623 00:26:48,960 --> 00:26:52,130 fade down to that faded color okay 624 00:26:52,140 --> 00:26:54,230 that's looking like a pretty good start 625 00:26:54,240 --> 00:26:56,450 but I could put in just a couple more 626 00:26:56,460 --> 00:26:59,870 for the body so just underneath this I'm 627 00:26:59,880 --> 00:27:03,529 going to put in two dashes and 628 00:27:03,539 --> 00:27:07,970 body dash background color so I'm 629 00:27:07,980 --> 00:27:09,830 planning on a different background color 630 00:27:09,840 --> 00:27:12,649 for the body element than I am the HTML 631 00:27:12,659 --> 00:27:14,390 element and you'll see how that works 632 00:27:14,400 --> 00:27:16,669 here I'm just going to put in a basic 633 00:27:16,679 --> 00:27:20,330 white with hexadecimal code and it looks 634 00:27:20,340 --> 00:27:23,149 like I left out the semicolon over there 635 00:27:23,159 --> 00:27:25,430 there we go so now everything formats 636 00:27:25,440 --> 00:27:27,769 better and then we'll just have our 637 00:27:27,779 --> 00:27:29,690 standard font color I don't even need to 638 00:27:29,700 --> 00:27:31,789 say body font color it's going to be the 639 00:27:31,799 --> 00:27:34,909 main font color and this will just be a 640 00:27:34,919 --> 00:27:37,610 black with hexadecimal code as well okay 641 00:27:37,620 --> 00:27:39,769 I will be coming back to add more 642 00:27:39,779 --> 00:27:41,450 variables but right now I want to move 643 00:27:41,460 --> 00:27:44,029 on to the next section and just add a 644 00:27:44,039 --> 00:27:48,649 few utility classes that I always use so 645 00:27:48,659 --> 00:27:50,750 I know what I need to put here I'll put 646 00:27:50,760 --> 00:27:53,269 in utility classes normally I would 647 00:27:53,279 --> 00:27:55,610 probably just copy and paste these from 648 00:27:55,620 --> 00:27:57,289 a file that I would already have written 649 00:27:57,299 --> 00:27:59,090 them in before but we'll go ahead and 650 00:27:59,100 --> 00:28:01,610 write these out we've got our off-screen 651 00:28:01,620 --> 00:28:04,850 class and this is a style I use to move 652 00:28:04,860 --> 00:28:07,490 element off the screen but yet keep in 653 00:28:07,500 --> 00:28:09,649 the document flow so a screen reader 654 00:28:09,659 --> 00:28:12,049 will still read the content but maybe I 655 00:28:12,059 --> 00:28:14,330 don't want them to appear visually on 656 00:28:14,340 --> 00:28:16,730 the page so I'm going to say 657 00:28:16,740 --> 00:28:20,389 position and we'll set that to Absolute 658 00:28:20,399 --> 00:28:22,669 and then I'll say left and we'll say 659 00:28:22,679 --> 00:28:26,029 minus 10 000 pixels and so it will be 660 00:28:26,039 --> 00:28:27,950 way off the page 661 00:28:27,960 --> 00:28:31,010 the next class I need is no wrap and 662 00:28:31,020 --> 00:28:33,889 this is when I want to ensure that some 663 00:28:33,899 --> 00:28:35,990 of the text does not wrap in an area 664 00:28:36,000 --> 00:28:38,269 that is awkward and we can do that with 665 00:28:38,279 --> 00:28:40,789 the white space property and then we'll 666 00:28:40,799 --> 00:28:43,190 just set that to no wrap and we'll see 667 00:28:43,200 --> 00:28:45,710 how we apply that class later and the 668 00:28:45,720 --> 00:28:48,470 final one is simply a center when I want 669 00:28:48,480 --> 00:28:51,049 to Center text let's say in a paragraph 670 00:28:51,059 --> 00:28:54,590 or in a heading we need the text align 671 00:28:54,600 --> 00:28:57,230 and we can set that to center with the 672 00:28:57,240 --> 00:28:59,510 utility Styles complete we're now ready 673 00:28:59,520 --> 00:29:02,029 to finally start applying some Styles 674 00:29:02,039 --> 00:29:05,090 directly to elements and classes so I'm 675 00:29:05,100 --> 00:29:07,970 going to bring vs code to the left and 676 00:29:07,980 --> 00:29:10,190 go ahead and launch the project to the 677 00:29:10,200 --> 00:29:13,549 right now remember we removed the few 678 00:29:13,559 --> 00:29:16,250 styles that did exist and everything 679 00:29:16,260 --> 00:29:18,710 we've created so far really doesn't 680 00:29:18,720 --> 00:29:22,070 apply to the page except for that reset 681 00:29:22,080 --> 00:29:24,649 at the beginning so we have removed more 682 00:29:24,659 --> 00:29:26,750 than we have added to the current 683 00:29:26,760 --> 00:29:28,789 project but we now have have variables 684 00:29:28,799 --> 00:29:31,490 ready to apply and utility class is 685 00:29:31,500 --> 00:29:34,250 ready to apply but we also want to add 686 00:29:34,260 --> 00:29:37,310 what I would call General Styles so 687 00:29:37,320 --> 00:29:40,610 let's put in a section here and we'll 688 00:29:40,620 --> 00:29:42,649 label this the same way we have the 689 00:29:42,659 --> 00:29:45,590 other sections are in the same style and 690 00:29:45,600 --> 00:29:47,269 now with our general Styles heading 691 00:29:47,279 --> 00:29:50,389 we'll start with the HTML element itself 692 00:29:50,399 --> 00:29:53,090 now I'm going to use a different color 693 00:29:53,100 --> 00:29:55,610 on the HTML element that will be the 694 00:29:55,620 --> 00:29:58,370 background for the body element but if 695 00:29:58,380 --> 00:30:00,110 you remember from some previous lessons 696 00:30:00,120 --> 00:30:03,710 we also use scroll behavior on the HTML 697 00:30:03,720 --> 00:30:06,710 element and we'll set this to smooth and 698 00:30:06,720 --> 00:30:09,049 this allows a smooth transition to when 699 00:30:09,059 --> 00:30:11,750 we link to other parts of the page and 700 00:30:11,760 --> 00:30:14,090 we'll still be doing that on the home 701 00:30:14,100 --> 00:30:17,750 page this index.html when we go to the 702 00:30:17,760 --> 00:30:19,810 menu that will be located 703 00:30:19,820 --> 00:30:23,210 below the big image and so in the second 704 00:30:23,220 --> 00:30:25,310 half of the page so we'll have scroll 705 00:30:25,320 --> 00:30:28,430 Behavior smooth and if I save that you 706 00:30:28,440 --> 00:30:30,110 won't see any changes to the page 707 00:30:30,120 --> 00:30:32,330 because that affects more of a behavior 708 00:30:32,340 --> 00:30:34,909 but I'm going to try to save after every 709 00:30:34,919 --> 00:30:36,710 property applied so you can see those 710 00:30:36,720 --> 00:30:39,710 changes the next one we'll apply is font 711 00:30:39,720 --> 00:30:42,049 size and we'll use a variable for font 712 00:30:42,059 --> 00:30:44,810 size that we already created and now 713 00:30:44,820 --> 00:30:47,450 when I apply that we'll save and you see 714 00:30:47,460 --> 00:30:50,029 the font size instantly got larger and 715 00:30:50,039 --> 00:30:53,330 that reminds me earlier when I applied 716 00:30:53,340 --> 00:30:56,389 the font size variable above I believe 717 00:30:56,399 --> 00:30:58,970 or that was in the background color fade 718 00:30:58,980 --> 00:31:00,590 let me bring this back to full screen 719 00:31:00,600 --> 00:31:02,630 quickly because I think it's in the 720 00:31:02,640 --> 00:31:05,509 linear gradient vs code tried to help me 721 00:31:05,519 --> 00:31:07,610 out and it accidentally added a second 722 00:31:07,620 --> 00:31:09,950 VAR to each of these that should have 723 00:31:09,960 --> 00:31:13,549 been noted when the video was created as 724 00:31:13,559 --> 00:31:15,649 well so hopefully you've already caught 725 00:31:15,659 --> 00:31:17,570 that error but I need to correct it here 726 00:31:17,580 --> 00:31:19,669 so now we just want one VAR each in that 727 00:31:19,679 --> 00:31:22,490 linear gradient and we'll save and if we 728 00:31:22,500 --> 00:31:25,430 come back now to the page we don't see a 729 00:31:25,440 --> 00:31:26,570 difference yet because that's not 730 00:31:26,580 --> 00:31:29,210 applied but it will be applied here very 731 00:31:29,220 --> 00:31:31,370 soon so down here in the general Styles 732 00:31:31,380 --> 00:31:34,250 once again in the HTML we have increased 733 00:31:34,260 --> 00:31:37,610 the font size now let's say font 734 00:31:37,620 --> 00:31:38,930 family 735 00:31:38,940 --> 00:31:40,730 and we'll use the other variable we 736 00:31:40,740 --> 00:31:43,490 created there which was FF 737 00:31:43,500 --> 00:31:45,649 and if I save again we should see the 738 00:31:45,659 --> 00:31:47,990 font family has changed and it does for 739 00:31:48,000 --> 00:31:51,169 the page after that we're going to set a 740 00:31:51,179 --> 00:31:53,870 background color 741 00:31:53,880 --> 00:31:56,750 and this will be a variable as well and 742 00:31:56,760 --> 00:31:59,269 it's the BG color we see here in the 743 00:31:59,279 --> 00:32:01,250 list and I just want to make sure vs 744 00:32:01,260 --> 00:32:03,710 code doesn't add a second VAR now you 745 00:32:03,720 --> 00:32:05,090 can see we've changed to that orange 746 00:32:05,100 --> 00:32:08,090 that we set but now this is actually the 747 00:32:08,100 --> 00:32:10,250 fallback because we're going to use the 748 00:32:10,260 --> 00:32:11,750 background 749 00:32:11,760 --> 00:32:14,630 Dash image and here we're going to use 750 00:32:14,640 --> 00:32:16,610 that background image variable we 751 00:32:16,620 --> 00:32:17,870 created 752 00:32:17,880 --> 00:32:19,909 and we'll find that here in the list as 753 00:32:19,919 --> 00:32:23,090 well and save and now we should see it 754 00:32:23,100 --> 00:32:26,269 go from Orange to that lighter orange as 755 00:32:26,279 --> 00:32:28,009 we scroll down the screen and that's 756 00:32:28,019 --> 00:32:29,810 what happens so it's a linear gradient 757 00:32:29,820 --> 00:32:32,330 from a full orange to a lighter orange 758 00:32:32,340 --> 00:32:34,970 but this will change as well as we apply 759 00:32:34,980 --> 00:32:37,850 some styles to the body so we'll see how 760 00:32:37,860 --> 00:32:39,830 this is going to be applied to the 761 00:32:39,840 --> 00:32:41,630 overall page now here we're going to 762 00:32:41,640 --> 00:32:44,990 have a background Dash color as well and 763 00:32:45,000 --> 00:32:47,930 this is the variable and here we started 764 00:32:47,940 --> 00:32:49,909 this with body so it's the body 765 00:32:49,919 --> 00:32:52,490 background color 766 00:32:52,500 --> 00:32:54,590 and now we'll go to the next line and 767 00:32:54,600 --> 00:32:56,509 save I can see this is wrapping just a 768 00:32:56,519 --> 00:32:58,370 little bit so I'm going to press alt Z 769 00:32:58,380 --> 00:33:00,470 so anytime it wraps it'll just go down 770 00:33:00,480 --> 00:33:02,509 to the next line for us so we can see 771 00:33:02,519 --> 00:33:05,450 everything okay now we want to set a 772 00:33:05,460 --> 00:33:08,149 font color now currently you notice it 773 00:33:08,159 --> 00:33:10,190 changed everything because the body is 774 00:33:10,200 --> 00:33:13,070 completely over the HTML element that 775 00:33:13,080 --> 00:33:15,049 will change when we adjust the width of 776 00:33:15,059 --> 00:33:17,570 the body as well but for now we'll just 777 00:33:17,580 --> 00:33:20,269 see white again so now the color for the 778 00:33:20,279 --> 00:33:22,789 font will be variable and this will be 779 00:33:22,799 --> 00:33:26,149 the font color variable that we set 780 00:33:26,159 --> 00:33:27,950 and really we shouldn't see a change 781 00:33:27,960 --> 00:33:30,289 because it's basically the default font 782 00:33:30,299 --> 00:33:33,230 color of black now let's have a Min 783 00:33:33,240 --> 00:33:35,269 height for the body and we'll set that 784 00:33:35,279 --> 00:33:38,090 to 100 viewport units of height 785 00:33:38,100 --> 00:33:40,490 and if I save we shouldn't see much of a 786 00:33:40,500 --> 00:33:42,110 change because it's already taking up 787 00:33:42,120 --> 00:33:45,409 over 100 viewport units of height 788 00:33:45,419 --> 00:33:48,950 already after that we'll set a Max width 789 00:33:48,960 --> 00:33:53,269 to 800 pixels now I'm not sure of the 790 00:33:53,279 --> 00:33:55,909 width here to the left but we can see 791 00:33:55,919 --> 00:33:58,669 really 800 pixels is still within the 792 00:33:58,679 --> 00:34:00,350 range of this so let's drag this over 793 00:34:00,360 --> 00:34:03,889 and look at the full page expanded now 794 00:34:03,899 --> 00:34:06,409 and now we can see here was the 800 795 00:34:06,419 --> 00:34:09,169 pixels and now we see the HTML element 796 00:34:09,179 --> 00:34:11,569 behind that goes ahead and expands to 797 00:34:11,579 --> 00:34:15,109 the full width of whatever viewport is 798 00:34:15,119 --> 00:34:17,510 available so we see that orange that 799 00:34:17,520 --> 00:34:20,089 linear gradient fade here we will change 800 00:34:20,099 --> 00:34:22,069 this so the body will be in the middle 801 00:34:22,079 --> 00:34:23,990 and we'll see orange to the left and the 802 00:34:24,000 --> 00:34:26,149 right I'll move this back to the right 803 00:34:26,159 --> 00:34:28,730 for now and now underneath this we need 804 00:34:28,740 --> 00:34:31,010 to define a couple more things one is 805 00:34:31,020 --> 00:34:34,970 going to be the margin for the body 0 on 806 00:34:34,980 --> 00:34:37,310 the top and bottom but Auto on the left 807 00:34:37,320 --> 00:34:39,649 and right will Center this so when I 808 00:34:39,659 --> 00:34:41,329 save again we don't see the change here 809 00:34:41,339 --> 00:34:43,849 but when I drag this over we now see the 810 00:34:43,859 --> 00:34:46,550 body is centered bringing this back to 811 00:34:46,560 --> 00:34:49,369 the right we want to add some borders a 812 00:34:49,379 --> 00:34:51,470 border on the left and the right so I 813 00:34:51,480 --> 00:34:54,470 need to set a borders variable and a 814 00:34:54,480 --> 00:34:56,750 border color variable so I'm going to 815 00:34:56,760 --> 00:34:59,990 scroll back up here to the colors and 816 00:35:00,000 --> 00:35:01,849 let's set this border color variable 817 00:35:01,859 --> 00:35:04,310 first so we'll say border 818 00:35:04,320 --> 00:35:07,670 Dash color and this is going to be a 819 00:35:07,680 --> 00:35:10,849 flat black so 333 for the hexadecimal 820 00:35:10,859 --> 00:35:12,290 you can see it's a flatter black 821 00:35:12,300 --> 00:35:15,050 compared to the true black that's above 822 00:35:15,060 --> 00:35:17,510 it here with zero zero zero then I'm 823 00:35:17,520 --> 00:35:20,030 going to put in another comment here and 824 00:35:20,040 --> 00:35:21,650 just put 825 00:35:21,660 --> 00:35:24,410 borders some might put the Border color 826 00:35:24,420 --> 00:35:26,630 under borders but I want all of the 827 00:35:26,640 --> 00:35:28,310 colors grouped together so that's just 828 00:35:28,320 --> 00:35:31,550 my preference now here four borders 829 00:35:31,560 --> 00:35:34,250 let's go ahead and set this borders 830 00:35:34,260 --> 00:35:36,170 variable that we might use more than 831 00:35:36,180 --> 00:35:39,109 once in our project as well and this is 832 00:35:39,119 --> 00:35:41,750 going to be one pixel 833 00:35:41,760 --> 00:35:43,010 solid 834 00:35:43,020 --> 00:35:44,990 and now let's go ahead and use the 835 00:35:45,000 --> 00:35:48,349 borders color variable that we created 836 00:35:48,359 --> 00:35:51,950 now vs code once again put in two vars 837 00:35:51,960 --> 00:35:53,690 so I have to watch out for that when 838 00:35:53,700 --> 00:35:55,730 I've already typed VAR sometimes it 839 00:35:55,740 --> 00:35:58,310 wants to insert that for me okay we've 840 00:35:58,320 --> 00:36:00,950 created a border color variable and a 841 00:36:00,960 --> 00:36:03,190 borders variable we'll scroll back down 842 00:36:03,200 --> 00:36:05,990 to the body element 843 00:36:06,000 --> 00:36:08,210 and to finish out the body element we're 844 00:36:08,220 --> 00:36:11,750 going to say border left we're going to 845 00:36:11,760 --> 00:36:13,849 set this to 846 00:36:13,859 --> 00:36:16,490 borders 847 00:36:16,500 --> 00:36:18,710 and now I'm going to press shift alt in 848 00:36:18,720 --> 00:36:20,690 the down arrow so it just copies that 849 00:36:20,700 --> 00:36:23,329 down because I also want a border 850 00:36:23,339 --> 00:36:25,970 Dash right but I don't want it on the 851 00:36:25,980 --> 00:36:28,670 top or the bottom and then I'm going to 852 00:36:28,680 --> 00:36:31,310 set well let me go ahead and save and if 853 00:36:31,320 --> 00:36:33,650 I bring this over you can probably see 854 00:36:33,660 --> 00:36:35,150 the borders 855 00:36:35,160 --> 00:36:37,790 just barely outlining the left and the 856 00:36:37,800 --> 00:36:38,750 right 857 00:36:38,760 --> 00:36:42,050 but now I want to set a box Shadow as 858 00:36:42,060 --> 00:36:44,690 well on the body 859 00:36:44,700 --> 00:36:48,829 and that will be 0 0 so what we would 860 00:36:48,839 --> 00:36:50,990 typically see for the X and Y but then 861 00:36:51,000 --> 00:36:53,150 there's a blur and I'll set that to 10 862 00:36:53,160 --> 00:36:55,910 pixels and I'll use that border color 863 00:36:55,920 --> 00:36:58,069 again 864 00:36:58,079 --> 00:37:01,370 there we go and save 865 00:37:01,380 --> 00:37:03,770 and now of course we can't see it here 866 00:37:03,780 --> 00:37:05,990 but when I drag this back over we can 867 00:37:06,000 --> 00:37:08,390 see there's a little bit of blur 868 00:37:08,400 --> 00:37:11,030 along each side and that's what we want 869 00:37:11,040 --> 00:37:13,609 just a nice subtle effect so as we 870 00:37:13,619 --> 00:37:15,170 scroll the page and we'll see it stand 871 00:37:15,180 --> 00:37:17,750 out even more on this lighter orange at 872 00:37:17,760 --> 00:37:20,089 the bottom you can see the blur along 873 00:37:20,099 --> 00:37:22,609 the left and the right of the body here 874 00:37:22,619 --> 00:37:25,069 where we have our Center column okay 875 00:37:25,079 --> 00:37:27,170 dragging this back I'm going to scroll 876 00:37:27,180 --> 00:37:29,030 for some more room and then we have just 877 00:37:29,040 --> 00:37:31,010 a few more General styles to apply 878 00:37:31,020 --> 00:37:33,470 before we get to classes and the 879 00:37:33,480 --> 00:37:35,450 different sections of the page let's 880 00:37:35,460 --> 00:37:39,230 have our on our lowercase here H1 H2 and 881 00:37:39,240 --> 00:37:42,349 H3 headings on the page I'm going to 882 00:37:42,359 --> 00:37:45,770 apply the font family which was for the 883 00:37:45,780 --> 00:37:48,650 headings so that's dash dash FF and then 884 00:37:48,660 --> 00:37:51,530 we'll select headings and that will 885 00:37:51,540 --> 00:37:53,990 change the headings font you can see 886 00:37:54,000 --> 00:37:56,390 that change on the page immediately and 887 00:37:56,400 --> 00:37:58,010 then we're going to apply some letter 888 00:37:58,020 --> 00:38:01,069 spacing now we could do this with pixels 889 00:38:01,079 --> 00:38:03,950 or different values I'm going to use EMS 890 00:38:03,960 --> 00:38:07,010 which would essentially be the same as 891 00:38:07,020 --> 00:38:09,829 referring to the font size that's 892 00:38:09,839 --> 00:38:12,710 already on each heading so the spacing 893 00:38:12,720 --> 00:38:14,990 will vary to based on which type of 894 00:38:15,000 --> 00:38:17,870 heading that it is and if we looked at 895 00:38:17,880 --> 00:38:22,069 this as a rem instead of a em then it 896 00:38:22,079 --> 00:38:26,569 would be 1 10 of that setting so what we 897 00:38:26,579 --> 00:38:29,270 have for the font size already at the 898 00:38:29,280 --> 00:38:31,250 smallest was one REM but at the largest 899 00:38:31,260 --> 00:38:33,829 it was one and a half so that could be 900 00:38:33,839 --> 00:38:38,569 anywhere from 16 pixels to 24 pixels so 901 00:38:38,579 --> 00:38:40,690 one tenth of that would be anywhere from 902 00:38:40,700 --> 00:38:44,270 1.6 pixels to 2.4 pixels but this will 903 00:38:44,280 --> 00:38:46,310 just space out this font and I think 904 00:38:46,320 --> 00:38:49,069 this heading font needs just a little 905 00:38:49,079 --> 00:38:52,010 extra space so when we save you can see 906 00:38:52,020 --> 00:38:54,530 the letters have now spaced out just a 907 00:38:54,540 --> 00:38:57,349 little bit more now I'll select the H2 908 00:38:57,359 --> 00:39:00,829 and the H3 but not the H1 we have a 909 00:39:00,839 --> 00:39:02,450 couple of styles we want to apply here 910 00:39:02,460 --> 00:39:05,810 so we have a margin Dash bottom 911 00:39:05,820 --> 00:39:08,030 so on the bottom only we'll set that to 912 00:39:08,040 --> 00:39:10,550 one m and now we're going to use a 913 00:39:10,560 --> 00:39:12,650 separate color so I need to define a 914 00:39:12,660 --> 00:39:14,630 highlight color up above in the 915 00:39:14,640 --> 00:39:17,630 variables again so here we have Dash 916 00:39:17,640 --> 00:39:19,790 Dash and I'll say highlight Dash color 917 00:39:19,800 --> 00:39:22,130 because we might highlight other things 918 00:39:22,140 --> 00:39:24,109 on the page besides headers with this 919 00:39:24,119 --> 00:39:25,609 variable as well so I called it 920 00:39:25,619 --> 00:39:27,950 highlight color it's a color I've picked 921 00:39:27,960 --> 00:39:30,290 out to go with the orange but it's not 922 00:39:30,300 --> 00:39:33,730 Orange it's 51 923 00:39:33,740 --> 00:39:38,030 178.51 and save and you can see it's a 924 00:39:38,040 --> 00:39:40,849 green color much like we'd see here on 925 00:39:40,859 --> 00:39:43,609 the bottle of Jarritos over here this 926 00:39:43,619 --> 00:39:45,890 Mandarin has a nice orange but it also 927 00:39:45,900 --> 00:39:48,290 has a bit of a green in the label so 928 00:39:48,300 --> 00:39:50,270 let's try that with the highlight color 929 00:39:50,280 --> 00:39:52,550 as well so now using this highlight 930 00:39:52,560 --> 00:39:53,450 color 931 00:39:53,460 --> 00:39:56,210 and scrolling back down to the H2 and 932 00:39:56,220 --> 00:39:59,569 the H3 we'll set the color here and 933 00:39:59,579 --> 00:40:00,950 we'll be VAR 934 00:40:00,960 --> 00:40:04,490 and we'll use highlight color 935 00:40:04,500 --> 00:40:06,530 now that we have that and save we should 936 00:40:06,540 --> 00:40:08,750 see that change on the page and yes our 937 00:40:08,760 --> 00:40:12,290 Bienvenidos and about LTS and taco 938 00:40:12,300 --> 00:40:15,170 trivia has all changed as well as our 939 00:40:15,180 --> 00:40:17,510 menu and remember this about section is 940 00:40:17,520 --> 00:40:20,030 going to get moved to the about page we 941 00:40:20,040 --> 00:40:22,790 just haven't moved it yet okay after the 942 00:40:22,800 --> 00:40:24,589 H2 and the H3 943 00:40:24,599 --> 00:40:26,930 going to select the paragraphs on the 944 00:40:26,940 --> 00:40:29,870 page and set their line height which 945 00:40:29,880 --> 00:40:32,030 this is something I frequently do it 946 00:40:32,040 --> 00:40:35,150 looks a little bit better and we'll just 947 00:40:35,160 --> 00:40:36,890 set it to a little bit larger value it 948 00:40:36,900 --> 00:40:39,530 doesn't have to have a specific M or Ram 949 00:40:39,540 --> 00:40:42,230 or pixel here line height going way back 950 00:40:42,240 --> 00:40:45,170 to our typography lesson can just be a 951 00:40:45,180 --> 00:40:46,970 numerical value here so we've set it to 952 00:40:46,980 --> 00:40:49,430 1.5 you might not see much of a change 953 00:40:49,440 --> 00:40:51,410 from that but there's a little bit let 954 00:40:51,420 --> 00:40:53,510 me take it away 955 00:40:53,520 --> 00:40:56,930 and save and yeah you might see just a 956 00:40:56,940 --> 00:40:58,490 bit of a change there but not a whole 957 00:40:58,500 --> 00:41:00,470 lot but I like something I do like to 958 00:41:00,480 --> 00:41:03,109 add okay the paragraph has the line 959 00:41:03,119 --> 00:41:06,050 height let's look at our links on the 960 00:41:06,060 --> 00:41:08,089 page up here so these are going to be 961 00:41:08,099 --> 00:41:09,650 our main links 962 00:41:09,660 --> 00:41:11,809 on the whole project really we don't 963 00:41:11,819 --> 00:41:13,490 have a whole lot of extra links so I'm 964 00:41:13,500 --> 00:41:16,670 going to select the anchor which would 965 00:41:16,680 --> 00:41:18,890 be a link of course you have to have an 966 00:41:18,900 --> 00:41:21,170 href with it but just to select the link 967 00:41:21,180 --> 00:41:23,750 itself and then we can say any link 968 00:41:23,760 --> 00:41:26,930 which is a pseudo class selector and 969 00:41:26,940 --> 00:41:29,210 this any link pseudo class selector if 970 00:41:29,220 --> 00:41:32,450 you remember selects both the lick links 971 00:41:32,460 --> 00:41:35,089 that have not been clicked and links 972 00:41:35,099 --> 00:41:37,790 that have already been visited and so 973 00:41:37,800 --> 00:41:39,770 here we'll say color 974 00:41:39,780 --> 00:41:42,410 and now we're going to need to set a 975 00:41:42,420 --> 00:41:45,349 link color variable as well as hover and 976 00:41:45,359 --> 00:41:47,510 active so I'm going to scroll back up 977 00:41:47,520 --> 00:41:50,510 and find that colors list of variables 978 00:41:50,520 --> 00:41:55,130 and we'll go ahead and set the link 979 00:41:55,140 --> 00:41:58,609 color variable link Dash color this will 980 00:41:58,619 --> 00:42:00,950 just be a black color again and then 981 00:42:00,960 --> 00:42:02,630 we'll set also 982 00:42:02,640 --> 00:42:07,550 link Dash hover and here we'll use hsla 983 00:42:07,560 --> 00:42:11,329 which will allow us to have a black 984 00:42:11,339 --> 00:42:13,550 color but then we'll also have this 985 00:42:13,560 --> 00:42:17,450 transparency and I'm going to say 0.6 so 986 00:42:17,460 --> 00:42:21,069 it's 40 percent transparent and 60 987 00:42:21,079 --> 00:42:23,390 visible essentially 988 00:42:23,400 --> 00:42:25,910 after the link hover variable will also 989 00:42:25,920 --> 00:42:29,270 set a link Dash active and for that 990 00:42:29,280 --> 00:42:31,370 we're going to set it to Orange which is 991 00:42:31,380 --> 00:42:34,010 the same as that HTML background 992 00:42:34,020 --> 00:42:36,770 let's save those three variables and 993 00:42:36,780 --> 00:42:39,109 scroll back to our links that we're 994 00:42:39,119 --> 00:42:41,510 styling and here for link color we'll 995 00:42:41,520 --> 00:42:44,630 say VAR and then Dash Dash 996 00:42:44,640 --> 00:42:47,150 link and it is our link color that we're 997 00:42:47,160 --> 00:42:48,530 selecting 998 00:42:48,540 --> 00:42:50,630 and then the next one we'll have would 999 00:42:50,640 --> 00:42:52,609 be the anchor 1000 00:42:52,619 --> 00:42:54,109 with a hover 1001 00:42:54,119 --> 00:42:56,510 but then also let's say anchor and you 1002 00:42:56,520 --> 00:42:58,370 could say Focus but here I'm going to 1003 00:42:58,380 --> 00:42:59,750 use Focus 1004 00:42:59,760 --> 00:43:03,349 visible which the difference is the 1005 00:43:03,359 --> 00:43:06,530 focus might remain on the selected 1006 00:43:06,540 --> 00:43:09,890 element however Focus visible after it's 1007 00:43:09,900 --> 00:43:11,690 used it will change and it might not 1008 00:43:11,700 --> 00:43:13,849 make much of a difference in this 1009 00:43:13,859 --> 00:43:15,890 project but it's something I've started 1010 00:43:15,900 --> 00:43:18,290 to use more and more instead of just 1011 00:43:18,300 --> 00:43:20,450 using Focus so here I'm going to say 1012 00:43:20,460 --> 00:43:23,870 color VAR and we'll set this to once 1013 00:43:23,880 --> 00:43:26,630 again link but it's link hover 1014 00:43:26,640 --> 00:43:28,910 and we'll put the semicolon after that 1015 00:43:28,920 --> 00:43:31,730 as well we can save those changes we see 1016 00:43:31,740 --> 00:43:34,730 we've got black links here the hover of 1017 00:43:34,740 --> 00:43:37,010 course is already working so you can see 1018 00:43:37,020 --> 00:43:40,190 it fade now as we hover over each one of 1019 00:43:40,200 --> 00:43:42,770 those but then after both of those we 1020 00:43:42,780 --> 00:43:45,470 still need the active State as well so 1021 00:43:45,480 --> 00:43:47,809 we have the active pseudo class selector 1022 00:43:47,819 --> 00:43:50,210 and here we're going to say color 1023 00:43:50,220 --> 00:43:53,210 and not color with parentheses color and 1024 00:43:53,220 --> 00:43:56,870 then VAR parentheses Dash Dash 1025 00:43:56,880 --> 00:43:59,630 link and it's going to be active there 1026 00:43:59,640 --> 00:44:00,650 we go 1027 00:44:00,660 --> 00:44:03,349 save and so now if we were actively 1028 00:44:03,359 --> 00:44:05,390 selecting a link so when I click on it 1029 00:44:05,400 --> 00:44:07,609 you can see it turns orange and menu 1030 00:44:07,619 --> 00:44:10,430 it's still fairly small up here but when 1031 00:44:10,440 --> 00:44:12,170 I hold down the mouse button the link 1032 00:44:12,180 --> 00:44:14,569 turns orange and now our general styles 1033 00:44:14,579 --> 00:44:17,089 are finished for the project so we are 1034 00:44:17,099 --> 00:44:19,309 ready to move on to the header section 1035 00:44:19,319 --> 00:44:21,589 so I'll add a label inside of our style 1036 00:44:21,599 --> 00:44:23,750 sheet for the header 1037 00:44:23,760 --> 00:44:26,150 and then we will start applying styles 1038 00:44:26,160 --> 00:44:27,950 to the header section I'll scroll up so 1039 00:44:27,960 --> 00:44:31,130 this header is at the very top here and 1040 00:44:31,140 --> 00:44:33,829 well at the very top there we go and 1041 00:44:33,839 --> 00:44:35,630 then the first style we'll apply is now 1042 00:44:35,640 --> 00:44:38,270 to the header class because we started 1043 00:44:38,280 --> 00:44:41,870 using bem the block element modifier 1044 00:44:41,880 --> 00:44:44,329 naming convention when we get to the 1045 00:44:44,339 --> 00:44:46,550 sections and the first one we applied 1046 00:44:46,560 --> 00:44:48,410 that to was the header so we'll say 1047 00:44:48,420 --> 00:44:51,950 position and we'll make the header a 1048 00:44:51,960 --> 00:44:54,410 sticky positioned element we'll put the 1049 00:44:54,420 --> 00:44:56,569 top at zero so it's at the very top and 1050 00:44:56,579 --> 00:44:59,089 then we need to put the Z index to a 1051 00:44:59,099 --> 00:45:01,190 setting of one so it stays on top of 1052 00:45:01,200 --> 00:45:02,870 everything else that might scroll under 1053 00:45:02,880 --> 00:45:05,390 it and when I save we don't see much of 1054 00:45:05,400 --> 00:45:08,329 a change yet but we certainly will soon 1055 00:45:08,339 --> 00:45:10,550 the next thing we'll style is the header 1056 00:45:10,560 --> 00:45:13,190 two underscores and the H1 so the title 1057 00:45:13,200 --> 00:45:15,829 of the page itself and here we're going 1058 00:45:15,839 --> 00:45:17,150 to say 1059 00:45:17,160 --> 00:45:20,329 text align 1060 00:45:20,339 --> 00:45:22,550 and we'll set that to Center and save 1061 00:45:22,560 --> 00:45:25,490 and you can see that text did center now 1062 00:45:25,500 --> 00:45:27,349 we've got just a few more variables to 1063 00:45:27,359 --> 00:45:29,270 add so I'm going to scroll back up to 1064 00:45:29,280 --> 00:45:31,790 the variables once again and we're at 1065 00:45:31,800 --> 00:45:34,790 the colors list and I'm going to add a 1066 00:45:34,800 --> 00:45:37,849 header Dash BG color 1067 00:45:37,859 --> 00:45:39,230 and here we're going to set that 1068 00:45:39,240 --> 00:45:42,109 background color to black as well after 1069 00:45:42,119 --> 00:45:45,530 that we'll set a header Dash color and 1070 00:45:45,540 --> 00:45:48,109 I'm going to set that to White 1071 00:45:48,119 --> 00:45:50,390 and then after the header color while 1072 00:45:50,400 --> 00:45:52,250 I'm here I'm going to go ahead and set a 1073 00:45:52,260 --> 00:45:53,089 nav 1074 00:45:53,099 --> 00:45:55,790 background color and set that to White 1075 00:45:55,800 --> 00:45:58,309 also so we've set three new colors there 1076 00:45:58,319 --> 00:46:01,670 then underneath the Border section I'm 1077 00:46:01,680 --> 00:46:04,190 going to add another label and say 1078 00:46:04,200 --> 00:46:07,370 standard padding and I'm going to create 1079 00:46:07,380 --> 00:46:10,490 a couple of variables here so 1080 00:46:10,500 --> 00:46:14,329 padding let's say Dash TB and that means 1081 00:46:14,339 --> 00:46:16,130 top bottom so you might want to 1082 00:46:16,140 --> 00:46:18,530 abbreviate that differently to 1083 00:46:18,540 --> 00:46:20,630 communicate that better I just happen to 1084 00:46:20,640 --> 00:46:22,370 use that abbreviation this time I'm 1085 00:46:22,380 --> 00:46:27,050 going to set this just to 0.25 em and 1086 00:46:27,060 --> 00:46:30,650 then the next one is padding Dash side 1087 00:46:30,660 --> 00:46:34,130 not size but side so on the left and the 1088 00:46:34,140 --> 00:46:36,109 right and differently here I want this 1089 00:46:36,119 --> 00:46:37,750 to be 2.5 1090 00:46:37,760 --> 00:46:41,450 percent so total if I apply this to both 1091 00:46:41,460 --> 00:46:43,670 sides it will take up five percent of 1092 00:46:43,680 --> 00:46:45,589 the width I'm going to save that you 1093 00:46:45,599 --> 00:46:47,150 won't see a change applied because we 1094 00:46:47,160 --> 00:46:49,670 haven't applied any of these variables 1095 00:46:49,680 --> 00:46:52,130 yet and then while I'm here one more to 1096 00:46:52,140 --> 00:46:54,410 add will be a 1097 00:46:54,420 --> 00:46:57,770 standard margin and underneath that 1098 00:46:57,780 --> 00:47:00,530 we'll just say margin variable and I'm 1099 00:47:00,540 --> 00:47:03,410 going to use clamp again here so at the 1100 00:47:03,420 --> 00:47:05,569 smallest it will be one em and then 1101 00:47:05,579 --> 00:47:08,329 we'll set it to 2.5 viewport height 1102 00:47:08,339 --> 00:47:11,930 units and then 1.5 em will be the 1103 00:47:11,940 --> 00:47:14,030 largest it would possibly be now that 1104 00:47:14,040 --> 00:47:16,010 this is for the top and the bottom on 1105 00:47:16,020 --> 00:47:17,809 the left and the right I'm going to set 1106 00:47:17,819 --> 00:47:20,450 it to zero so even though that wrapped 1107 00:47:20,460 --> 00:47:22,849 what we did was apply clamp to the first 1108 00:47:22,859 --> 00:47:26,270 value of the margin shorthand and then 1109 00:47:26,280 --> 00:47:28,730 we applied 0 to the second value which 1110 00:47:28,740 --> 00:47:30,890 would be the left and the right okay 1111 00:47:30,900 --> 00:47:33,349 with those variables defined now let's 1112 00:47:33,359 --> 00:47:36,170 scroll back down to that header section 1113 00:47:36,180 --> 00:47:38,270 where we were applying other styles so 1114 00:47:38,280 --> 00:47:40,069 we had the header and we were at the 1115 00:47:40,079 --> 00:47:42,530 header H1 I'm going to apply the 1116 00:47:42,540 --> 00:47:44,030 background color now so I'll say 1117 00:47:44,040 --> 00:47:46,250 background Dash color 1118 00:47:46,260 --> 00:47:49,670 this will be VAR and then we'll have our 1119 00:47:49,680 --> 00:47:52,010 header background color that we could 1120 00:47:52,020 --> 00:47:53,450 select 1121 00:47:53,460 --> 00:47:55,609 and I'll save and we can see that change 1122 00:47:55,619 --> 00:47:57,950 now it is all black so we need to apply 1123 00:47:57,960 --> 00:48:01,250 a color and this will be VAR as well two 1124 00:48:01,260 --> 00:48:04,250 dashes and header color 1125 00:48:04,260 --> 00:48:06,530 and now that we've selected that we will 1126 00:48:06,540 --> 00:48:08,690 save and now we can see welcome to the 1127 00:48:08,700 --> 00:48:10,849 little taco shop across the top once 1128 00:48:10,859 --> 00:48:11,690 again 1129 00:48:11,700 --> 00:48:14,630 after the color let's apply some padding 1130 00:48:14,640 --> 00:48:16,490 and we're using the shorthand here for 1131 00:48:16,500 --> 00:48:18,650 padding so we'll say VAR 1132 00:48:18,660 --> 00:48:21,230 two dashes and padding and this will be 1133 00:48:21,240 --> 00:48:23,690 top and bottom first and then we'll say 1134 00:48:23,700 --> 00:48:26,990 VAR two dashes for padding and this 1135 00:48:27,000 --> 00:48:29,390 would be the padding on the sides and 1136 00:48:29,400 --> 00:48:31,730 we'll save and we got just a little bit 1137 00:48:31,740 --> 00:48:34,670 of padding now to apply itself to the 1138 00:48:34,680 --> 00:48:36,650 top and the bottom left and the right 1139 00:48:36,660 --> 00:48:39,170 for the header looks like I'm not 1140 00:48:39,180 --> 00:48:41,870 closing that out properly so put that 1141 00:48:41,880 --> 00:48:44,630 extra curly brace there we go and we're 1142 00:48:44,640 --> 00:48:47,150 finished with the header H1 now so now 1143 00:48:47,160 --> 00:48:49,370 let's move down to header two 1144 00:48:49,380 --> 00:48:52,910 underscores and Nav Now for the nav 1145 00:48:52,920 --> 00:48:54,470 we're going to have a separate 1146 00:48:54,480 --> 00:48:56,210 background color variable that we 1147 00:48:56,220 --> 00:48:59,870 created so VAR two dashes and here it 1148 00:48:59,880 --> 00:49:02,809 will say nav background color 1149 00:49:02,819 --> 00:49:05,270 and now something to discuss quickly you 1150 00:49:05,280 --> 00:49:07,190 may be wondering why I created these 1151 00:49:07,200 --> 00:49:08,990 extra variables and yet some of them 1152 00:49:09,000 --> 00:49:11,870 have the same color values well I'm 1153 00:49:11,880 --> 00:49:13,549 specifically naming them so I know where 1154 00:49:13,559 --> 00:49:16,190 they apply and later on when we create a 1155 00:49:16,200 --> 00:49:19,069 dark mode they may vary more than they 1156 00:49:19,079 --> 00:49:21,290 are varying now in the light mode so 1157 00:49:21,300 --> 00:49:23,390 it's good to have that extra control and 1158 00:49:23,400 --> 00:49:25,010 extra labeling over these color 1159 00:49:25,020 --> 00:49:27,470 variables okay now that I've applied 1160 00:49:27,480 --> 00:49:30,950 that background color let's add a border 1161 00:49:30,960 --> 00:49:33,950 I want lowercase here border Dash bottom 1162 00:49:33,960 --> 00:49:36,650 to our nav and there I'm going to say 1163 00:49:36,660 --> 00:49:40,549 VAR and apply that borders variable that 1164 00:49:40,559 --> 00:49:43,730 we created so there's borders 1165 00:49:43,740 --> 00:49:47,270 and I can save that and we now see a 1166 00:49:47,280 --> 00:49:49,790 line across the bottom here of the nav 1167 00:49:49,800 --> 00:49:52,430 because it's also within this header 1168 00:49:52,440 --> 00:49:55,370 element and then after that border let's 1169 00:49:55,380 --> 00:49:58,190 say font Dash weight we'll set that to 1170 00:49:58,200 --> 00:50:00,349 bold when we save we should see those 1171 00:50:00,359 --> 00:50:02,210 links change a little bit the font 1172 00:50:02,220 --> 00:50:04,010 definitely changed there 1173 00:50:04,020 --> 00:50:06,589 and what else can we apply let's say box 1174 00:50:06,599 --> 00:50:07,910 Dash 1175 00:50:07,920 --> 00:50:09,589 shadow 1176 00:50:09,599 --> 00:50:14,750 0 for the X 6 pixels for the Y 5 pixels 1177 00:50:14,760 --> 00:50:16,609 for the blur but this is going to be a 1178 00:50:16,619 --> 00:50:17,809 shadow that looks like it's coming 1179 00:50:17,819 --> 00:50:20,809 straight down so then we'll also set a 1180 00:50:20,819 --> 00:50:24,470 minus 5 pixels and that offsets that 1181 00:50:24,480 --> 00:50:27,650 blur and then we'll have VAR and we'll 1182 00:50:27,660 --> 00:50:30,710 set the color here to the Border Dash 1183 00:50:30,720 --> 00:50:34,430 color and save and now we get this nice 1184 00:50:34,440 --> 00:50:36,829 little straight down Shadow underneath 1185 00:50:36,839 --> 00:50:40,730 that bottom border of the nap the 1186 00:50:40,740 --> 00:50:42,890 navigation but also essentially the 1187 00:50:42,900 --> 00:50:45,349 header itself and finally we need to 1188 00:50:45,359 --> 00:50:49,609 style the unordered list so adding the 1189 00:50:49,619 --> 00:50:52,670 header two underscores unordered list 1190 00:50:52,680 --> 00:50:54,770 and here we'll start out with some 1191 00:50:54,780 --> 00:50:57,970 padding and I'll say bar dash dash 1192 00:50:57,980 --> 00:51:00,290 padding and this would be the top and 1193 00:51:00,300 --> 00:51:02,809 the bottom and then once again we'll say 1194 00:51:02,819 --> 00:51:06,049 VAR dash dash padding and this would be 1195 00:51:06,059 --> 00:51:08,510 the side value 1196 00:51:08,520 --> 00:51:11,210 save that now you can see those dots for 1197 00:51:11,220 --> 00:51:13,250 the unordered list were brought back in 1198 00:51:13,260 --> 00:51:14,809 so we know we've added that extra 1199 00:51:14,819 --> 00:51:16,490 padding it has just a little more room 1200 00:51:16,500 --> 00:51:18,170 but now let's say list 1201 00:51:18,180 --> 00:51:19,549 Style 1202 00:51:19,559 --> 00:51:22,309 type we'll set that To None which should 1203 00:51:22,319 --> 00:51:26,569 remove those dots beside each list item 1204 00:51:26,579 --> 00:51:29,150 a display of flex and when I save you'll 1205 00:51:29,160 --> 00:51:30,829 see that change because it instantly 1206 00:51:30,839 --> 00:51:33,710 makes it a row by default 1207 00:51:33,720 --> 00:51:36,710 we'll say justify content 1208 00:51:36,720 --> 00:51:41,329 space Dash evenly and we'll save and now 1209 00:51:41,339 --> 00:51:44,210 it spaces out those items and then let's 1210 00:51:44,220 --> 00:51:48,290 add a gap and let's call the Gap one Rim 1211 00:51:48,300 --> 00:51:51,470 so what we expect there and so we 1212 00:51:51,480 --> 00:51:54,530 definitely have a gap between those 1213 00:51:54,540 --> 00:51:56,569 items even if they were all squeezed 1214 00:51:56,579 --> 00:51:58,670 together if the screen got smaller and 1215 00:51:58,680 --> 00:52:00,170 now a couple of quick notes on the 1216 00:52:00,180 --> 00:52:02,990 header before we move on one is we did 1217 00:52:03,000 --> 00:52:05,089 learn how to make an animated mobile 1218 00:52:05,099 --> 00:52:07,010 header but we're not applying it to this 1219 00:52:07,020 --> 00:52:08,690 project because it would essentially be 1220 00:52:08,700 --> 00:52:11,809 Overkill we've just got the four links 1221 00:52:11,819 --> 00:52:15,170 and four pages to the project and we can 1222 00:52:15,180 --> 00:52:17,510 easily link to those on mobile or in 1223 00:52:17,520 --> 00:52:19,849 desktop by just listing them out here on 1224 00:52:19,859 --> 00:52:22,490 the page so you don't always have to 1225 00:52:22,500 --> 00:52:24,829 apply everything you know how to do to 1226 00:52:24,839 --> 00:52:26,690 every project and I didn't want to do 1227 00:52:26,700 --> 00:52:28,309 that to this project and it's worth 1228 00:52:28,319 --> 00:52:31,609 noting why also we previously had 1229 00:52:31,619 --> 00:52:33,770 welcome to the little taco shop across 1230 00:52:33,780 --> 00:52:36,890 here but that's really a lot so quickly 1231 00:52:36,900 --> 00:52:40,450 I will open the file tree go to the 1232 00:52:40,460 --> 00:52:43,490 index.html and bring this back and let's 1233 00:52:43,500 --> 00:52:47,150 scroll up and find our H1 welcome to the 1234 00:52:47,160 --> 00:52:49,190 little taco shop and let's just remove 1235 00:52:49,200 --> 00:52:52,309 move the welcome to the because what we 1236 00:52:52,319 --> 00:52:54,890 really want is just little taco shop 1237 00:52:54,900 --> 00:52:58,190 across the top after that we can go back 1238 00:52:58,200 --> 00:53:00,710 to the file tree Once Again select the 1239 00:53:00,720 --> 00:53:03,770 CSS and hide the file tree I know we're 1240 00:53:03,780 --> 00:53:06,109 squeezing all the code over here to half 1241 00:53:06,119 --> 00:53:08,329 the screen so we can see the page more 1242 00:53:08,339 --> 00:53:10,250 often but when I bring it back you'll 1243 00:53:10,260 --> 00:53:12,470 find that it's not wrapping and it may 1244 00:53:12,480 --> 00:53:14,690 be a little easier for you to read so if 1245 00:53:14,700 --> 00:53:16,010 you're working on it with me maybe 1246 00:53:16,020 --> 00:53:17,990 you're just viewing the code like this 1247 00:53:18,000 --> 00:53:20,510 so you can see those longer lines where 1248 00:53:20,520 --> 00:53:22,670 we've used some variables are not 1249 00:53:22,680 --> 00:53:24,710 wrapping to a second line now when I 1250 00:53:24,720 --> 00:53:26,630 bring it over and look at it like this 1251 00:53:26,640 --> 00:53:29,210 so I just wanted to show you that I'm 1252 00:53:29,220 --> 00:53:31,609 going to bring this back to the left and 1253 00:53:31,619 --> 00:53:33,170 now likewise we can bring the project 1254 00:53:33,180 --> 00:53:35,210 over and look at it in full screen as 1255 00:53:35,220 --> 00:53:36,950 well and you'll see it's coming together 1256 00:53:36,960 --> 00:53:39,349 a little bit better we've definitely got 1257 00:53:39,359 --> 00:53:42,589 some changes to make yet however this 1258 00:53:42,599 --> 00:53:44,030 has certainly helped and if we look at 1259 00:53:44,040 --> 00:53:46,190 the other Pages since we put in that 1260 00:53:46,200 --> 00:53:48,829 work ahead of time to put in the correct 1261 00:53:48,839 --> 00:53:52,010 image uh changes to the HTML to create 1262 00:53:52,020 --> 00:53:55,069 those hero sections and of course apply 1263 00:53:55,079 --> 00:53:57,109 the classes to the header and the nav as 1264 00:53:57,119 --> 00:54:00,230 well we see those changes applied as we 1265 00:54:00,240 --> 00:54:02,210 go to each page already so we're making 1266 00:54:02,220 --> 00:54:04,970 a lot of progress we just have some more 1267 00:54:04,980 --> 00:54:07,730 progress yet to make so now I'll drag 1268 00:54:07,740 --> 00:54:10,250 this back to the right and we can begin 1269 00:54:10,260 --> 00:54:12,710 the next section and that next section 1270 00:54:12,720 --> 00:54:15,470 is our hero section so right underneath 1271 00:54:15,480 --> 00:54:17,930 our last header style we'll create a new 1272 00:54:17,940 --> 00:54:20,510 label and we'll call this the hero 1273 00:54:20,520 --> 00:54:22,910 section with the label and for that 1274 00:54:22,920 --> 00:54:24,770 we'll start out with our hero class 1275 00:54:24,780 --> 00:54:26,809 which if you remember is applied to that 1276 00:54:26,819 --> 00:54:29,329 section element we'll say it's position 1277 00:54:29,339 --> 00:54:31,910 relative because we're going to place 1278 00:54:31,920 --> 00:54:35,510 something absolute inside of that hero 1279 00:54:35,520 --> 00:54:38,750 section as well after that we have a 1280 00:54:38,760 --> 00:54:41,770 hero H2 and if you remember this is only 1281 00:54:41,780 --> 00:54:45,410 on the home page our index.html and that 1282 00:54:45,420 --> 00:54:48,829 is our Bienvenidos welcome here so after 1283 00:54:48,839 --> 00:54:51,049 that we can go ahead and apply some 1284 00:54:51,059 --> 00:54:54,170 styles to that and the background Dash 1285 00:54:54,180 --> 00:54:55,130 color 1286 00:54:55,140 --> 00:54:58,190 for that H2 is going to be a new 1287 00:54:58,200 --> 00:54:59,990 variable I need to create so let's 1288 00:55:00,000 --> 00:55:02,990 scroll back up to this color that we'll 1289 00:55:03,000 --> 00:55:04,670 have in our variables list once again 1290 00:55:04,680 --> 00:55:07,549 there's all the colors so at the bottom 1291 00:55:07,559 --> 00:55:09,770 here we're going to call this two dashes 1292 00:55:09,780 --> 00:55:13,190 in hero Dash color and now this color is 1293 00:55:13,200 --> 00:55:15,349 very much like our highlight color so 1294 00:55:15,359 --> 00:55:18,670 it's RGB 1295 00:55:18,680 --> 00:55:23,750 5117851 but then we also need a 1296 00:55:23,760 --> 00:55:26,329 transparency color here so we could make 1297 00:55:26,339 --> 00:55:29,510 this RGB a so we can have that 1298 00:55:29,520 --> 00:55:33,130 transparency and then this will be 1299 00:55:33,140 --> 00:55:35,990 0.75 and I don't need the extra 1300 00:55:36,000 --> 00:55:38,750 parentheses so that means it will be 75 1301 00:55:38,760 --> 00:55:41,829 percent viewable and 25 percent 1302 00:55:41,839 --> 00:55:44,569 transparent so when we scroll back down 1303 00:55:44,579 --> 00:55:47,930 let's apply this to that hero background 1304 00:55:47,940 --> 00:55:49,190 color here 1305 00:55:49,200 --> 00:55:52,849 so we'll say VAR dash dash hero and 1306 00:55:52,859 --> 00:55:56,089 there's the hero color 1307 00:55:56,099 --> 00:55:58,849 after this hero color and I can save and 1308 00:55:58,859 --> 00:56:00,470 we're not seeing much of a change right 1309 00:56:00,480 --> 00:56:02,329 now but we will here in the future we'll 1310 00:56:02,339 --> 00:56:04,849 say color and actually I'm realizing I 1311 00:56:04,859 --> 00:56:06,589 just labeled that wrong and I also need 1312 00:56:06,599 --> 00:56:09,230 a hero color but I also need a hero 1313 00:56:09,240 --> 00:56:11,690 background color so if I could label 1314 00:56:11,700 --> 00:56:13,490 those correctly in my mind it would 1315 00:56:13,500 --> 00:56:15,230 definitely help us out so let's go back 1316 00:56:15,240 --> 00:56:17,210 up here this should be the hero 1317 00:56:17,220 --> 00:56:19,430 background color that I just created 1318 00:56:19,440 --> 00:56:21,829 instead of the hero color so let's label 1319 00:56:21,839 --> 00:56:24,710 this BG there we go underneath this 1320 00:56:24,720 --> 00:56:27,370 we're going to have a 1321 00:56:27,380 --> 00:56:30,770 KIRO Dash color and the hero color 1322 00:56:30,780 --> 00:56:33,890 itself should just be white once again 1323 00:56:33,900 --> 00:56:36,890 for now okay now we should apply these 1324 00:56:36,900 --> 00:56:38,930 correctly you can see when you get many 1325 00:56:38,940 --> 00:56:41,930 colors it can be very helpful to label 1326 00:56:41,940 --> 00:56:44,569 those and think about them in a good 1327 00:56:44,579 --> 00:56:47,030 order and I'm not always doing that even 1328 00:56:47,040 --> 00:56:49,370 when I do take all the other precautions 1329 00:56:49,380 --> 00:56:51,829 so now I've got a hero background color 1330 00:56:51,839 --> 00:56:54,650 for the background color and here this 1331 00:56:54,660 --> 00:56:58,190 should be VAR dash dash hero 1332 00:56:58,200 --> 00:57:02,089 color for the font and now save and 1333 00:57:02,099 --> 00:57:04,430 since it disappeared I think I may have 1334 00:57:04,440 --> 00:57:06,829 possibly applied something incorrectly 1335 00:57:06,839 --> 00:57:09,049 even now so let me shoot back up to the 1336 00:57:09,059 --> 00:57:11,329 top and take a second look at these hero 1337 00:57:11,339 --> 00:57:13,190 colors here and I see what I've done 1338 00:57:13,200 --> 00:57:17,329 wrong I have rbga instead of rgba so it 1339 00:57:17,339 --> 00:57:19,630 just takes one typo to set something off 1340 00:57:19,640 --> 00:57:22,370 rgba and now we should be good and we 1341 00:57:22,380 --> 00:57:24,349 have the green color there and you can 1342 00:57:24,359 --> 00:57:27,589 see our green background now for that H2 1343 00:57:27,599 --> 00:57:29,870 with the white lettering here at the top 1344 00:57:29,880 --> 00:57:31,609 and of course we're going to change this 1345 00:57:31,619 --> 00:57:34,069 some more if you remember when I 1346 00:57:34,079 --> 00:57:35,690 previewed the project at the beginning 1347 00:57:35,700 --> 00:57:38,690 we saw this is really an animated drop 1348 00:57:38,700 --> 00:57:40,970 down let's add some more styles to this 1349 00:57:40,980 --> 00:57:43,609 H2 before we approach the animation so 1350 00:57:43,619 --> 00:57:46,150 we'll say padding and here we'll have 1351 00:57:46,160 --> 00:57:50,990 0.25 M and then 0.5 M on the left and 1352 00:57:51,000 --> 00:57:53,089 the right we save that we can see that 1353 00:57:53,099 --> 00:57:55,130 extra padding applied 1354 00:57:55,140 --> 00:57:58,250 letter spacing and here let's give this 1355 00:57:58,260 --> 00:58:02,569 a 0.1 Rim so again just that 10 percent 1356 00:58:02,579 --> 00:58:05,030 which should space it out just a little 1357 00:58:05,040 --> 00:58:07,849 bit after the letter spacing let's say 1358 00:58:07,859 --> 00:58:12,109 text Dash Shadow and so we can apply a 1359 00:58:12,119 --> 00:58:14,210 shadow to this lettering we'll say two 1360 00:58:14,220 --> 00:58:18,289 pixels x offset 2 pixels y 5 pixels blur 1361 00:58:18,299 --> 00:58:21,289 and now let's use that border color 1362 00:58:21,299 --> 00:58:22,549 variable 1363 00:58:22,559 --> 00:58:24,470 that we have used in the past for 1364 00:58:24,480 --> 00:58:27,410 shadows and we save now that helps that 1365 00:58:27,420 --> 00:58:29,630 white stand out just a little bit it 1366 00:58:29,640 --> 00:58:31,970 lifts it up off of that green background 1367 00:58:31,980 --> 00:58:35,630 just a bit because of that shadow now we 1368 00:58:35,640 --> 00:58:37,010 need to say 1369 00:58:37,020 --> 00:58:38,890 position 1370 00:58:38,900 --> 00:58:42,890 absolute and we're going to move this to 1371 00:58:42,900 --> 00:58:48,170 the top and it's going to be minus 100 1372 00:58:48,180 --> 00:58:49,849 pixels 1373 00:58:49,859 --> 00:58:52,370 and first let me save this before I move 1374 00:58:52,380 --> 00:58:54,410 it so you can see what changes it 1375 00:58:54,420 --> 00:58:57,829 instantly makes it an element that is 1376 00:58:57,839 --> 00:58:59,990 not in the document flow and a block 1377 00:59:00,000 --> 00:59:02,410 element would of course span the 100 1378 00:59:02,420 --> 00:59:06,349 width but now because it is removed from 1379 00:59:06,359 --> 00:59:09,230 that flow due to position absolute it 1380 00:59:09,240 --> 00:59:11,630 does not have 100 width as a block 1381 00:59:11,640 --> 00:59:14,270 element normally would okay now let's go 1382 00:59:14,280 --> 00:59:17,270 ahead and move it off the page to start 1383 00:59:17,280 --> 00:59:19,549 out when the page loads so this would be 1384 00:59:19,559 --> 00:59:23,450 minus 100 pixels but before I do that 1385 00:59:23,460 --> 00:59:25,190 even I guess I should show where we're 1386 00:59:25,200 --> 00:59:27,530 going to place it to the left and the 1387 00:59:27,540 --> 00:59:29,750 left would be 20 pixels this value will 1388 00:59:29,760 --> 00:59:32,210 not change so it's just moved in just a 1389 00:59:32,220 --> 00:59:34,370 little bit but now 1390 00:59:34,380 --> 00:59:37,730 the top will be minus 100 pixels and now 1391 00:59:37,740 --> 00:59:40,190 it should disappear and it will 1392 00:59:40,200 --> 00:59:42,890 disappear it has disappeared but it will 1393 00:59:42,900 --> 00:59:45,890 of course be animated and drop down and 1394 00:59:45,900 --> 00:59:48,730 reappear once we apply that animation 1395 00:59:48,740 --> 00:59:51,650 and now we need to create the animation 1396 00:59:51,660 --> 00:59:54,349 itself and then we'll apply it so here 1397 00:59:54,359 --> 00:59:56,210 let's say at 1398 00:59:56,220 --> 00:59:58,970 keyframes as we learned in our animation 1399 00:59:58,980 --> 01:00:02,150 lesson and let's say show Welcome is the 1400 01:00:02,160 --> 01:00:03,890 name of our animation 1401 01:00:03,900 --> 01:00:06,589 we'll start out with a zero percent so 1402 01:00:06,599 --> 01:00:07,849 where it starts out at the very 1403 01:00:07,859 --> 01:00:08,870 beginning 1404 01:00:08,880 --> 01:00:11,390 we'll say the top is going to be minus 1405 01:00:11,400 --> 01:00:14,930 20 pixels instead of that minus 100 1406 01:00:14,940 --> 01:00:17,089 and now we'll transform we're going to 1407 01:00:17,099 --> 01:00:18,950 do two transforms we're going to have a 1408 01:00:18,960 --> 01:00:22,069 skew and that will make that lean just a 1409 01:00:22,079 --> 01:00:25,010 little bit we'll say zero degrees and 1410 01:00:25,020 --> 01:00:28,130 then minus 5 degrees 1411 01:00:28,140 --> 01:00:31,849 after that we'll also have a scale y 1412 01:00:31,859 --> 01:00:34,490 and we'll set that to zero to start out 1413 01:00:34,500 --> 01:00:37,670 with okay after the zero percent now 1414 01:00:37,680 --> 01:00:40,970 let's say at 80 percent and this is 1415 01:00:40,980 --> 01:00:42,829 where I like to give it just a little 1416 01:00:42,839 --> 01:00:45,349 bit more than it actually ends up with 1417 01:00:45,359 --> 01:00:46,970 so it gives it just a little bit of 1418 01:00:46,980 --> 01:00:49,490 extra movement or bounce so we'll say 1419 01:00:49,500 --> 01:00:52,010 the top is 30 pixels now will definitely 1420 01:00:52,020 --> 01:00:53,210 be visible 1421 01:00:53,220 --> 01:00:56,030 the transform it needs to start out 1422 01:00:56,040 --> 01:00:58,730 essentially with the skew again and 1423 01:00:58,740 --> 01:01:00,230 we're going to move the skew just a 1424 01:01:00,240 --> 01:01:01,609 little bit so I'm just going to copy 1425 01:01:01,619 --> 01:01:03,349 these so we can just change the values 1426 01:01:03,359 --> 01:01:06,710 inside paste those in and so now instead 1427 01:01:06,720 --> 01:01:08,450 of zero degrees it's going to be 10 1428 01:01:08,460 --> 01:01:10,789 degrees here we'll leave that at minus 5 1429 01:01:10,799 --> 01:01:13,250 degrees and the scale instead of 0 is 1430 01:01:13,260 --> 01:01:14,349 going to be 1431 01:01:14,359 --> 01:01:17,630 1.2 and now let's get our finishing 1432 01:01:17,640 --> 01:01:20,150 values at 100 percent for the animation 1433 01:01:20,160 --> 01:01:24,589 here this will be a top at 20 pixels 1434 01:01:24,599 --> 01:01:26,569 and then we'll once again have the 1435 01:01:26,579 --> 01:01:28,250 transform and I'm just going to copy 1436 01:01:28,260 --> 01:01:29,690 that down 1437 01:01:29,700 --> 01:01:34,069 and this would be a minus 10 degrees and 1438 01:01:34,079 --> 01:01:37,069 a minus 5 degrees and then the scale is 1439 01:01:37,079 --> 01:01:40,490 going to be 1 instead of 1.2 1440 01:01:40,500 --> 01:01:42,109 and when I save you won't see anything 1441 01:01:42,119 --> 01:01:43,730 yet because we haven't applied the 1442 01:01:43,740 --> 01:01:46,190 animation but now let's go ahead and 1443 01:01:46,200 --> 01:01:48,230 apply that animation here so we'll say 1444 01:01:48,240 --> 01:01:49,549 animation 1445 01:01:49,559 --> 01:01:53,390 and this is the show Welcome animation 1446 01:01:53,400 --> 01:01:55,609 we'll make it take a half second to 1447 01:01:55,619 --> 01:01:58,910 complete we'll start with the ease in 1448 01:01:58,920 --> 01:02:02,750 and out transition and let's give it a 1449 01:02:02,760 --> 01:02:05,750 delay now I could make this longer to be 1450 01:02:05,760 --> 01:02:08,270 more dramatic but let's give it say a 1451 01:02:08,280 --> 01:02:11,089 one second delay so we see the page load 1452 01:02:11,099 --> 01:02:12,710 and then we get a little welcome drop 1453 01:02:12,720 --> 01:02:15,950 down and we'll use the forwards property 1454 01:02:15,960 --> 01:02:17,930 here which means it will keep the state 1455 01:02:17,940 --> 01:02:20,870 of when the animation ends so it will 1456 01:02:20,880 --> 01:02:23,569 remain visible as well let's save and 1457 01:02:23,579 --> 01:02:25,130 see what happens 1458 01:02:25,140 --> 01:02:27,589 there's our welcome now to see it again 1459 01:02:27,599 --> 01:02:29,510 we'll have to of course navigate away 1460 01:02:29,520 --> 01:02:32,569 and come back to the home page but then 1461 01:02:32,579 --> 01:02:34,490 we see our welcome drop down that's a 1462 01:02:34,500 --> 01:02:36,829 nice little animation to go with our 1463 01:02:36,839 --> 01:02:39,349 project now let's move this over to a 1464 01:02:39,359 --> 01:02:42,349 full screen and of course this is how it 1465 01:02:42,359 --> 01:02:44,630 appears here but if I go ahead and press 1466 01:02:44,640 --> 01:02:47,390 Ctrl shift and I or we were to right 1467 01:02:47,400 --> 01:02:50,450 click and choose inspect let's choose a 1468 01:02:50,460 --> 01:02:53,630 mobile device like the iPhone 6 7 and 8 1469 01:02:53,640 --> 01:02:55,789 and make sure it's still positioned 1470 01:02:55,799 --> 01:02:57,950 correctly I can go to a hundred percent 1471 01:02:57,960 --> 01:02:59,750 view we can see it a little bit better 1472 01:02:59,760 --> 01:03:02,210 let's reload 1473 01:03:02,220 --> 01:03:04,970 and there's our welcome so yes it's not 1474 01:03:04,980 --> 01:03:06,890 crowding into the image too much and 1475 01:03:06,900 --> 01:03:08,930 everything looks good it's always good 1476 01:03:08,940 --> 01:03:11,630 of course to check your mobile design as 1477 01:03:11,640 --> 01:03:13,370 you go and I've been leaving the screen 1478 01:03:13,380 --> 01:03:16,490 open so we could see everything but 1479 01:03:16,500 --> 01:03:18,890 typically I do design for the smallest 1480 01:03:18,900 --> 01:03:20,809 first and you do want to check this 1481 01:03:20,819 --> 01:03:22,910 along the way and we will continue to 1482 01:03:22,920 --> 01:03:24,890 check it so for now I'm going to go back 1483 01:03:24,900 --> 01:03:27,650 to full screen and drag this back over 1484 01:03:27,660 --> 01:03:29,809 to the right with the animation complete 1485 01:03:29,819 --> 01:03:32,029 I'm going to drag vs code back over to 1486 01:03:32,039 --> 01:03:34,970 full screen now and we need to look at a 1487 01:03:34,980 --> 01:03:37,130 couple of sections in the HTML that are 1488 01:03:37,140 --> 01:03:39,950 on every page before we get to specifics 1489 01:03:39,960 --> 01:03:42,410 about each page and those remaining 1490 01:03:42,420 --> 01:03:46,309 sections are the main element and the 1491 01:03:46,319 --> 01:03:49,010 footer element so let's go to the footer 1492 01:03:49,020 --> 01:03:52,549 of the index HTML first because I 1493 01:03:52,559 --> 01:03:54,589 usually like to style that after the 1494 01:03:54,599 --> 01:03:57,109 header so once we get down to the footer 1495 01:03:57,119 --> 01:03:59,630 itself we can see we have footer here 1496 01:03:59,640 --> 01:04:01,789 with no class currently let's go ahead 1497 01:04:01,799 --> 01:04:04,609 and had the class of footer as we did 1498 01:04:04,619 --> 01:04:07,370 with the header before 1499 01:04:07,380 --> 01:04:10,130 and then let's also apply some classes 1500 01:04:10,140 --> 01:04:12,789 here to our copyright line so we have 1501 01:04:12,799 --> 01:04:16,490 copyright and then the HTML entity which 1502 01:04:16,500 --> 01:04:19,609 is the copyright symbol right here and 1503 01:04:19,619 --> 01:04:21,890 then we have the little taco shop well 1504 01:04:21,900 --> 01:04:24,049 we want to wrap this in some span 1505 01:04:24,059 --> 01:04:27,289 elements inside of this paragraph So 1506 01:04:27,299 --> 01:04:29,510 these lines do not break where we do not 1507 01:04:29,520 --> 01:04:31,670 expect them to we don't want the little 1508 01:04:31,680 --> 01:04:33,589 taco shop or we could just put little 1509 01:04:33,599 --> 01:04:35,809 taco shop we don't want this line to 1510 01:04:35,819 --> 01:04:38,990 break so let's put a span element here 1511 01:04:39,000 --> 01:04:41,270 and now of course it generates the 1512 01:04:41,280 --> 01:04:43,609 closing span element immediately I'll 1513 01:04:43,619 --> 01:04:46,910 put the closing paragraph tag on a 1514 01:04:46,920 --> 01:04:49,309 separate line and paste the closing span 1515 01:04:49,319 --> 01:04:52,010 afterwards I'm going to do the same here 1516 01:04:52,020 --> 01:04:54,770 too for copyright 1517 01:04:54,780 --> 01:04:56,630 I guess I need to create the element 1518 01:04:56,640 --> 01:04:58,670 instead of just typing span there we go 1519 01:04:58,680 --> 01:05:02,029 we can copy that closing span and put it 1520 01:05:02,039 --> 01:05:04,430 here so we've wrapped both of these in 1521 01:05:04,440 --> 01:05:06,710 Span elements now let's give them both 1522 01:05:06,720 --> 01:05:10,190 the class equal to no wrap one of those 1523 01:05:10,200 --> 01:05:12,549 utility classes we created that ensures 1524 01:05:12,559 --> 01:05:15,170 that this line will not break in the 1525 01:05:15,180 --> 01:05:16,970 middle of this content and this line 1526 01:05:16,980 --> 01:05:18,710 will not break in the middle of this 1527 01:05:18,720 --> 01:05:22,430 content so that helps us by ensuring 1528 01:05:22,440 --> 01:05:24,470 this presents itself in the way we want 1529 01:05:24,480 --> 01:05:26,450 it to this will not prevent it from 1530 01:05:26,460 --> 01:05:28,849 being all on one line but if we're on a 1531 01:05:28,859 --> 01:05:30,770 smaller device and it needs to wrap the 1532 01:05:30,780 --> 01:05:32,750 lines it's going to break where we want 1533 01:05:32,760 --> 01:05:34,730 it to and not in the middle of that 1534 01:05:34,740 --> 01:05:37,069 content somewhere else let me go ahead 1535 01:05:37,079 --> 01:05:39,890 and remove that extra line there and 1536 01:05:39,900 --> 01:05:42,049 then let's apply some styles to the 1537 01:05:42,059 --> 01:05:44,289 footer but we can also put this footer 1538 01:05:44,299 --> 01:05:48,529 in each of the HTML pages so after I 1539 01:05:48,539 --> 01:05:51,589 save the index and copy the footer I can 1540 01:05:51,599 --> 01:05:54,710 go to the hours page and I can replace 1541 01:05:54,720 --> 01:05:56,930 the footer that is here and we will not 1542 01:05:56,940 --> 01:05:59,870 need that HR that horizontal rule so 1543 01:05:59,880 --> 01:06:01,910 I'll highlight it as well just to remove 1544 01:06:01,920 --> 01:06:04,010 it when I paste that in 1545 01:06:04,020 --> 01:06:07,670 let's do the same for the contact page 1546 01:06:07,680 --> 01:06:11,029 and put that in here paste and save and 1547 01:06:11,039 --> 01:06:13,190 then we'll also need to do that in the 1548 01:06:13,200 --> 01:06:14,990 about page but if you remember the about 1549 01:06:15,000 --> 01:06:17,510 page doesn't have everything else yet so 1550 01:06:17,520 --> 01:06:19,970 it doesn't even have a main element that 1551 01:06:19,980 --> 01:06:21,770 we will be adding but let's save this 1552 01:06:21,780 --> 01:06:24,529 for now and now go back to the index now 1553 01:06:24,539 --> 01:06:26,569 that we've updated the HTML for the 1554 01:06:26,579 --> 01:06:29,329 footer let's do the same for the main 1555 01:06:29,339 --> 01:06:31,490 element and this will not take much at 1556 01:06:31,500 --> 01:06:34,250 all right now we have a main element 1557 01:06:34,260 --> 01:06:36,230 with no class and as you can expect 1558 01:06:36,240 --> 01:06:38,510 we'll put a class equal 1559 01:06:38,520 --> 01:06:41,569 to Maine here and then here we have an 1560 01:06:41,579 --> 01:06:44,210 article that has the ID of about well 1561 01:06:44,220 --> 01:06:46,789 this is going to be moved to the about 1562 01:06:46,799 --> 01:06:49,490 page so let's select this full article 1563 01:06:49,500 --> 01:06:53,029 here down to the closing tag and then 1564 01:06:53,039 --> 01:06:56,529 I'll control X I'll go to the 1565 01:06:56,539 --> 01:06:59,510 about.html and this is going to go 1566 01:06:59,520 --> 01:07:03,230 inside of a main element that has the 1567 01:07:03,240 --> 01:07:06,049 class of Main and you can see I created 1568 01:07:06,059 --> 01:07:08,150 that with the emit shortcut by typing 1569 01:07:08,160 --> 01:07:10,670 main dot Main and it instantly created 1570 01:07:10,680 --> 01:07:12,349 the main element that has a class of 1571 01:07:12,359 --> 01:07:15,589 main inside we'll paste that article 1572 01:07:15,599 --> 01:07:17,930 which will be the content inside of this 1573 01:07:17,940 --> 01:07:20,210 main element now I'll save this much and 1574 01:07:20,220 --> 01:07:22,130 we'll come back but now let's go back to 1575 01:07:22,140 --> 01:07:25,370 the index.html where we need to label 1576 01:07:25,380 --> 01:07:28,490 the article that's inside of this main 1577 01:07:28,500 --> 01:07:30,289 element so I'm going to highlight that 1578 01:07:30,299 --> 01:07:33,410 HR and remove it as well but now the 1579 01:07:33,420 --> 01:07:35,990 article that's in here has an ID of menu 1580 01:07:36,000 --> 01:07:38,450 but it also needs to have some class 1581 01:07:38,460 --> 01:07:40,730 classes in the first class we're going 1582 01:07:40,740 --> 01:07:43,549 to apply here is going to be main two 1583 01:07:43,559 --> 01:07:44,930 underscores 1584 01:07:44,940 --> 01:07:47,870 article because each main element on 1585 01:07:47,880 --> 01:07:50,049 each of these index pages in the project 1586 01:07:50,059 --> 01:07:52,789 contains an article if not more than one 1587 01:07:52,799 --> 01:07:55,430 article so we will label that and we'll 1588 01:07:55,440 --> 01:07:57,890 make sure that this is the only article 1589 01:07:57,900 --> 01:08:00,230 that's inside the main and if it's not 1590 01:08:00,240 --> 01:08:02,450 we will need to change it but it looks 1591 01:08:02,460 --> 01:08:04,970 like it is and that's fine it contains 1592 01:08:04,980 --> 01:08:07,010 the menu which we will come back to as 1593 01:08:07,020 --> 01:08:09,529 well but those are the two main classes 1594 01:08:09,539 --> 01:08:13,250 that every HTML page in the project will 1595 01:08:13,260 --> 01:08:16,130 need so let's go to the hours now 1596 01:08:16,140 --> 01:08:18,950 scroll up to the main here and it looks 1597 01:08:18,960 --> 01:08:21,050 like it doesn't currently have an 1598 01:08:21,060 --> 01:08:23,050 article but we need to apply the class 1599 01:08:23,060 --> 01:08:26,689 equal Main and to stay consistent here 1600 01:08:26,699 --> 01:08:29,030 let's go ahead and add an article 1601 01:08:29,040 --> 01:08:31,430 element to this HTML page so we have 1602 01:08:31,440 --> 01:08:32,570 article 1603 01:08:32,580 --> 01:08:35,689 I will go ahead and cut out the closing 1604 01:08:35,699 --> 01:08:38,630 tag and paste it above the closing main 1605 01:08:38,640 --> 01:08:41,570 tag and now let's give this the class 1606 01:08:41,580 --> 01:08:44,570 that is expected as well so it is 1607 01:08:44,580 --> 01:08:47,870 main 200 scores article 1608 01:08:47,880 --> 01:08:50,450 and save that now let's go to the 1609 01:08:50,460 --> 01:08:53,570 contact page and here in the contact 1610 01:08:53,580 --> 01:08:56,510 page you can see we have two sections 1611 01:08:56,520 --> 01:09:00,050 and an H2 so let's go ahead and apply 1612 01:09:00,060 --> 01:09:03,229 the class equal to Main and let's change 1613 01:09:03,239 --> 01:09:05,630 these section elements to articles to 1614 01:09:05,640 --> 01:09:07,910 stay consistent with the rest of the 1615 01:09:07,920 --> 01:09:09,769 main content here and you can see we 1616 01:09:09,779 --> 01:09:12,289 have a opening and closing and we have 1617 01:09:12,299 --> 01:09:13,789 two section elements so I'm going to 1618 01:09:13,799 --> 01:09:16,729 press Ctrl D and I got the closing Ctrl 1619 01:09:16,739 --> 01:09:18,590 D again to get the opening of the second 1620 01:09:18,600 --> 01:09:21,470 one and Ctrl d one more time to get that 1621 01:09:21,480 --> 01:09:24,169 closing tag now I can just type article 1622 01:09:24,179 --> 01:09:27,829 once and it changed all of those but now 1623 01:09:27,839 --> 01:09:30,289 I need to select just the opening 1624 01:09:30,299 --> 01:09:32,149 article so I'm going to select the full 1625 01:09:32,159 --> 01:09:34,070 thing including the less than and 1626 01:09:34,080 --> 01:09:37,070 greater than sign Ctrl D again and it 1627 01:09:37,080 --> 01:09:39,470 just selects the opening article of the 1628 01:09:39,480 --> 01:09:42,229 second one the right arrow to get to the 1629 01:09:42,239 --> 01:09:45,110 end the left Arrow wants to get just 1630 01:09:45,120 --> 01:09:47,630 behind the word article and now I can 1631 01:09:47,640 --> 01:09:50,870 add space type class and then set that 1632 01:09:50,880 --> 01:09:55,490 equal to main 200 scores and article and 1633 01:09:55,500 --> 01:09:58,130 now this should be applied to both so 1634 01:09:58,140 --> 01:10:00,470 we've got it here on the top article and 1635 01:10:00,480 --> 01:10:03,290 we've got it on the second article that 1636 01:10:03,300 --> 01:10:05,689 is on the contact page one other quick 1637 01:10:05,699 --> 01:10:08,209 change to the contact page is I want to 1638 01:10:08,219 --> 01:10:11,390 put the r location information above the 1639 01:10:11,400 --> 01:10:14,990 contact form so let's control X 1640 01:10:15,000 --> 01:10:18,110 and then just move up here above this 1641 01:10:18,120 --> 01:10:19,070 article 1642 01:10:19,080 --> 01:10:21,649 and paste in our other articles so we've 1643 01:10:21,659 --> 01:10:23,570 just switched that information around so 1644 01:10:23,580 --> 01:10:25,310 now that our location information with 1645 01:10:25,320 --> 01:10:27,470 the telephone is on top and the contact 1646 01:10:27,480 --> 01:10:29,990 form is on bottom and finally let's go 1647 01:10:30,000 --> 01:10:32,570 to the about HTML and you can see we 1648 01:10:32,580 --> 01:10:34,189 have a class of main that we applied 1649 01:10:34,199 --> 01:10:35,689 already but now 1650 01:10:35,699 --> 01:10:38,570 let's apply the same class here that is 1651 01:10:38,580 --> 01:10:41,689 main 200 scores and article and save 1652 01:10:41,699 --> 01:10:43,310 because I believe if I remember 1653 01:10:43,320 --> 01:10:46,430 correctly there was only one article for 1654 01:10:46,440 --> 01:10:48,649 this page as well so now we've made all 1655 01:10:48,659 --> 01:10:51,050 the adjustments for the main element and 1656 01:10:51,060 --> 01:10:53,390 the footer element on each of the HTML 1657 01:10:53,400 --> 01:10:57,110 Pages let's select the style.css file 1658 01:10:57,120 --> 01:10:59,090 once again and pull our code over to the 1659 01:10:59,100 --> 01:11:00,890 left so we can see the project on the 1660 01:11:00,900 --> 01:11:02,870 right and now we can continue to make 1661 01:11:02,880 --> 01:11:05,570 some more changes after we have styled 1662 01:11:05,580 --> 01:11:08,870 the hero section we're now ready for the 1663 01:11:08,880 --> 01:11:11,750 footer section so I'm going to put in a 1664 01:11:11,760 --> 01:11:14,450 label in the style sheet for footer 1665 01:11:14,460 --> 01:11:17,270 and now we can apply those styles with 1666 01:11:17,280 --> 01:11:20,390 the footer class and here this is going 1667 01:11:20,400 --> 01:11:22,729 to be position 1668 01:11:22,739 --> 01:11:25,189 sticky as well as the header because we 1669 01:11:25,199 --> 01:11:27,590 want it to stay in place so the bottom 1670 01:11:27,600 --> 01:11:29,689 will be zero so that will put it 1671 01:11:29,699 --> 01:11:32,630 directly at the bottom and I'll save 1672 01:11:32,640 --> 01:11:34,490 that much and let's go ahead and scroll 1673 01:11:34,500 --> 01:11:36,590 so we can see the footer down here it's 1674 01:11:36,600 --> 01:11:39,290 our copyright with copyright symbol and 1675 01:11:39,300 --> 01:11:41,030 the little taco shop 1676 01:11:41,040 --> 01:11:43,910 now let's go ahead and add a background 1677 01:11:43,920 --> 01:11:45,350 color 1678 01:11:45,360 --> 01:11:48,410 and this background color will be the 1679 01:11:48,420 --> 01:11:51,530 variable and we'll just apply the header 1680 01:11:51,540 --> 01:11:54,350 background color so it stays in sync 1681 01:11:54,360 --> 01:11:55,790 with the header 1682 01:11:55,800 --> 01:11:58,729 and if I save yes it all turns black so 1683 01:11:58,739 --> 01:12:01,790 we need to of course apply the color 1684 01:12:01,800 --> 01:12:04,669 and this should be the header color as 1685 01:12:04,679 --> 01:12:06,890 well 1686 01:12:06,900 --> 01:12:09,410 and we can save that and now we see the 1687 01:12:09,420 --> 01:12:11,630 font is white there on top of the black 1688 01:12:11,640 --> 01:12:12,950 background 1689 01:12:12,960 --> 01:12:15,350 let's apply some padding as it looks 1690 01:12:15,360 --> 01:12:17,930 pretty scrunched right now so we'll say 1691 01:12:17,940 --> 01:12:20,930 padding top and bottom we are using that 1692 01:12:20,940 --> 01:12:24,530 shorthand again so the next one would be 1693 01:12:24,540 --> 01:12:26,810 Patty inside 1694 01:12:26,820 --> 01:12:29,090 and now we'll go ahead and save that so 1695 01:12:29,100 --> 01:12:30,649 there's just a little extra padding 1696 01:12:30,659 --> 01:12:35,149 around that now let's put text align 1697 01:12:35,159 --> 01:12:37,490 and set that to Center and save and so 1698 01:12:37,500 --> 01:12:39,410 now we can see our copyright with the 1699 01:12:39,420 --> 01:12:41,450 copyright symbol and a little taco shop 1700 01:12:41,460 --> 01:12:43,850 is centered and we have our footer 1701 01:12:43,860 --> 01:12:46,010 across the bottom it stays in place when 1702 01:12:46,020 --> 01:12:48,649 we scroll as does the header I'm going 1703 01:12:48,659 --> 01:12:50,990 to copy this heading we put in here for 1704 01:12:51,000 --> 01:12:52,910 the footer and then I'm going to scroll 1705 01:12:52,920 --> 01:12:56,209 up and put in a very similar heading for 1706 01:12:56,219 --> 01:12:58,669 the main element so I want all caps 1707 01:12:58,679 --> 01:13:01,070 again to make that change after that 1708 01:13:01,080 --> 01:13:03,169 let's directly style that main class 1709 01:13:03,179 --> 01:13:04,310 first 1710 01:13:04,320 --> 01:13:06,590 and speaking of copying it's going to 1711 01:13:06,600 --> 01:13:08,689 get the same padding that we had here so 1712 01:13:08,699 --> 01:13:11,330 I'll just copy that and put that in for 1713 01:13:11,340 --> 01:13:14,030 the main and when I save we'll see we 1714 01:13:14,040 --> 01:13:15,709 get a little extra space here with our 1715 01:13:15,719 --> 01:13:17,630 menu our menu is not looking so great 1716 01:13:17,640 --> 01:13:18,890 right now and it's one of the last 1717 01:13:18,900 --> 01:13:20,870 things we'll do so let's start looking 1718 01:13:20,880 --> 01:13:22,790 at some of these other Pages the hours 1719 01:13:22,800 --> 01:13:24,890 look pretty good they got just a little 1720 01:13:24,900 --> 01:13:27,410 bit of extra space from that padding or 1721 01:13:27,420 --> 01:13:29,090 the about has a little more information 1722 01:13:29,100 --> 01:13:31,610 on it as well and so we can see some of 1723 01:13:31,620 --> 01:13:33,530 that there let's go back to the hours 1724 01:13:33,540 --> 01:13:36,830 for now okay after we've applied that 1725 01:13:36,840 --> 01:13:39,070 basic padding to the main element itself 1726 01:13:39,080 --> 01:13:43,450 we have the main 200 score article class 1727 01:13:43,460 --> 01:13:46,610 and here let's apply a scroll Dash 1728 01:13:46,620 --> 01:13:48,709 margin Dash top 1729 01:13:48,719 --> 01:13:51,830 and this will be 6.5 rims you usually 1730 01:13:51,840 --> 01:13:53,570 have to play around with this value to 1731 01:13:53,580 --> 01:13:56,209 see what works based on your project and 1732 01:13:56,219 --> 01:13:58,250 how much space possibly your nav is 1733 01:13:58,260 --> 01:13:59,990 taking up because what this is going to 1734 01:14:00,000 --> 01:14:02,750 do is enable the article information to 1735 01:14:02,760 --> 01:14:05,510 show instead of scrolling underneath the 1736 01:14:05,520 --> 01:14:07,850 header and then let's set a margin here 1737 01:14:07,860 --> 01:14:10,010 and we'll just use our VAR 1738 01:14:10,020 --> 01:14:12,470 and margin and save now this is 1739 01:14:12,480 --> 01:14:14,090 something we actually would see back on 1740 01:14:14,100 --> 01:14:16,910 the home page now if we choose menu and 1741 01:14:16,920 --> 01:14:19,669 it Scrolls well we're not on a device 1742 01:14:19,679 --> 01:14:21,470 right now that would actually use up the 1743 01:14:21,480 --> 01:14:23,870 page or we haven't expanded this menu to 1744 01:14:23,880 --> 01:14:26,209 take up more room but what will happen 1745 01:14:26,219 --> 01:14:29,630 will be it will prevent the menu from 1746 01:14:29,640 --> 01:14:32,450 scrolling underneath this header if we 1747 01:14:32,460 --> 01:14:34,370 have a taller manual or we're taking up 1748 01:14:34,380 --> 01:14:35,990 more room by the time we have finished 1749 01:14:36,000 --> 01:14:38,450 the Styles that's probably what will 1750 01:14:38,460 --> 01:14:41,270 happen Okay a couple of extra things to 1751 01:14:41,280 --> 01:14:43,490 put now and one of these at least we'll 1752 01:14:43,500 --> 01:14:46,430 see differently on maybe the contact 1753 01:14:46,440 --> 01:14:49,189 page because it has some extra room here 1754 01:14:49,199 --> 01:14:51,649 already so let's go ahead and apply 1755 01:14:51,659 --> 01:14:55,030 these Styles let's say 1756 01:14:55,040 --> 01:14:58,729 Main and we'll select the article as 1757 01:14:58,739 --> 01:15:02,090 well and now let's say the first 1758 01:15:02,100 --> 01:15:04,490 child pseudo selector 1759 01:15:04,500 --> 01:15:08,270 and we'll give this a margin Dash top of 1760 01:15:08,280 --> 01:15:11,209 one em so this would be the 1761 01:15:11,219 --> 01:15:14,149 first child that we would see here the 1762 01:15:14,159 --> 01:15:15,770 first article and that would be the same 1763 01:15:15,780 --> 01:15:17,870 on any page it gives just a little more 1764 01:15:17,880 --> 01:15:20,810 room between that hero image and the 1765 01:15:20,820 --> 01:15:21,649 rest 1766 01:15:21,659 --> 01:15:24,350 and now I'm going to copy this down so 1767 01:15:24,360 --> 01:15:26,630 shift alt in the down arrow 1768 01:15:26,640 --> 01:15:29,630 add the extra space and this will be for 1769 01:15:29,640 --> 01:15:32,270 the last child and we do have the one 1770 01:15:32,280 --> 01:15:36,169 page that has two different children and 1771 01:15:36,179 --> 01:15:38,930 that has the our location and the 1772 01:15:38,940 --> 01:15:41,930 contact form so for this last child we 1773 01:15:41,940 --> 01:15:44,450 want to calculate some height here so 1774 01:15:44,460 --> 01:15:47,570 let's say Min Dash 1775 01:15:47,580 --> 01:15:50,810 height we're going to calculate we'll 1776 01:15:50,820 --> 01:15:55,250 take 100 VH which would be 100 width or 1777 01:15:55,260 --> 01:15:57,590 100 height pardon me of what is 1778 01:15:57,600 --> 01:16:01,370 available now let's just subtract 20 1779 01:16:01,380 --> 01:16:04,970 rims from that and save to give it just 1780 01:16:04,980 --> 01:16:07,189 a little extra room to scroll and this 1781 01:16:07,199 --> 01:16:09,110 might be more visible when we don't have 1782 01:16:09,120 --> 01:16:11,390 as much content such as well the about 1783 01:16:11,400 --> 01:16:14,330 page has some if we go to the hours page 1784 01:16:14,340 --> 01:16:16,850 let's see now we have some extra room 1785 01:16:16,860 --> 01:16:20,450 here as well so if we remove this 1786 01:16:20,460 --> 01:16:22,970 and then save we don't have that extra 1787 01:16:22,980 --> 01:16:24,950 room it's kind of scrunched it's nice to 1788 01:16:24,960 --> 01:16:26,750 have that extra scrolling room and 1789 01:16:26,760 --> 01:16:28,729 that's why that is being applied so 1790 01:16:28,739 --> 01:16:32,390 again preference as a lot of Cs CSS is a 1791 01:16:32,400 --> 01:16:34,430 preference now we have just a little 1792 01:16:34,440 --> 01:16:36,890 extra room there for the scroll and now 1793 01:16:36,900 --> 01:16:38,570 we're ready to move on to individual 1794 01:16:38,580 --> 01:16:40,850 page sections I'm going to drag vs code 1795 01:16:40,860 --> 01:16:43,610 back over to full screen I'll scroll up 1796 01:16:43,620 --> 01:16:47,689 here and copy the main comment divider 1797 01:16:47,699 --> 01:16:50,209 that we have or label if you will and 1798 01:16:50,219 --> 01:16:53,689 here I'm going to switch this to about 1799 01:16:53,699 --> 01:16:56,510 and save so we'll start in on our about 1800 01:16:56,520 --> 01:16:59,090 page in the about section I'm going to 1801 01:16:59,100 --> 01:17:01,850 do something different here that some 1802 01:17:01,860 --> 01:17:04,130 may agree with or may not agree with 1803 01:17:04,140 --> 01:17:07,490 with bem but I don't want to refer to 1804 01:17:07,500 --> 01:17:11,030 the main as the parent for the about 1805 01:17:11,040 --> 01:17:14,090 information I want the word about there 1806 01:17:14,100 --> 01:17:16,850 so we know it's on the about page so I'm 1807 01:17:16,860 --> 01:17:20,209 going to add another class here that is 1808 01:17:20,219 --> 01:17:22,790 just called about and that goes to the 1809 01:17:22,800 --> 01:17:25,310 article so then what I refer to inside 1810 01:17:25,320 --> 01:17:27,530 of this article instead of referencing 1811 01:17:27,540 --> 01:17:29,870 main as the parent I'm going to 1812 01:17:29,880 --> 01:17:32,450 reference about it just makes more sense 1813 01:17:32,460 --> 01:17:35,209 to me for these classes in particular 1814 01:17:35,219 --> 01:17:37,729 and I've only got a couple to apply but 1815 01:17:37,739 --> 01:17:40,250 I want class about and then I'm going to 1816 01:17:40,260 --> 01:17:43,430 use two underscores trivia and then on 1817 01:17:43,440 --> 01:17:45,830 the paragraph that has the answer I'm 1818 01:17:45,840 --> 01:17:48,770 going to say class and then equals this 1819 01:17:48,780 --> 01:17:50,930 will be about 1820 01:17:50,940 --> 01:17:54,110 answer so we have about trivia and about 1821 01:17:54,120 --> 01:17:56,750 answer and even better than that I think 1822 01:17:56,760 --> 01:17:58,729 I might put the word trivia here as well 1823 01:17:58,739 --> 01:18:01,130 so trivia Dash answer it's just a 1824 01:18:01,140 --> 01:18:03,410 two-word label but that makes more sense 1825 01:18:03,420 --> 01:18:05,390 to me as well so we've got about trivia 1826 01:18:05,400 --> 01:18:08,570 and about trivia answer and I did want 1827 01:18:08,580 --> 01:18:11,930 two underscores there as well so there 1828 01:18:11,940 --> 01:18:14,870 we go now let's switch back to the style 1829 01:18:14,880 --> 01:18:18,350 CSS and put those classes in here so 1830 01:18:18,360 --> 01:18:20,930 we'll have our about 200 scores in 1831 01:18:20,940 --> 01:18:23,450 trivia remember I put in about class in 1832 01:18:23,460 --> 01:18:25,490 there but I don't really have any Styles 1833 01:18:25,500 --> 01:18:28,310 in addition to apply there I just wanted 1834 01:18:28,320 --> 01:18:30,649 to refer to that about class as the 1835 01:18:30,659 --> 01:18:33,070 parent and so we'll leave it at that 1836 01:18:33,080 --> 01:18:35,810 margin will be that variable that we 1837 01:18:35,820 --> 01:18:38,390 defined for a margin 1838 01:18:38,400 --> 01:18:41,930 and then for the about trivia answer so 1839 01:18:41,940 --> 01:18:44,209 we'll have about two underscores trivia 1840 01:18:44,219 --> 01:18:46,850 Dash answer 1841 01:18:46,860 --> 01:18:48,770 here we're going to set a margin Dash 1842 01:18:48,780 --> 01:18:53,090 top equal to 1M and save let's pull this 1843 01:18:53,100 --> 01:18:56,149 over and see those changes applied to 1844 01:18:56,159 --> 01:18:59,570 the about so here we go and see we've 1845 01:18:59,580 --> 01:19:01,430 got a little extra space here too which 1846 01:19:01,440 --> 01:19:03,709 also helps our scroll and then when we 1847 01:19:03,719 --> 01:19:05,390 show the answer 1848 01:19:05,400 --> 01:19:08,510 that is nicely formatted as well moving 1849 01:19:08,520 --> 01:19:10,729 on to the contact form so I will focus 1850 01:19:10,739 --> 01:19:13,310 on that and let's scroll up to see this 1851 01:19:13,320 --> 01:19:16,010 content that we have on this page we 1852 01:19:16,020 --> 01:19:17,510 definitely have enough height here and 1853 01:19:17,520 --> 01:19:19,370 we have two different articles working 1854 01:19:19,380 --> 01:19:21,290 with forms can be difficult but let's 1855 01:19:21,300 --> 01:19:23,390 see how we can apply the Styles here I'm 1856 01:19:23,400 --> 01:19:25,430 going to put in a new label in our style 1857 01:19:25,440 --> 01:19:28,250 sheet and I will put 1858 01:19:28,260 --> 01:19:30,830 contact right here and then let's scroll 1859 01:19:30,840 --> 01:19:33,470 up to make that the very top of the page 1860 01:19:33,480 --> 01:19:36,470 and now let's start off with our contact 1861 01:19:36,480 --> 01:19:39,530 two underscores and H2 but I don't 1862 01:19:39,540 --> 01:19:41,689 believe we've applied these classes yet 1863 01:19:41,699 --> 01:19:44,149 so let's drag this over to full screen 1864 01:19:44,159 --> 01:19:47,209 look at our contact page and see what 1865 01:19:47,219 --> 01:19:50,630 classes we need to apply to the rest of 1866 01:19:50,640 --> 01:19:52,729 this HTML I'm going to leave the address 1867 01:19:52,739 --> 01:19:55,490 as is it needs no further classes 1868 01:19:55,500 --> 01:19:58,070 however the contact form itself does and 1869 01:19:58,080 --> 01:19:59,990 I'm going to apply that same philosophy 1870 01:20:00,000 --> 01:20:02,510 that I did to the about page where I 1871 01:20:02,520 --> 01:20:04,790 have main article but I don't want to 1872 01:20:04,800 --> 01:20:07,790 refer to the main element as the parent 1873 01:20:07,800 --> 01:20:10,610 I want to refer to contact so I'm going 1874 01:20:10,620 --> 01:20:13,310 to put a contact class here at the 1875 01:20:13,320 --> 01:20:16,189 beginning for the article now for the H2 1876 01:20:16,199 --> 01:20:18,470 I'm going to put class and I'm going to 1877 01:20:18,480 --> 01:20:21,590 set that equal to contact 20 underscores 1878 01:20:21,600 --> 01:20:25,669 and H2 likewise for the form we can make 1879 01:20:25,679 --> 01:20:28,189 this a contact form so I'll put class 1880 01:20:28,199 --> 01:20:32,330 class equals contact two underscores and 1881 01:20:32,340 --> 01:20:34,430 form we'll do the same for the field set 1882 01:20:34,440 --> 01:20:36,470 I'm going to start copying this so I 1883 01:20:36,480 --> 01:20:38,810 just have to change the one word 1884 01:20:38,820 --> 01:20:41,270 and instead of contact form this would 1885 01:20:41,280 --> 01:20:43,370 be contact 1886 01:20:43,380 --> 01:20:47,030 field set and now for the legend we're 1887 01:20:47,040 --> 01:20:49,790 not going to apply that class but we're 1888 01:20:49,800 --> 01:20:51,830 just going to put this off screen and we 1889 01:20:51,840 --> 01:20:53,689 already have a utility class for that so 1890 01:20:53,699 --> 01:20:55,189 this class will be 1891 01:20:55,199 --> 01:20:59,149 off screen for the P here we'll go ahead 1892 01:20:59,159 --> 01:21:02,090 and put in this contact form once again 1893 01:21:02,100 --> 01:21:03,770 but we're just going to change the word 1894 01:21:03,780 --> 01:21:07,189 form to P for paragraph and it looks 1895 01:21:07,199 --> 01:21:09,169 like I should have selected the full 1896 01:21:09,179 --> 01:21:11,030 element and then the next one as well 1897 01:21:11,040 --> 01:21:13,310 and now I'll arrow to the end one Arrow 1898 01:21:13,320 --> 01:21:16,729 to go inside and paste in this class and 1899 01:21:16,739 --> 01:21:18,590 now I can change 1900 01:21:18,600 --> 01:21:21,530 both at the same time and put in the P4 1901 01:21:21,540 --> 01:21:23,990 paragraph we'll save now we need to do 1902 01:21:24,000 --> 01:21:27,530 something similar for the label so let's 1903 01:21:27,540 --> 01:21:30,229 go ahead and select all three of the 1904 01:21:30,239 --> 01:21:31,610 labels 1905 01:21:31,620 --> 01:21:34,970 and then we can arrow to the end paste 1906 01:21:34,980 --> 01:21:38,810 in our class and then once again Arrow 1907 01:21:38,820 --> 01:21:41,990 over change form and change this to 1908 01:21:42,000 --> 01:21:45,050 contact label now let's do this for the 1909 01:21:45,060 --> 01:21:47,330 inputs so I'll select the first one 1910 01:21:47,340 --> 01:21:50,450 control D and there are only two inputs 1911 01:21:50,460 --> 01:21:53,169 so that's all we need arrow to the right 1912 01:21:53,179 --> 01:21:56,750 and paste in the class and then change 1913 01:21:56,760 --> 01:22:00,410 the contact form once again and I 1914 01:22:00,420 --> 01:22:02,390 shouldn't have done that but now I can 1915 01:22:02,400 --> 01:22:05,030 control D to select it as well and then 1916 01:22:05,040 --> 01:22:07,490 we have contact input as well but now 1917 01:22:07,500 --> 01:22:10,070 we're going to have a contact text area 1918 01:22:10,080 --> 01:22:12,110 so I just need to paste that in and 1919 01:22:12,120 --> 01:22:13,430 switch this 1920 01:22:13,440 --> 01:22:17,209 to text area and I believe nope there's 1921 01:22:17,219 --> 01:22:19,610 one more and that would be the button 1922 01:22:19,620 --> 01:22:22,669 and we have two buttons so Ctrl D to 1923 01:22:22,679 --> 01:22:24,290 select the second one 1924 01:22:24,300 --> 01:22:26,390 arrow to the right to be at the end 1925 01:22:26,400 --> 01:22:30,129 paste this in and this class is contact 1926 01:22:30,139 --> 01:22:32,870 button so Ctrl D to select both of those 1927 01:22:32,880 --> 01:22:35,030 now that we've applied all of the 1928 01:22:35,040 --> 01:22:36,950 classes that we're going to use in the 1929 01:22:36,960 --> 01:22:39,169 form let's go back to the style sheet 1930 01:22:39,179 --> 01:22:41,810 and drag it back to the left and we'll 1931 01:22:41,820 --> 01:22:44,330 be looking at the form here on the right 1932 01:22:44,340 --> 01:22:47,209 for the H2 we're simply going to set the 1933 01:22:47,219 --> 01:22:50,810 margin to zero and save that 1934 01:22:50,820 --> 01:22:54,350 now the field set and notice the label 1935 01:22:54,360 --> 01:22:56,270 of the field set is already gone because 1936 01:22:56,280 --> 01:22:58,850 we applied or the legend because we 1937 01:22:58,860 --> 01:23:01,189 applied that off screen so it no longer 1938 01:23:01,199 --> 01:23:04,310 had the contactus words here but we'll 1939 01:23:04,320 --> 01:23:05,390 put in 1940 01:23:05,400 --> 01:23:09,110 contact two underscores and field set 1941 01:23:09,120 --> 01:23:12,410 and this will be a border of none so it 1942 01:23:12,420 --> 01:23:14,209 will just remove that look even though 1943 01:23:14,219 --> 01:23:16,610 the field set is still there 1944 01:23:16,620 --> 01:23:19,669 after that contact two underscores 1945 01:23:19,679 --> 01:23:21,169 paragraph 1946 01:23:21,179 --> 01:23:24,830 here we'll set a margin to one m on the 1947 01:23:24,840 --> 01:23:27,290 top and bottom zero on the left and the 1948 01:23:27,300 --> 01:23:29,390 right that gives us some more space we 1949 01:23:29,400 --> 01:23:31,430 could certainly tell that difference 1950 01:23:31,440 --> 01:23:35,090 then the contact 200 scores label 1951 01:23:35,100 --> 01:23:38,870 here we'll say display of block 1952 01:23:38,880 --> 01:23:42,350 and font weight 1953 01:23:42,360 --> 01:23:45,050 of bold and we'll definitely see these 1954 01:23:45,060 --> 01:23:47,750 changes makes our form look better as 1955 01:23:47,760 --> 01:23:51,229 well now we'll select both 1956 01:23:51,239 --> 01:23:55,310 contact two underscores input and the 1957 01:23:55,320 --> 01:23:57,649 contact 200 scores 1958 01:23:57,659 --> 01:24:00,410 text area 1959 01:24:00,420 --> 01:24:05,270 for this we'll say padding 0.5 M you can 1960 01:24:05,280 --> 01:24:07,669 save and we'll see some change there the 1961 01:24:07,679 --> 01:24:09,649 inputs got a little larger 1962 01:24:09,659 --> 01:24:12,470 then we'll say a border Dash 1963 01:24:12,480 --> 01:24:15,770 radius of 15 pixels save and you can see 1964 01:24:15,780 --> 01:24:17,689 they're rounded I'm going to scroll now 1965 01:24:17,699 --> 01:24:19,430 that the form has grown a little larger 1966 01:24:19,440 --> 01:24:21,530 so we can see everything again 1967 01:24:21,540 --> 01:24:24,110 okay after the Border radius we're going 1968 01:24:24,120 --> 01:24:26,510 to have a border Dash 1969 01:24:26,520 --> 01:24:29,810 width of two pixels to just make it a 1970 01:24:29,820 --> 01:24:31,790 little larger around each of the inputs 1971 01:24:31,800 --> 01:24:36,410 and then a width of 100 percent and save 1972 01:24:36,420 --> 01:24:39,229 and now those inputs take up the full 1973 01:24:39,239 --> 01:24:40,729 width that they have available to them 1974 01:24:40,739 --> 01:24:43,010 our buttons down here still need a 1975 01:24:43,020 --> 01:24:45,410 little bit of help so let's say dot 1976 01:24:45,420 --> 01:24:48,590 contact 200 scores button 1977 01:24:48,600 --> 01:24:52,550 now we'll say padding 0.5 M for those 1978 01:24:52,560 --> 01:24:54,709 and save we can see the padding gets a 1979 01:24:54,719 --> 01:24:56,330 little larger for those now 1980 01:24:56,340 --> 01:24:59,209 and then we'll apply a border radius to 1981 01:24:59,219 --> 01:25:01,850 match the other border radius 15 pixels 1982 01:25:01,860 --> 01:25:04,310 and this should possibly be a variable 1983 01:25:04,320 --> 01:25:06,830 that I have not created but that would 1984 01:25:06,840 --> 01:25:08,570 allow us to just change it in one place 1985 01:25:08,580 --> 01:25:10,610 and it would change it for the form as 1986 01:25:10,620 --> 01:25:12,110 well as the button 1987 01:25:12,120 --> 01:25:14,870 underneath that we should have border 1988 01:25:14,880 --> 01:25:18,350 width and oh not border width on the 1989 01:25:18,360 --> 01:25:20,629 buttons I'm sorry let's have a 1990 01:25:20,639 --> 01:25:22,129 background 1991 01:25:22,139 --> 01:25:23,870 color 1992 01:25:23,880 --> 01:25:26,030 let's say VAR and let's pick that 1993 01:25:26,040 --> 01:25:28,189 highlight color so we can have a 1994 01:25:28,199 --> 01:25:30,169 different color on these buttons 1995 01:25:30,179 --> 01:25:33,229 that looks good except the font doesn't 1996 01:25:33,239 --> 01:25:35,450 look so great there so for the VAR let's 1997 01:25:35,460 --> 01:25:37,790 say the header color 1998 01:25:37,800 --> 01:25:40,250 and that should turn that white and make 1999 01:25:40,260 --> 01:25:41,810 it stand out just a little bit more 2000 01:25:41,820 --> 01:25:43,430 those buttons definitely look better 2001 01:25:43,440 --> 01:25:45,709 than they did before so a quick check 2002 01:25:45,719 --> 01:25:48,709 let's take the Border radius property in 2003 01:25:48,719 --> 01:25:51,110 control C and then I'm going to do Ctrl 2004 01:25:51,120 --> 01:25:53,930 F to search for it and let's see how 2005 01:25:53,940 --> 01:25:55,970 many times it has occurred 2006 01:25:55,980 --> 01:25:58,370 it's just twice here inside of our 2007 01:25:58,380 --> 01:26:01,430 project so if you wanted to you could 2008 01:26:01,440 --> 01:26:04,870 absolutely make a contact border radius 2009 01:26:04,880 --> 01:26:07,370 variable and then you would just change 2010 01:26:07,380 --> 01:26:09,649 it in one spot and of course the form 2011 01:26:09,659 --> 01:26:11,870 the inputs and the buttons would match 2012 01:26:11,880 --> 01:26:14,689 but you don't have to I did not clearly 2013 01:26:14,699 --> 01:26:16,550 at this point but that would be an 2014 01:26:16,560 --> 01:26:18,890 option so now before moving on to the 2015 01:26:18,900 --> 01:26:21,169 menu let's look at each section that 2016 01:26:21,179 --> 01:26:23,750 we've already styled for our page and 2017 01:26:23,760 --> 01:26:26,270 here's the full page so our about page 2018 01:26:26,280 --> 01:26:29,870 has a nice huge hero image and we see 2019 01:26:29,880 --> 01:26:32,990 the about LTS some information and our 2020 01:26:33,000 --> 01:26:35,990 Taco trivia that looks good the hours 2021 01:26:36,000 --> 01:26:38,990 page another nice hero section and a 2022 01:26:39,000 --> 01:26:41,570 simple bit of information about the 2023 01:26:41,580 --> 01:26:46,790 hours and let's look at the contact page 2024 01:26:46,800 --> 01:26:49,070 we scroll down we see the our location 2025 01:26:49,080 --> 01:26:51,470 information after the hero and the 2026 01:26:51,480 --> 01:26:53,870 contact form as well so that all looks 2027 01:26:53,880 --> 01:26:56,510 good I think the menu is still going to 2028 01:26:56,520 --> 01:26:58,610 need some work and we might apply 2029 01:26:58,620 --> 01:27:00,590 another style or two yet that we haven't 2030 01:27:00,600 --> 01:27:02,270 but we're making a lot of good progress 2031 01:27:02,280 --> 01:27:05,570 let's go ahead and control shift I to 2032 01:27:05,580 --> 01:27:07,610 see how everything's looking in a mobile 2033 01:27:07,620 --> 01:27:10,129 device as well so maybe we could choose 2034 01:27:10,139 --> 01:27:13,250 fit to window and we see this iPhone 6 7 2035 01:27:13,260 --> 01:27:17,810 and 8. let's look at the iPhone 5 and 2036 01:27:17,820 --> 01:27:19,910 that also looks good let's reload and 2037 01:27:19,920 --> 01:27:22,490 see how that animation works that works 2038 01:27:22,500 --> 01:27:24,410 as well so yes the menu needs some help 2039 01:27:24,420 --> 01:27:27,770 but how do the other Pages look oh the 2040 01:27:27,780 --> 01:27:30,470 other Pages still say the little taco 2041 01:27:30,480 --> 01:27:32,930 shop hours instead of just little taco 2042 01:27:32,940 --> 01:27:35,629 shop or something similar and again 2043 01:27:35,639 --> 01:27:38,149 we're on the smallest device that we 2044 01:27:38,159 --> 01:27:40,070 might ever see right now which is the 2045 01:27:40,080 --> 01:27:43,070 iPhone 5se things may have changed in 2046 01:27:43,080 --> 01:27:44,629 the future of course if you're viewing 2047 01:27:44,639 --> 01:27:48,649 this at a later time so here it wraps 2048 01:27:48,659 --> 01:27:50,570 the two lines on the header but anything 2049 01:27:50,580 --> 01:27:52,850 larger than the absolute smallest device 2050 01:27:52,860 --> 01:27:55,550 it looks like it won't as long as we 2051 01:27:55,560 --> 01:27:57,470 adjust our headers here instead of say 2052 01:27:57,480 --> 01:27:59,570 the little taco shop hours we can just 2053 01:27:59,580 --> 01:28:02,030 say little taco shop here it just says 2054 01:28:02,040 --> 01:28:05,270 contact us and on the about page once 2055 01:28:05,280 --> 01:28:07,669 again it just says little taco shop I 2056 01:28:07,679 --> 01:28:09,050 think we want our header to be 2057 01:28:09,060 --> 01:28:12,590 consistent and say little taco shop no 2058 01:28:12,600 --> 01:28:16,490 matter which page we go to so let's go 2059 01:28:16,500 --> 01:28:18,890 ahead and make those changes as well in 2060 01:28:18,900 --> 01:28:22,010 the HTML as we go back to the code so 2061 01:28:22,020 --> 01:28:24,950 I'm going to close this back out drag 2062 01:28:24,960 --> 01:28:27,709 this back to the right and bring the 2063 01:28:27,719 --> 01:28:30,050 code over to the full screen quickly 2064 01:28:30,060 --> 01:28:33,229 going to each HTML page will make sure 2065 01:28:33,239 --> 01:28:35,450 that the heading matches so it should 2066 01:28:35,460 --> 01:28:38,270 just say little taco shop where we have 2067 01:28:38,280 --> 01:28:42,410 the header H1 for each page scroll to 2068 01:28:42,420 --> 01:28:44,629 the top of the hours and we'll see what 2069 01:28:44,639 --> 01:28:46,669 we have here it says the little talk 2070 01:28:46,679 --> 01:28:48,830 Taco Shop hours so we'll go ahead and 2071 01:28:48,840 --> 01:28:51,709 remove the in hours 2072 01:28:51,719 --> 01:28:55,010 save that file the contact page 2073 01:28:55,020 --> 01:28:58,370 said contact us well we would prefer it 2074 01:28:58,380 --> 01:28:59,810 still say 2075 01:28:59,820 --> 01:29:01,370 little 2076 01:29:01,380 --> 01:29:05,030 Taco Shop here and of course the H2S 2077 01:29:05,040 --> 01:29:07,550 will handle the other labels on the page 2078 01:29:07,560 --> 01:29:12,290 so we had our location and below that we 2079 01:29:12,300 --> 01:29:14,510 should also have the contact form as 2080 01:29:14,520 --> 01:29:16,250 well there we go let's see what was here 2081 01:29:16,260 --> 01:29:18,970 yep our contact form so that looks good 2082 01:29:18,980 --> 01:29:23,390 and the about HTML should also just say 2083 01:29:23,400 --> 01:29:25,370 little taco shop and it does and of 2084 01:29:25,380 --> 01:29:28,010 course the titles of the page say more 2085 01:29:28,020 --> 01:29:30,050 about the page as well so about the 2086 01:29:30,060 --> 01:29:31,729 little taco shop here 2087 01:29:31,739 --> 01:29:34,010 the title at the top of this says 2088 01:29:34,020 --> 01:29:37,310 contact us LTS I guess to keep 2089 01:29:37,320 --> 01:29:41,149 consistency we could say about LTS on 2090 01:29:41,159 --> 01:29:43,010 this other page as we're going with that 2091 01:29:43,020 --> 01:29:45,830 abbreviation several places so 2092 01:29:45,840 --> 01:29:48,530 about LTS there the description can 2093 01:29:48,540 --> 01:29:51,050 still say about the little taco shop and 2094 01:29:51,060 --> 01:29:53,629 then hours let's see what the title is 2095 01:29:53,639 --> 01:29:56,450 here LTS hours that's great and of 2096 01:29:56,460 --> 01:29:58,550 course for the index we want the title 2097 01:29:58,560 --> 01:30:01,129 to be the little taco shop so everything 2098 01:30:01,139 --> 01:30:03,290 is looking good once again in the HTML 2099 01:30:03,300 --> 01:30:06,350 let's go back to the CSS and start 2100 01:30:06,360 --> 01:30:09,050 working on the menu now before applying 2101 01:30:09,060 --> 01:30:11,330 styles to the menu I want to pull up an 2102 01:30:11,340 --> 01:30:13,850 mdn reference so I'm just going to paste 2103 01:30:13,860 --> 01:30:16,070 this link in and I'll make sure it is in 2104 01:30:16,080 --> 01:30:18,290 the course materials as well so the 2105 01:30:18,300 --> 01:30:21,649 course resources but here on the grid 2106 01:30:21,659 --> 01:30:24,169 layout and accessibility page in mdn it 2107 01:30:24,179 --> 01:30:26,810 says grid and the dangers of markup 2108 01:30:26,820 --> 01:30:29,270 flattening so what we're going to be 2109 01:30:29,280 --> 01:30:33,530 doing is taking the HTML table that's in 2110 01:30:33,540 --> 01:30:36,169 the index page that comprises the menu 2111 01:30:36,179 --> 01:30:38,570 that is displayed and we're going to 2112 01:30:38,580 --> 01:30:42,110 make it a grid too often many people 2113 01:30:42,120 --> 01:30:44,870 just use div elements to make their grid 2114 01:30:44,880 --> 01:30:47,990 and a grid knee needs that flat 2115 01:30:48,000 --> 01:30:50,270 structure essentially for the grid items 2116 01:30:50,280 --> 01:30:53,629 so it can review or refer to each grid 2117 01:30:53,639 --> 01:30:56,510 item in that regard because it's not 2118 01:30:56,520 --> 01:30:59,209 going to look at sub grid items subgrid 2119 01:30:59,219 --> 01:31:01,129 is a proposal they're discussing here 2120 01:31:01,139 --> 01:31:04,070 but it's not implemented as well so we 2121 01:31:04,080 --> 01:31:06,590 want to avoid that dangers I'm going to 2122 01:31:06,600 --> 01:31:09,770 pull the code back over and bring up the 2123 01:31:09,780 --> 01:31:11,570 index.html 2124 01:31:11,580 --> 01:31:14,390 and we can see our table and right now 2125 01:31:14,400 --> 01:31:17,750 the table is not flat notice how it has 2126 01:31:17,760 --> 01:31:20,510 parent elements like the T head element 2127 01:31:20,520 --> 01:31:23,030 and of course table row elements and 2128 01:31:23,040 --> 01:31:27,890 then inside we get the th and TD 2129 01:31:27,900 --> 01:31:30,169 elements for those table cells whether 2130 01:31:30,179 --> 01:31:32,330 they're a header element or they're just 2131 01:31:32,340 --> 01:31:35,570 a table data element and so grid doesn't 2132 01:31:35,580 --> 01:31:38,209 work that way it needs flat elements but 2133 01:31:38,219 --> 01:31:40,250 we can still work with this we don't 2134 01:31:40,260 --> 01:31:43,250 want to remove the semantic markup of a 2135 01:31:43,260 --> 01:31:45,410 table to further illustrate my point 2136 01:31:45,420 --> 01:31:47,810 instead of just having this here 2137 01:31:47,820 --> 01:31:50,570 underneath I'm going to paste in what 2138 01:31:50,580 --> 01:31:53,450 you might see a table constructed of for 2139 01:31:53,460 --> 01:31:57,770 a grid using divs now this is a 2140 01:31:57,780 --> 01:32:00,770 flattened markup table essentially that 2141 01:32:00,780 --> 01:32:03,110 would be applied to grid and notice how 2142 01:32:03,120 --> 01:32:06,410 I just use divs and applied all of these 2143 01:32:06,420 --> 01:32:10,010 classes and this is what you do not want 2144 01:32:10,020 --> 01:32:12,590 to do but I guarantee you will probably 2145 01:32:12,600 --> 01:32:15,350 see this somewhere when a grid is 2146 01:32:15,360 --> 01:32:17,750 applied and you see a table on the page 2147 01:32:17,760 --> 01:32:20,209 I'm going to press Ctrl Z though because 2148 01:32:20,219 --> 01:32:22,430 this once again is not what we want to 2149 01:32:22,440 --> 01:32:24,950 do and you can tell by this markup it is 2150 01:32:24,960 --> 01:32:27,110 not flattened however there is a 2151 01:32:27,120 --> 01:32:29,930 solution for this and it is a display 2152 01:32:29,940 --> 01:32:33,050 setting that we can put in the CSS that 2153 01:32:33,060 --> 01:32:37,010 will help us convert our table to a grid 2154 01:32:37,020 --> 01:32:38,750 I'm going to drag this back to the left 2155 01:32:38,760 --> 01:32:41,030 so we can look at one more web page and 2156 01:32:41,040 --> 01:32:42,890 I will link to this as well in the 2157 01:32:42,900 --> 01:32:45,470 course resources and it's the can I use 2158 01:32:45,480 --> 01:32:48,310 web page and I'm looking at display 2159 01:32:48,320 --> 01:32:50,870 contents notice what it says about 2160 01:32:50,880 --> 01:32:53,570 display contents it causes an element's 2161 01:32:53,580 --> 01:32:56,270 children to appear as if they were the 2162 01:32:56,280 --> 01:32:58,930 direct Children of the elements parent 2163 01:32:58,940 --> 01:33:01,850 essentially that ignores that parent 2164 01:33:01,860 --> 01:33:05,209 element and that will flatten the 2165 01:33:05,219 --> 01:33:07,610 elements for grid to use without 2166 01:33:07,620 --> 01:33:10,129 removing those elements so we just need 2167 01:33:10,139 --> 01:33:12,709 to put display content events on some of 2168 01:33:12,719 --> 01:33:15,050 these parent elements that grid will not 2169 01:33:15,060 --> 01:33:18,229 use it says this can be a useful or this 2170 01:33:18,239 --> 01:33:19,970 can be useful when a wrapper element 2171 01:33:19,980 --> 01:33:23,090 should be ignored when using CSS Grid or 2172 01:33:23,100 --> 01:33:25,910 similar layout techniques and then when 2173 01:33:25,920 --> 01:33:28,430 we scroll and look at everything as far 2174 01:33:28,440 --> 01:33:30,169 as how well it is applied now let me 2175 01:33:30,179 --> 01:33:32,030 pull this out to the full page so we can 2176 01:33:32,040 --> 01:33:34,729 see everything from can I use you can 2177 01:33:34,739 --> 01:33:37,610 see it's got basically 95 percent 2178 01:33:37,620 --> 01:33:40,189 acceptance here and we're not going to 2179 01:33:40,199 --> 01:33:42,950 worry about Internet Explorer again and 2180 01:33:42,960 --> 01:33:45,709 most every other major browser is 2181 01:33:45,719 --> 01:33:48,649 accepting that use here Opera Mini is 2182 01:33:48,659 --> 01:33:51,110 one that's not an UC browser for Android 2183 01:33:51,120 --> 01:33:55,669 but Chrome Safari Safari on iOS Chrome 2184 01:33:55,679 --> 01:33:58,669 for Android we're good in almost every 2185 01:33:58,679 --> 01:34:00,950 major use case here so I'm comfortable 2186 01:34:00,960 --> 01:34:04,729 with using that as we switch our HTML 2187 01:34:04,739 --> 01:34:07,790 table over to a grid and again I will 2188 01:34:07,800 --> 01:34:09,950 link to both of those for you back to 2189 01:34:09,960 --> 01:34:13,490 our website here back to the right and 2190 01:34:13,500 --> 01:34:16,430 now I will pull this back over to look 2191 01:34:16,440 --> 01:34:18,830 at our code in a full screen so we can 2192 01:34:18,840 --> 01:34:20,870 get the ideas of what we're doing with 2193 01:34:20,880 --> 01:34:23,629 the table as I did with the contact and 2194 01:34:23,639 --> 01:34:26,629 about pages I applied a separate class 2195 01:34:26,639 --> 01:34:28,610 here to refer to as the parent and I'm 2196 01:34:28,620 --> 01:34:30,050 going to do the same here it's going to 2197 01:34:30,060 --> 01:34:33,229 be the menu class and then I will refer 2198 01:34:33,239 --> 01:34:37,070 to these again with bem notation but I'm 2199 01:34:37,080 --> 01:34:40,310 going to refer to menu as the parent so 2200 01:34:40,320 --> 01:34:42,770 here we're going to have a class I'm 2201 01:34:42,780 --> 01:34:44,870 going to set this equal to menu 200 2202 01:34:44,880 --> 01:34:48,530 scores and H2 for the r menu heading 2203 01:34:48,540 --> 01:34:50,870 then the table itself 2204 01:34:50,880 --> 01:34:54,109 say class and then menu two underscores 2205 01:34:54,119 --> 01:34:56,270 and container because this is going to 2206 01:34:56,280 --> 01:34:59,090 contain our menu for the caption for the 2207 01:34:59,100 --> 01:35:00,109 table 2208 01:35:00,119 --> 01:35:03,350 we'll use this class and set this to off 2209 01:35:03,360 --> 01:35:05,570 screen our utility class once again as 2210 01:35:05,580 --> 01:35:08,330 we will not want to view this caption on 2211 01:35:08,340 --> 01:35:10,850 the page but we do want to retain it for 2212 01:35:10,860 --> 01:35:13,490 accessibility now we will be setting the 2213 01:35:13,500 --> 01:35:16,070 table head and the TR element the table 2214 01:35:16,080 --> 01:35:18,950 body element and the table foot element 2215 01:35:18,960 --> 01:35:22,850 to that display contents so grid 2216 01:35:22,860 --> 01:35:25,310 actually ignores those the content we 2217 01:35:25,320 --> 01:35:27,169 want for the grid and the content that 2218 01:35:27,179 --> 01:35:28,790 we actually want screen readers to read 2219 01:35:28,800 --> 01:35:33,709 will be inside of the th and TD elements 2220 01:35:33,719 --> 01:35:35,990 so that's where we'll apply the classes 2221 01:35:36,000 --> 01:35:39,709 here so all of the opening THS that we 2222 01:35:39,719 --> 01:35:42,590 have here I'm going to select 2223 01:35:42,600 --> 01:35:45,229 three right there and we might even have 2224 01:35:45,239 --> 01:35:47,149 a fourth but I think we just want three 2225 01:35:47,159 --> 01:35:50,450 right now for the menu headers so we'll 2226 01:35:50,460 --> 01:35:52,070 take this over with the arrow to the 2227 01:35:52,080 --> 01:35:54,950 right and I'll say class equals and this 2228 01:35:54,960 --> 01:35:57,950 is going to be menu two underscores and 2229 01:35:57,960 --> 01:36:00,350 header now something else I want to do 2230 01:36:00,360 --> 01:36:02,870 here one thing I noticed and I must have 2231 01:36:02,880 --> 01:36:06,290 done this in the HTML course as well so 2232 01:36:06,300 --> 01:36:08,570 if you went through that you can apply 2233 01:36:08,580 --> 01:36:12,229 the scope column to this first cell as 2234 01:36:12,239 --> 01:36:14,330 well and I'm not sure why I didn't 2235 01:36:14,340 --> 01:36:15,770 before it might have just been an 2236 01:36:15,780 --> 01:36:18,950 oversight the second thing is we were 2237 01:36:18,960 --> 01:36:20,330 looking once again at how to do 2238 01:36:20,340 --> 01:36:22,550 abbreviations in HTML but I want the 2239 01:36:22,560 --> 01:36:24,890 full word quantity here now so I'm going 2240 01:36:24,900 --> 01:36:26,930 to remove the abbreviation 2241 01:36:26,940 --> 01:36:30,410 and just have the word quantity in the 2242 01:36:30,420 --> 01:36:34,250 second th cell for the table okay after 2243 01:36:34,260 --> 01:36:36,770 we have got the menu headers now we're 2244 01:36:36,780 --> 01:36:39,950 going to have menu item classes so we 2245 01:36:39,960 --> 01:36:43,010 will come through here and then whether 2246 01:36:43,020 --> 01:36:46,250 it is the TH or the TD in these other 2247 01:36:46,260 --> 01:36:48,709 cells I'm going to make it a menu item 2248 01:36:48,719 --> 01:36:51,229 so I'm going to start off with the 2249 01:36:51,239 --> 01:36:55,850 remainder of these table data cells 2250 01:36:55,860 --> 01:36:57,709 because there are several I'm pressing 2251 01:36:57,719 --> 01:37:01,390 Ctrl D to get all of them selected 2252 01:37:01,400 --> 01:37:04,310 and I think that's going to be it nope 2253 01:37:04,320 --> 01:37:06,649 one more maybe there we go one more so 2254 01:37:06,659 --> 01:37:09,290 at the end of that I'll arrow to the 2255 01:37:09,300 --> 01:37:11,149 right I'll put class 2256 01:37:11,159 --> 01:37:13,250 and I'm going to set this equal to menu 2257 01:37:13,260 --> 01:37:16,310 two underscores and item okay scrolling 2258 01:37:16,320 --> 01:37:18,649 back up to where we have the crunchy and 2259 01:37:18,659 --> 01:37:20,209 then of course we have the soft label 2260 01:37:20,219 --> 01:37:21,950 down here we're going to apply classes 2261 01:37:21,960 --> 01:37:24,410 here as well I'll have a class I'm going 2262 01:37:24,420 --> 01:37:26,149 to set this equal to menu two 2263 01:37:26,159 --> 01:37:28,010 underscores item and then I want a 2264 01:37:28,020 --> 01:37:29,629 second class here that is just going to 2265 01:37:29,639 --> 01:37:32,149 be menu two underscores and CR for 2266 01:37:32,159 --> 01:37:34,430 crunchy as we'll need to refer to that 2267 01:37:34,440 --> 01:37:38,030 later for the grid possibly and then for 2268 01:37:38,040 --> 01:37:40,010 soft we're going to do the same thing so 2269 01:37:40,020 --> 01:37:41,750 it's going to be a class 2270 01:37:41,760 --> 01:37:44,570 equals menu two underscores item and 2271 01:37:44,580 --> 01:37:48,109 then menu 200 scores SF for soft and 2272 01:37:48,119 --> 01:37:49,910 finally let's scroll down to the very 2273 01:37:49,920 --> 01:37:52,310 bottom where we have chips and salsa it 2274 01:37:52,320 --> 01:37:55,490 spans three columns so besides menu item 2275 01:37:55,500 --> 01:37:57,950 here I also want menu two underscores 2276 01:37:57,960 --> 01:38:01,370 and Cs and I believe I have now applied 2277 01:38:01,380 --> 01:38:03,709 all of the classes that I wanted to 2278 01:38:03,719 --> 01:38:06,770 apply for the menu itself one other 2279 01:38:06,780 --> 01:38:08,689 thing I am going to do while I'm here in 2280 01:38:08,699 --> 01:38:11,870 the HTML is remove this line break and 2281 01:38:11,880 --> 01:38:14,209 then we have a paragraph here and I'm 2282 01:38:14,219 --> 01:38:17,330 going to apply our utility class of 2283 01:38:17,340 --> 01:38:18,890 Center 2284 01:38:18,900 --> 01:38:21,410 to this paragraph that has our back to 2285 01:38:21,420 --> 01:38:23,330 top link that should appear underneath 2286 01:38:23,340 --> 01:38:25,189 the table let's go back to our style 2287 01:38:25,199 --> 01:38:27,890 sheet and let's drag this to the left so 2288 01:38:27,900 --> 01:38:30,109 we can see changes applied to the table 2289 01:38:30,119 --> 01:38:32,870 now as we apply these Styles I'll start 2290 01:38:32,880 --> 01:38:35,330 by scrolling up so we can start at the 2291 01:38:35,340 --> 01:38:38,209 very top of our available space and I'm 2292 01:38:38,219 --> 01:38:40,490 going to put in a label for the style 2293 01:38:40,500 --> 01:38:43,310 sheet for the menu 2294 01:38:43,320 --> 01:38:45,350 now underneath this the first thing I'm 2295 01:38:45,360 --> 01:38:47,930 going to do is select the T head element 2296 01:38:47,940 --> 01:38:51,350 the t-body element the T foot element 2297 01:38:51,360 --> 01:38:54,109 and the TR element and this is the only 2298 01:38:54,119 --> 01:38:56,450 table in the project so I feel safe 2299 01:38:56,460 --> 01:38:59,330 doing this without classes if it was a 2300 01:38:59,340 --> 01:39:01,970 larger project I might have made a 2301 01:39:01,980 --> 01:39:05,030 display contents class and then applied 2302 01:39:05,040 --> 01:39:07,729 this to each that class to each one of 2303 01:39:07,739 --> 01:39:09,470 these elements so here I'm going to say 2304 01:39:09,480 --> 01:39:13,189 display contents it also took those 2305 01:39:13,199 --> 01:39:16,609 parents out of the flow so now even 2306 01:39:16,619 --> 01:39:19,609 though they're still in the page it made 2307 01:39:19,619 --> 01:39:22,430 them all run into one line so we will 2308 01:39:22,440 --> 01:39:24,229 definitely see changes now as we make 2309 01:39:24,239 --> 01:39:25,250 the table 2310 01:39:25,260 --> 01:39:28,129 so or the grid I should say 2311 01:39:28,139 --> 01:39:30,530 let's create that menu container class 2312 01:39:30,540 --> 01:39:33,229 if you remember this is applied to the 2313 01:39:33,239 --> 01:39:35,149 table element itself so we'll say 2314 01:39:35,159 --> 01:39:38,149 display grid and if I save after each 2315 01:39:38,159 --> 01:39:40,490 change we should definitely see changes 2316 01:39:40,500 --> 01:39:43,370 as we go so now just by applying display 2317 01:39:43,380 --> 01:39:46,729 grid it changed how that viewed after 2318 01:39:46,739 --> 01:39:49,850 our display contents was applied now 2319 01:39:49,860 --> 01:39:52,609 let's say grid Dash template Dash 2320 01:39:52,619 --> 01:39:55,189 columns and we're going to use the 2321 01:39:55,199 --> 01:39:56,570 repeat function 2322 01:39:56,580 --> 01:39:58,609 we want three columns 2323 01:39:58,619 --> 01:40:02,510 each with one fragment so let's save now 2324 01:40:02,520 --> 01:40:04,729 and we once again see changes to that 2325 01:40:04,739 --> 01:40:07,910 table now let's go ahead and map out our 2326 01:40:07,920 --> 01:40:08,810 grid 2327 01:40:08,820 --> 01:40:10,430 template 2328 01:40:10,440 --> 01:40:13,669 areas but we really haven't assigned any 2329 01:40:13,679 --> 01:40:16,129 specific classes like those that we 2330 01:40:16,139 --> 01:40:18,590 applied to crunchy or soft so it might 2331 01:40:18,600 --> 01:40:20,510 still look a little strange when we do 2332 01:40:20,520 --> 01:40:24,229 this essentially though we only need to 2333 01:40:24,239 --> 01:40:27,410 assign the labels to the ones that are 2334 01:40:27,420 --> 01:40:29,450 going to take up more than one grid 2335 01:40:29,460 --> 01:40:32,330 Square so other in other words I can 2336 01:40:32,340 --> 01:40:33,770 just kind of create the other labels 2337 01:40:33,780 --> 01:40:35,450 without assigning them to elements so 2338 01:40:35,460 --> 01:40:39,590 I'm going to have HD1 HD2 and HD3 I 2339 01:40:39,600 --> 01:40:41,870 won't end up assigning those to classes 2340 01:40:41,880 --> 01:40:44,890 at all then I'm going to have cr 2341 01:40:44,900 --> 01:40:48,109 1 this is crunchy as you might guess the 2342 01:40:48,119 --> 01:40:50,750 abbreviation HD was for header and then 2343 01:40:50,760 --> 01:40:54,290 crunchy one price for one taco now I'm 2344 01:40:54,300 --> 01:40:57,649 just going to control alt and the down 2345 01:40:57,659 --> 01:41:00,709 arrow a couple of times because one here 2346 01:41:00,719 --> 01:41:05,209 is going to get changed to 2 and then 1 2347 01:41:05,219 --> 01:41:08,030 here is going to get changed to three 2348 01:41:08,040 --> 01:41:10,970 okay after that let's create one line 2349 01:41:10,980 --> 01:41:13,250 here for soft so we'll have soft taco 2350 01:41:13,260 --> 01:41:18,590 soft one and then soft one price after 2351 01:41:18,600 --> 01:41:19,850 that 2352 01:41:19,860 --> 01:41:22,430 shift alt down arrow shift alt down 2353 01:41:22,440 --> 01:41:25,970 arrow select one control D change those 2354 01:41:25,980 --> 01:41:28,790 to a two select one Ctrl D change those 2355 01:41:28,800 --> 01:41:30,109 to a three 2356 01:41:30,119 --> 01:41:33,350 and save and so now we have the crunchy 2357 01:41:33,360 --> 01:41:36,590 rows and the soft rows and the header so 2358 01:41:36,600 --> 01:41:38,149 at the very end we're going to have the 2359 01:41:38,159 --> 01:41:41,570 chips and salsa row so cscs CS because 2360 01:41:41,580 --> 01:41:45,169 it had a row span of three after that we 2361 01:41:45,179 --> 01:41:47,390 have essentially mapped out those grid 2362 01:41:47,400 --> 01:41:49,189 areas it doesn't look like we want it to 2363 01:41:49,199 --> 01:41:51,109 yet though because we haven't assigned 2364 01:41:51,119 --> 01:41:55,370 that crunchy label to the crunchy label 2365 01:41:55,380 --> 01:41:57,830 that we or class that we have and the 2366 01:41:57,840 --> 01:41:59,870 soft label to the soft class or the 2367 01:41:59,880 --> 01:42:02,209 chips and salsa label to that class so 2368 01:42:02,219 --> 01:42:04,490 we still need to add those likewise 2369 01:42:04,500 --> 01:42:08,390 let's go ahead and add a small Gap 0.1 2370 01:42:08,400 --> 01:42:11,510 em so as we discussed before that could 2371 01:42:11,520 --> 01:42:14,750 be as small as 1.6 pixels or about as 2372 01:42:14,760 --> 01:42:16,970 large as 2.4 depending on the font size 2373 01:42:16,980 --> 01:42:20,149 applied then let's give a margin bottom 2374 01:42:20,159 --> 01:42:23,030 of one in as well now let's apply some 2375 01:42:23,040 --> 01:42:25,490 of those labels so our grid looks a 2376 01:42:25,500 --> 01:42:27,050 little bit better so we'll start out 2377 01:42:27,060 --> 01:42:30,050 with the menu two underscore CR for 2378 01:42:30,060 --> 01:42:32,930 crunchy and here we apply the grid area 2379 01:42:32,940 --> 01:42:36,709 label of CR when we save we don't see 2380 01:42:36,719 --> 01:42:38,870 much of a change yet but I hope to in 2381 01:42:38,880 --> 01:42:40,129 the near future 2382 01:42:40,139 --> 01:42:44,390 menu two underscores and SF for soft and 2383 01:42:44,400 --> 01:42:46,550 here we'll say grid area 2384 01:42:46,560 --> 01:42:47,990 SF 2385 01:42:48,000 --> 01:42:50,090 save again so we see a little bit more 2386 01:42:50,100 --> 01:42:51,229 of a change 2387 01:42:51,239 --> 01:42:53,450 and then we'll say 2388 01:42:53,460 --> 01:42:57,050 menu two underscores CS this will be 2389 01:42:57,060 --> 01:43:00,290 grid area CS 2390 01:43:00,300 --> 01:43:02,990 and save we definitely have seen some 2391 01:43:03,000 --> 01:43:04,850 changes in the Grid it's not what we 2392 01:43:04,860 --> 01:43:06,709 want yet but we're getting there let's 2393 01:43:06,719 --> 01:43:08,209 make the color 2394 01:43:08,219 --> 01:43:13,070 here a VAR Dash Dash 2395 01:43:13,080 --> 01:43:16,790 highlight color for this 2396 01:43:16,800 --> 01:43:19,189 Okay so we've got a chips and salsa that 2397 01:43:19,199 --> 01:43:21,649 is now green and then we'll say font 2398 01:43:21,659 --> 01:43:22,850 weight 2399 01:43:22,860 --> 01:43:25,870 bold as well and save that looks good 2400 01:43:25,880 --> 01:43:28,850 now let's go ahead and apply some of 2401 01:43:28,860 --> 01:43:32,090 this to the other areas as well so let's 2402 01:43:32,100 --> 01:43:33,830 say 2403 01:43:33,840 --> 01:43:40,490 menu 200 score CR and menu 200 scores SF 2404 01:43:40,500 --> 01:43:42,950 here I'm going to take these two and 2405 01:43:42,960 --> 01:43:44,330 maybe I should have organized this 2406 01:43:44,340 --> 01:43:46,370 differently on my thought pattern but I 2407 01:43:46,380 --> 01:43:48,530 want both of those there as well however 2408 01:43:48,540 --> 01:43:50,570 there's also some other styles so I want 2409 01:43:50,580 --> 01:43:52,310 a height 2410 01:43:52,320 --> 01:43:54,830 of 100 percent 2411 01:43:54,840 --> 01:43:57,649 as it takes up some of that extra space 2412 01:43:57,659 --> 01:44:00,169 why is that not applying to crunchy I 2413 01:44:00,179 --> 01:44:01,790 may have to go back and see what I did 2414 01:44:01,800 --> 01:44:04,669 wrong there but let's go ahead and say 2415 01:44:04,679 --> 01:44:08,990 these are also grids 2416 01:44:09,000 --> 01:44:12,950 and then we want to place the content 2417 01:44:12,960 --> 01:44:15,229 Center which is the point of making them 2418 01:44:15,239 --> 01:44:17,030 a grid so we could do that yes the 2419 01:44:17,040 --> 01:44:19,550 crunchy style is not being applied so we 2420 01:44:19,560 --> 01:44:22,129 have menu CR 2421 01:44:22,139 --> 01:44:24,350 and that is what needs to be applied 2422 01:44:24,360 --> 01:44:27,229 there let's go back and look at our 2423 01:44:27,239 --> 01:44:31,129 HTML and see if that class was applied 2424 01:44:31,139 --> 01:44:35,570 properly to the CR section oh it's just 2425 01:44:35,580 --> 01:44:38,270 one underscore it needs to be two 2426 01:44:38,280 --> 01:44:40,550 save and now 2427 01:44:40,560 --> 01:44:43,729 go back to style and bring this over and 2428 01:44:43,739 --> 01:44:45,830 now crunchy and soft both have that same 2429 01:44:45,840 --> 01:44:47,510 style and everything is aligned better 2430 01:44:47,520 --> 01:44:49,430 that makes more sense as to why it 2431 01:44:49,440 --> 01:44:51,109 wasn't coming together quite as quickly 2432 01:44:51,119 --> 01:44:53,090 as I expected and before we move on 2433 01:44:53,100 --> 01:44:55,189 let's see if we could apply this 2434 01:44:55,199 --> 01:44:56,990 differently now we still need the grid 2435 01:44:57,000 --> 01:44:59,990 area here for menu CS but we could 2436 01:45:00,000 --> 01:45:02,629 possibly remove these 2437 01:45:02,639 --> 01:45:05,570 and let's see if we could include 2438 01:45:05,580 --> 01:45:08,870 the dot menu to underscore CS without 2439 01:45:08,880 --> 01:45:11,149 really making something strange there I 2440 01:45:11,159 --> 01:45:12,709 think that's fine and it's a little more 2441 01:45:12,719 --> 01:45:14,689 efficient we aren't repeating those two 2442 01:45:14,699 --> 01:45:16,310 lines and now let's look at these 2443 01:45:16,320 --> 01:45:18,470 headers and we could possibly add those 2444 01:45:18,480 --> 01:45:20,510 in as well so one more comma and we'll 2445 01:45:20,520 --> 01:45:24,770 say menu 200 scores header and save and 2446 01:45:24,780 --> 01:45:26,450 yes I think that style is going to work 2447 01:45:26,460 --> 01:45:29,450 out as well however we still need menu 2448 01:45:29,460 --> 01:45:33,229 to underscores header because we want to 2449 01:45:33,239 --> 01:45:37,490 add a border Dash bottom to each of 2450 01:45:37,500 --> 01:45:40,370 those so we'll say VAR and bring in our 2451 01:45:40,380 --> 01:45:43,609 borders variable that we have created 2452 01:45:43,619 --> 01:45:46,729 and save so now we have a border across 2453 01:45:46,739 --> 01:45:48,709 each one of those headings now let's 2454 01:45:48,719 --> 01:45:50,750 scroll for some more room and we're 2455 01:45:50,760 --> 01:45:53,209 going to select that menu header again 2456 01:45:53,219 --> 01:45:55,910 like it's spell menu 200 scores header 2457 01:45:55,920 --> 01:45:59,030 and then we also want menu 200 scores 2458 01:45:59,040 --> 01:46:00,229 item 2459 01:46:00,239 --> 01:46:02,810 now for both of these we want a width of 2460 01:46:02,820 --> 01:46:04,490 100 percent 2461 01:46:04,500 --> 01:46:08,090 and then we'll set a padding to one em 2462 01:46:08,100 --> 01:46:11,930 and let's put a border 2463 01:46:11,940 --> 01:46:14,990 and then let's set medium 2464 01:46:15,000 --> 01:46:19,129 Ridge and we'll set the VAR equal to 2465 01:46:19,139 --> 01:46:23,390 border color there we go 2466 01:46:23,400 --> 01:46:25,129 and when we save that we've got borders 2467 01:46:25,139 --> 01:46:27,290 around everything so in that regard 2468 01:46:27,300 --> 01:46:31,189 maybe we could remove that border bottom 2469 01:46:31,199 --> 01:46:33,830 and still be good and we save yes and it 2470 01:46:33,840 --> 01:46:35,450 looks the same so one was just 2471 01:46:35,460 --> 01:46:36,950 overriding the other and now let's 2472 01:46:36,960 --> 01:46:41,390 select just the menu items 2473 01:46:41,400 --> 01:46:45,050 and here we'll put a display of grid and 2474 01:46:45,060 --> 01:46:48,169 we will once again place the content in 2475 01:46:48,179 --> 01:46:50,270 the center and when we save that looks 2476 01:46:50,280 --> 01:46:52,490 good as well now we didn't apply that 2477 01:46:52,500 --> 01:46:54,830 above to the menu item where we set the 2478 01:46:54,840 --> 01:46:57,109 same grid and Center because we also 2479 01:46:57,119 --> 01:46:59,030 really didn't want to apply these other 2480 01:46:59,040 --> 01:47:02,090 styles to those menu items we wanted to 2481 01:47:02,100 --> 01:47:04,970 keep them this separate color and not 2482 01:47:04,980 --> 01:47:07,370 have the font be bold but that's looking 2483 01:47:07,380 --> 01:47:09,290 pretty good right now as far as 2484 01:47:09,300 --> 01:47:12,410 converting this menu table and leaving 2485 01:47:12,420 --> 01:47:15,709 that semantic HTML in place we can apply 2486 01:47:15,719 --> 01:47:18,350 some final touches to this menu as well 2487 01:47:18,360 --> 01:47:21,470 but earlier when we were referencing the 2488 01:47:21,480 --> 01:47:24,649 Border Dash radius property we said we 2489 01:47:24,659 --> 01:47:27,350 were only doing it twice and therefore I 2490 01:47:27,360 --> 01:47:28,850 didn't go ahead and create a variable 2491 01:47:28,860 --> 01:47:31,490 but now I want to use it again and so 2492 01:47:31,500 --> 01:47:33,709 now that I'm using it in another place I 2493 01:47:33,719 --> 01:47:35,330 definitely do want to create that 2494 01:47:35,340 --> 01:47:37,430 variable so I'm going to scroll back up 2495 01:47:37,440 --> 01:47:40,609 to the variables section and underneath 2496 01:47:40,619 --> 01:47:41,689 borders 2497 01:47:41,699 --> 01:47:45,470 I'm going to create a border Dash radius 2498 01:47:45,480 --> 01:47:49,070 variable and just set that to 15 pixels 2499 01:47:49,080 --> 01:47:51,410 so now that I've created that we can use 2500 01:47:51,420 --> 01:47:54,590 that variable in all of the places that 2501 01:47:54,600 --> 01:47:57,530 we are applying a border radius so now 2502 01:47:57,540 --> 01:48:01,370 let's go ahead and change these two that 2503 01:48:01,380 --> 01:48:03,890 currently exist to VAR 2504 01:48:03,900 --> 01:48:08,270 Dash border radius there we go 2505 01:48:08,280 --> 01:48:10,910 and save that so no other changes will 2506 01:48:10,920 --> 01:48:13,609 be made there but now we can apply these 2507 01:48:13,619 --> 01:48:16,729 final touches to our menu table as well 2508 01:48:16,739 --> 01:48:18,770 and we can use that border radius 2509 01:48:18,780 --> 01:48:21,470 property now I could apply classes to 2510 01:48:21,480 --> 01:48:23,570 the header and the footer but I'm not 2511 01:48:23,580 --> 01:48:26,090 and they are being ignored for some 2512 01:48:26,100 --> 01:48:28,250 things concerning the grid when we set 2513 01:48:28,260 --> 01:48:31,550 that to display contents however they 2514 01:48:31,560 --> 01:48:33,590 are still part of the document so we can 2515 01:48:33,600 --> 01:48:35,629 still use them for selectors so I'm 2516 01:48:35,639 --> 01:48:38,270 going to select the T head and then the 2517 01:48:38,280 --> 01:48:41,750 th inside of the T head and say the 2518 01:48:41,760 --> 01:48:44,149 first child which should be the very 2519 01:48:44,159 --> 01:48:47,390 first cell that says tacos and here 2520 01:48:47,400 --> 01:48:50,209 we're going to set the Border Dash top 2521 01:48:50,219 --> 01:48:55,010 Dash left Dash radius and now we'll use 2522 01:48:55,020 --> 01:48:56,270 our 2523 01:48:56,280 --> 01:48:59,629 border radius variable once again 2524 01:48:59,639 --> 01:49:02,510 and when we save we can see this now has 2525 01:49:02,520 --> 01:49:05,990 the Border radius of 15 pixels so 2526 01:49:06,000 --> 01:49:08,450 likewise I'm going to just copy this 2527 01:49:08,460 --> 01:49:10,070 down so I don't have to retype 2528 01:49:10,080 --> 01:49:12,350 everything shift alt and the down arrow 2529 01:49:12,360 --> 01:49:16,850 this is going to be the T head th last 2530 01:49:16,860 --> 01:49:19,910 child and instead of the top left it's 2531 01:49:19,920 --> 01:49:22,430 going to be the top right everything 2532 01:49:22,440 --> 01:49:24,470 else should be the same and now we see 2533 01:49:24,480 --> 01:49:26,510 that same border radius applied over 2534 01:49:26,520 --> 01:49:30,109 here to the right finally we have this 2535 01:49:30,119 --> 01:49:33,709 one large chips and salsa cell along the 2536 01:49:33,719 --> 01:49:36,709 bottom of this table for the menu so 2537 01:49:36,719 --> 01:49:40,609 here this will be the T foot and then 2538 01:49:40,619 --> 01:49:43,550 we'll select the table data cell inside 2539 01:49:43,560 --> 01:49:46,550 here we can set the Border Dash bottom 2540 01:49:46,560 --> 01:49:50,990 Dash left Dash radius and this will once 2541 01:49:51,000 --> 01:49:54,290 again be VAR two dashes border and use 2542 01:49:54,300 --> 01:49:56,510 that border radius variable 2543 01:49:56,520 --> 01:49:59,870 and once we save this we see that 2544 01:49:59,880 --> 01:50:02,570 applied to the left corner so it just 2545 01:50:02,580 --> 01:50:04,129 needs to be applied to the right corner 2546 01:50:04,139 --> 01:50:07,970 so inside this same selector here for T 2547 01:50:07,980 --> 01:50:12,649 foot TD we can now also apply this 2548 01:50:12,659 --> 01:50:15,589 to the right corner and save and there 2549 01:50:15,599 --> 01:50:17,570 we have our rounded corners for our 2550 01:50:17,580 --> 01:50:19,669 table as well we're getting near the end 2551 01:50:19,679 --> 01:50:21,470 but there is a little more to do let's 2552 01:50:21,480 --> 01:50:23,629 go ahead and look at the page in full 2553 01:50:23,639 --> 01:50:25,970 screen or at the full site now and 2554 01:50:25,980 --> 01:50:27,830 here's our back to top we can click we 2555 01:50:27,840 --> 01:50:29,510 have the smooth scrolling that goes 2556 01:50:29,520 --> 01:50:32,030 there we can go to the hours page 2557 01:50:32,040 --> 01:50:34,669 everything looks pretty good there the 2558 01:50:34,679 --> 01:50:37,729 contact form everything is good here 2559 01:50:37,739 --> 01:50:41,629 the about page and the trivia that's all 2560 01:50:41,639 --> 01:50:43,910 working well and our animation shows 2561 01:50:43,920 --> 01:50:47,450 here let's look by shift control and the 2562 01:50:47,460 --> 01:50:50,810 letter i to go into a mobile view notice 2563 01:50:50,820 --> 01:50:54,649 how well our grid conforms it 2564 01:50:54,659 --> 01:50:56,570 automatically adapts we didn't have to 2565 01:50:56,580 --> 01:50:59,990 apply a media query the grid just works 2566 01:51:00,000 --> 01:51:02,330 in this mobile view and that's great 2567 01:51:02,340 --> 01:51:05,149 let's look at some other views here's a 2568 01:51:05,159 --> 01:51:07,310 little bit maybe larger phone there we 2569 01:51:07,320 --> 01:51:09,770 go so it is quite a bit larger it is the 2570 01:51:09,780 --> 01:51:12,770 iPhone 678 Plus 2571 01:51:12,780 --> 01:51:15,290 and there will size it down to 75 2572 01:51:15,300 --> 01:51:17,510 percent let's go ahead and look at the 2573 01:51:17,520 --> 01:51:20,209 iPhone x that gets taller so that should 2574 01:51:20,219 --> 01:51:22,729 also make our text just a little larger 2575 01:51:22,739 --> 01:51:25,030 based on how we used clamp with that 2576 01:51:25,040 --> 01:51:27,050 everything's still looking pretty good 2577 01:51:27,060 --> 01:51:30,589 the form still adapts to the screen size 2578 01:51:30,599 --> 01:51:33,050 the menu looks good and it took us right 2579 01:51:33,060 --> 01:51:35,050 to the menu when I clicked the menu link 2580 01:51:35,060 --> 01:51:39,770 the about page the hours all is looking 2581 01:51:39,780 --> 01:51:41,629 pretty good I think we could apply 2582 01:51:41,639 --> 01:51:44,209 possibly a little bit of space or a 2583 01:51:44,219 --> 01:51:46,129 class we might have to back to the top 2584 01:51:46,139 --> 01:51:49,070 that we applied down here I think we at 2585 01:51:49,080 --> 01:51:50,810 least centered it so we might change 2586 01:51:50,820 --> 01:51:52,609 something there but overall it's good to 2587 01:51:52,619 --> 01:51:55,250 just evaluate your project and see how 2588 01:51:55,260 --> 01:51:57,350 everything looks to you as you go and 2589 01:51:57,360 --> 01:51:59,089 you can tell it's looking good on mobile 2590 01:51:59,099 --> 01:52:01,370 as well so let's go back to full screen 2591 01:52:01,380 --> 01:52:03,589 view and we're going to make just a 2592 01:52:03,599 --> 01:52:05,810 couple of changes there is one media 2593 01:52:05,820 --> 01:52:08,149 query I would like to apply to this 2594 01:52:08,159 --> 01:52:11,330 project although using modern CSS for 2595 01:52:11,340 --> 01:52:13,490 the most part we've been able to avoid 2596 01:52:13,500 --> 01:52:15,589 media queries we are going to put this 2597 01:52:15,599 --> 01:52:18,050 media query at the bottom of the page so 2598 01:52:18,060 --> 01:52:21,470 we'll say at media and then we'll say 2599 01:52:21,480 --> 01:52:22,970 screen 2600 01:52:22,980 --> 01:52:28,310 and now say Min width and we'll say 576 2601 01:52:28,320 --> 01:52:30,830 pixels which is our small break point 2602 01:52:30,840 --> 01:52:33,109 and that is similar to what bootstrap 2603 01:52:33,119 --> 01:52:36,950 uses the CSS library or framework if you 2604 01:52:36,960 --> 01:52:40,370 will and here we have header 200 scores 2605 01:52:40,380 --> 01:52:44,030 H1 now let's select the pseudo element 2606 01:52:44,040 --> 01:52:46,609 here and this is the before pseudo 2607 01:52:46,619 --> 01:52:48,709 element and we're going to set some 2608 01:52:48,719 --> 01:52:49,910 content 2609 01:52:49,920 --> 01:52:54,169 on this H1 let's give a space and what I 2610 01:52:54,179 --> 01:52:55,189 want to do 2611 01:52:55,199 --> 01:52:58,729 is put a taco Emoji in here and actually 2612 01:52:58,739 --> 01:53:01,010 I want to put the taco emoji and then 2613 01:53:01,020 --> 01:53:03,709 the space so we have a taco space and 2614 01:53:03,719 --> 01:53:05,629 then we have the heading as you might 2615 01:53:05,639 --> 01:53:09,290 expect I also want to do this with the 2616 01:53:09,300 --> 01:53:11,390 after so I will just copy that down 2617 01:53:11,400 --> 01:53:14,149 again shift alt and the down arrow we'll 2618 01:53:14,159 --> 01:53:17,810 switch before to after and now with the 2619 01:53:17,820 --> 01:53:20,870 after we want the space to come first 2620 01:53:20,880 --> 01:53:23,030 and then the taco so we've got Taco 2621 01:53:23,040 --> 01:53:27,350 space heading space Taco so this should 2622 01:53:27,360 --> 01:53:29,890 show up on any screen that's larger than 2623 01:53:29,900 --> 01:53:33,830 576 pixels in width so when we save now 2624 01:53:33,840 --> 01:53:36,470 we have tacos in the heading as well and 2625 01:53:36,480 --> 01:53:38,870 that's a great addition for the little 2626 01:53:38,880 --> 01:53:41,149 taco shop and it applies to all the 2627 01:53:41,159 --> 01:53:43,490 pages where we set up our classes 2628 01:53:43,500 --> 01:53:46,310 correctly but if we go to a smaller 2629 01:53:46,320 --> 01:53:49,430 screen where we might not be able to fit 2630 01:53:49,440 --> 01:53:51,050 all of that in 2631 01:53:51,060 --> 01:53:54,109 they disappear and that is great too so 2632 01:53:54,119 --> 01:53:56,750 that only shows in larger viewports 2633 01:53:56,760 --> 01:53:59,570 let's go to an iPad there we have the 2634 01:53:59,580 --> 01:54:02,750 tacos so just mobile it will not try to 2635 01:54:02,760 --> 01:54:05,330 squeeze those tacos in and that is fine 2636 01:54:05,340 --> 01:54:08,209 let's drag this back over we can apply 2637 01:54:08,219 --> 01:54:11,750 just a little bit more to the media 2638 01:54:11,760 --> 01:54:13,609 query as well and this is just something 2639 01:54:13,619 --> 01:54:16,970 I want to do for the menu 200 scores 2640 01:54:16,980 --> 01:54:18,410 header 2641 01:54:18,420 --> 01:54:20,089 then we're also going to have it in the 2642 01:54:20,099 --> 01:54:22,310 menu to underscore CR which was the 2643 01:54:22,320 --> 01:54:24,410 crunchy 2644 01:54:24,420 --> 01:54:27,589 menu 20 underscores SF which was the 2645 01:54:27,599 --> 01:54:28,669 soft 2646 01:54:28,679 --> 01:54:31,970 menu 200 score CS which was the chips 2647 01:54:31,980 --> 01:54:33,890 and salsa we're going to set the font 2648 01:54:33,900 --> 01:54:38,270 size to 125 so just a little larger on 2649 01:54:38,280 --> 01:54:40,609 these larger screens for the headings 2650 01:54:40,619 --> 01:54:42,589 you really if you wanted to you could do 2651 01:54:42,599 --> 01:54:44,510 it to all of these but I just really 2652 01:54:44,520 --> 01:54:46,550 wanted to make the heading stand out and 2653 01:54:46,560 --> 01:54:48,169 so everything we've wrapped around here 2654 01:54:48,179 --> 01:54:51,109 that you see in green has applied that 2655 01:54:51,119 --> 01:54:53,990 larger font now just another 25 percent 2656 01:54:54,000 --> 01:54:57,050 larger than it was there is one more 2657 01:54:57,060 --> 01:54:59,629 media query to apply but it's not based 2658 01:54:59,639 --> 01:55:01,790 on the width it's based on the 2659 01:55:01,800 --> 01:55:04,070 preference of light and dark mode we 2660 01:55:04,080 --> 01:55:06,470 have styled our light mode this would be 2661 01:55:06,480 --> 01:55:09,229 our normal viewing for the website but 2662 01:55:09,239 --> 01:55:11,570 many prefer dark mode these days and 2663 01:55:11,580 --> 01:55:14,390 that includes myself so I definitely 2664 01:55:14,400 --> 01:55:16,669 like to add dark mode when the 2665 01:55:16,679 --> 01:55:18,770 preferences are set for that so if your 2666 01:55:18,780 --> 01:55:21,350 system preference is dark mode that's 2667 01:55:21,360 --> 01:55:23,689 what will display my system preference 2668 01:55:23,699 --> 01:55:25,850 is dark mode so I'm going to put this 2669 01:55:25,860 --> 01:55:29,149 media query directly under the the 2670 01:55:29,159 --> 01:55:32,089 variables we defined so it will be 2671 01:55:32,099 --> 01:55:34,370 applied right away because all it really 2672 01:55:34,380 --> 01:55:38,089 does is change the variables for those 2673 01:55:38,099 --> 01:55:40,250 colors that we're using on the site so I 2674 01:55:40,260 --> 01:55:42,709 will say at media put our parentheses 2675 01:55:42,719 --> 01:55:47,209 then put prefers Dash Color dash 2676 01:55:47,219 --> 01:55:48,589 scheme 2677 01:55:48,599 --> 01:55:51,830 and here I'm going to say dark so that 2678 01:55:51,840 --> 01:55:54,530 is what my system is already set to so 2679 01:55:54,540 --> 01:55:56,330 anything we put in here will start to 2680 01:55:56,340 --> 01:55:59,149 overwrite what we already have for those 2681 01:55:59,159 --> 01:56:01,609 variables so we need the root pseudo 2682 01:56:01,619 --> 01:56:04,129 selector it's the pseudo class and now 2683 01:56:04,139 --> 01:56:05,750 let's overwrite 2684 01:56:05,760 --> 01:56:08,270 the background color 2685 01:56:08,280 --> 01:56:10,310 and this is going to be 2686 01:56:10,320 --> 01:56:12,709 black now we will not really see the 2687 01:56:12,719 --> 01:56:14,510 change here because we're not seeing 2688 01:56:14,520 --> 01:56:17,149 that orange color until we drag this 2689 01:56:17,159 --> 01:56:20,629 over to full screen so if I save drag 2690 01:56:20,639 --> 01:56:22,910 this over to the full screen now you can 2691 01:56:22,920 --> 01:56:25,189 see it's dark but it's still fading to 2692 01:56:25,199 --> 01:56:26,750 that light orange because we haven't 2693 01:56:26,760 --> 01:56:29,330 changed that other variable yet either 2694 01:56:29,340 --> 01:56:31,870 so let's change the 2695 01:56:31,880 --> 01:56:37,189 BG Color dash fade variable as well and 2696 01:56:37,199 --> 01:56:39,229 I'll just make that gray just like my 2697 01:56:39,239 --> 01:56:42,169 last name I'll save and now let's drag 2698 01:56:42,179 --> 01:56:44,629 this over once again you can see it's 2699 01:56:44,639 --> 01:56:47,270 fading to a gray instead of the orange 2700 01:56:47,280 --> 01:56:50,209 to a light orange the next color we'll 2701 01:56:50,219 --> 01:56:52,310 put in here will be the header 2702 01:56:52,320 --> 01:56:54,229 background color now we'll start to see 2703 01:56:54,239 --> 01:56:57,649 these changes so header BG color 2704 01:56:57,659 --> 01:57:00,589 oh I'm sorry just header color not BG 2705 01:57:00,599 --> 01:57:01,430 color 2706 01:57:01,440 --> 01:57:05,209 let's make this 2707 01:57:05,219 --> 01:57:08,689 white smoke and Save 2708 01:57:08,699 --> 01:57:13,430 and then let's go ahead and change the 2709 01:57:13,440 --> 01:57:15,530 nav 2710 01:57:15,540 --> 01:57:18,530 I said color now I need background color 2711 01:57:18,540 --> 01:57:20,570 and by the way the white smoke I just 2712 01:57:20,580 --> 01:57:22,910 find that to be easier on my eyes than 2713 01:57:22,920 --> 01:57:24,770 the Pure White that we've used in other 2714 01:57:24,780 --> 01:57:28,990 spots let's set this to RGB 2715 01:57:29,000 --> 01:57:33,890 2020 which is just a different shade of 2716 01:57:33,900 --> 01:57:35,570 black essentially and now you can see 2717 01:57:35,580 --> 01:57:38,209 that background color for the nav menu 2718 01:57:38,219 --> 01:57:40,790 definitely got darker okay so we're 2719 01:57:40,800 --> 01:57:42,169 going to have to change that text 2720 01:57:42,179 --> 01:57:45,410 eventually too let's set the hero color 2721 01:57:45,420 --> 01:57:49,010 and this is for our little animated part 2722 01:57:49,020 --> 01:57:51,470 that drops down so our hero color 2723 01:57:51,480 --> 01:57:54,229 is going to be a different flat black 2724 01:57:54,239 --> 01:57:56,570 now when it drops down you can see that 2725 01:57:56,580 --> 01:57:59,689 has also changed now let's set the body 2726 01:57:59,699 --> 01:58:02,149 background color itself so this will be 2727 01:58:02,159 --> 01:58:04,729 a big change when we first see it that 2728 01:58:04,739 --> 01:58:07,790 will also be this flat black 2729 01:58:07,800 --> 01:58:10,850 and that has made a difference now let's 2730 01:58:10,860 --> 01:58:13,729 go to the font color itself which is 2731 01:58:13,739 --> 01:58:15,589 what's being used on most of the page 2732 01:58:15,599 --> 01:58:17,990 and we'll go with that white smoke 2733 01:58:18,000 --> 01:58:19,970 that's just a little easier on the eyes 2734 01:58:19,980 --> 01:58:22,729 than the pure bright white 2735 01:58:22,739 --> 01:58:25,310 and so let's find a page that's using 2736 01:58:25,320 --> 01:58:27,470 well here we see it inside of these 2737 01:58:27,480 --> 01:58:30,050 table cells here but if we go look at a 2738 01:58:30,060 --> 01:58:31,910 different page you can see it is being 2739 01:58:31,920 --> 01:58:34,729 used right here as well okay after the 2740 01:58:34,739 --> 01:58:37,609 font color let's apply the 2741 01:58:37,619 --> 01:58:40,129 highlight color 2742 01:58:40,139 --> 01:58:43,010 and where this was that green let's use 2743 01:58:43,020 --> 01:58:45,229 white smoke here as well so when we save 2744 01:58:45,239 --> 01:58:47,990 I believe that's in the animation 2745 01:58:48,000 --> 01:58:50,870 and I'm not seeing that applied right 2746 01:58:50,880 --> 01:58:52,310 now I'm not seeing the animation because 2747 01:58:52,320 --> 01:58:54,290 I'm not on the right page here we go and 2748 01:58:54,300 --> 01:58:56,030 oh no it wasn't in the animation because 2749 01:58:56,040 --> 01:58:58,910 that has the separate background color 2750 01:58:58,920 --> 01:59:01,189 that is slightly transparent but it is 2751 01:59:01,199 --> 01:59:03,589 in some other areas like we were using 2752 01:59:03,599 --> 01:59:07,070 it for the H2S and h3s and the table 2753 01:59:07,080 --> 01:59:09,589 headings so we can see that's Now using 2754 01:59:09,599 --> 01:59:12,890 white smoke as well okay now let's 2755 01:59:12,900 --> 01:59:16,070 switch the Border color that's being 2756 01:59:16,080 --> 01:59:19,850 used let's also make that white smoke 2757 01:59:19,860 --> 01:59:22,970 now our table is standing out and now 2758 01:59:22,980 --> 01:59:24,709 that border color was a bit of the 2759 01:59:24,719 --> 01:59:26,990 Shadow behind the lettering so now we've 2760 01:59:27,000 --> 01:59:29,209 got a little bit of white shadow behind 2761 01:59:29,219 --> 01:59:31,910 Bienvenidos and that stands out on that 2762 01:59:31,920 --> 01:59:34,490 green as well helping the dark lettering 2763 01:59:34,500 --> 01:59:36,229 stand out and we still need to change 2764 01:59:36,239 --> 01:59:39,169 our link colors so 2765 01:59:39,179 --> 01:59:41,930 link Dash color 2766 01:59:41,940 --> 01:59:44,209 we'll make that white smoke you can see 2767 01:59:44,219 --> 01:59:45,709 we're really making use of that color 2768 01:59:45,719 --> 01:59:49,970 for this setting also say link hover is 2769 01:59:49,980 --> 01:59:51,950 now going to be orange 2770 01:59:51,960 --> 01:59:53,450 and then 2771 01:59:53,460 --> 01:59:55,790 link active 2772 01:59:55,800 --> 01:59:58,990 is going to be the lighter orange so RGB 2773 01:59:59,000 --> 02:00:03,830 252 200 103. 2774 02:00:03,840 --> 02:00:07,250 and save so now when we hover over a 2775 02:00:07,260 --> 02:00:09,890 link it becomes orange 2776 02:00:09,900 --> 02:00:12,709 when I hold down it's a lighter orange 2777 02:00:12,719 --> 02:00:16,550 and then we go to ours everything looks 2778 02:00:16,560 --> 02:00:18,830 pretty good now you may have your own 2779 02:00:18,840 --> 02:00:20,750 preferences for dark mode as well but 2780 02:00:20,760 --> 02:00:23,330 just scan over the site see how you 2781 02:00:23,340 --> 02:00:25,129 think it looks does everything look like 2782 02:00:25,139 --> 02:00:27,410 you want it to oh these buttons need a 2783 02:00:27,420 --> 02:00:29,030 little bit of help yet let's check our 2784 02:00:29,040 --> 02:00:31,129 other page and make sure everything else 2785 02:00:31,139 --> 02:00:33,229 looks good and then we might need to 2786 02:00:33,239 --> 02:00:35,270 change something about those buttons 2787 02:00:35,280 --> 02:00:37,250 we'll have to see what is going on there 2788 02:00:37,260 --> 02:00:39,649 and that might be a correction that 2789 02:00:39,659 --> 02:00:41,390 needs to be made in how they're 2790 02:00:41,400 --> 02:00:44,689 initially being set as well so let's 2791 02:00:44,699 --> 02:00:47,930 find where we had a 2792 02:00:47,940 --> 02:00:50,870 button which was a contact button and 2793 02:00:50,880 --> 02:00:52,970 you can see the header color which 2794 02:00:52,980 --> 02:00:56,030 remained white or white smoke was being 2795 02:00:56,040 --> 02:00:58,669 used but then that highlight color was 2796 02:00:58,679 --> 02:01:01,430 the background and that has changed I 2797 02:01:01,440 --> 02:01:03,830 think we need to change this from header 2798 02:01:03,840 --> 02:01:06,709 color to button color and give us some 2799 02:01:06,719 --> 02:01:10,129 or give ourselves some control over what 2800 02:01:10,139 --> 02:01:13,550 color is the text on top of the buttons 2801 02:01:13,560 --> 02:01:16,010 so we've added a button color variable 2802 02:01:16,020 --> 02:01:18,709 now we need to Define that above and 2803 02:01:18,719 --> 02:01:20,209 then of course change it when it gets to 2804 02:01:20,219 --> 02:01:22,790 dark mode as well so we were fine with 2805 02:01:22,800 --> 02:01:25,370 it at first when it was the same as the 2806 02:01:25,380 --> 02:01:27,410 header color so that's what we'll start 2807 02:01:27,420 --> 02:01:29,930 off with and I believe that is just 2808 02:01:29,940 --> 02:01:32,870 white so we'll put that and also put it 2809 02:01:32,880 --> 02:01:34,550 in as 2810 02:01:34,560 --> 02:01:37,550 white here but now we need to change 2811 02:01:37,560 --> 02:01:39,890 this when we get to dark mode so let's 2812 02:01:39,900 --> 02:01:42,410 bring this down into our dark mode 2813 02:01:42,420 --> 02:01:45,950 definitions add this and let's change it 2814 02:01:45,960 --> 02:01:49,189 to Black right here and save now let's 2815 02:01:49,199 --> 02:01:52,609 go ahead and go to our contact page so 2816 02:01:52,619 --> 02:01:55,370 scroll down and now we can see the text 2817 02:01:55,380 --> 02:01:57,550 on our buttons and so that looks good 2818 02:01:57,560 --> 02:02:00,470 the about page is looking good let's 2819 02:02:00,480 --> 02:02:02,270 make sure the answer looks good for 2820 02:02:02,280 --> 02:02:04,490 trivia that's fine here's an additional 2821 02:02:04,500 --> 02:02:07,250 Link in our page to the reference for 2822 02:02:07,260 --> 02:02:08,689 the trivia 2823 02:02:08,699 --> 02:02:10,790 the menu we scroll right to that 2824 02:02:10,800 --> 02:02:12,770 everything looks good there 2825 02:02:12,780 --> 02:02:15,950 hours pretty good I still might want to 2826 02:02:15,960 --> 02:02:17,629 create a little space here with the back 2827 02:02:17,639 --> 02:02:20,629 to top but other than that it's fine and 2828 02:02:20,639 --> 02:02:23,510 back to the home okay so we are down to 2829 02:02:23,520 --> 02:02:26,570 the final touches of the project so one 2830 02:02:26,580 --> 02:02:28,729 of those things might be to organize the 2831 02:02:28,739 --> 02:02:31,250 CSS now this is your own project but if 2832 02:02:31,260 --> 02:02:33,649 you're working in a team for example you 2833 02:02:33,659 --> 02:02:35,209 might want to organize that I'm going to 2834 02:02:35,219 --> 02:02:37,070 drag this over to full screen for this 2835 02:02:37,080 --> 02:02:39,410 discussion let's say the colors we have 2836 02:02:39,420 --> 02:02:41,450 here there's there's probably the 2837 02:02:41,460 --> 02:02:44,270 largest list that we have of anything in 2838 02:02:44,280 --> 02:02:47,030 this project is the colors it might help 2839 02:02:47,040 --> 02:02:51,050 to just use the abcss technique here to 2840 02:02:51,060 --> 02:02:53,149 organize these so if we highlight all of 2841 02:02:53,159 --> 02:02:56,930 those press Ctrl p and then the greater 2842 02:02:56,940 --> 02:02:59,689 than symbol and now we might choose sort 2843 02:02:59,699 --> 02:03:03,410 lines ascending so now all of our colors 2844 02:03:03,420 --> 02:03:05,810 are ordered alphabetically and I can 2845 02:03:05,820 --> 02:03:08,510 find them probably much faster now that 2846 02:03:08,520 --> 02:03:11,390 I've done this so considering that maybe 2847 02:03:11,400 --> 02:03:13,910 we should do the same thing for our dark 2848 02:03:13,920 --> 02:03:17,649 mode we'll highlight all of those Ctrl P 2849 02:03:17,659 --> 02:03:20,510 greater than symbol and choose sort 2850 02:03:20,520 --> 02:03:22,910 lines ascending now you're welcome to do 2851 02:03:22,920 --> 02:03:25,550 that for any or all of the properties 2852 02:03:25,560 --> 02:03:27,470 and styles that are within this project 2853 02:03:27,480 --> 02:03:30,530 if you so choose now before we finish 2854 02:03:30,540 --> 02:03:32,570 this project there's one more thing we 2855 02:03:32,580 --> 02:03:34,609 can add that would be a very nice touch 2856 02:03:34,619 --> 02:03:37,370 but it is a preview of what's to come 2857 02:03:37,380 --> 02:03:40,070 for you yet and that's because it's a 2858 02:03:40,080 --> 02:03:42,950 touch of JavaScript just a little bit 2859 02:03:42,960 --> 02:03:45,050 and I'll show you what it does it will 2860 02:03:45,060 --> 02:03:47,750 update the year so it will put in the 2861 02:03:47,760 --> 02:03:49,370 current year no matter what year it is 2862 02:03:49,380 --> 02:03:51,589 and you will not have to come back and 2863 02:03:51,599 --> 02:03:54,229 update the copyright on your site so 2864 02:03:54,239 --> 02:03:56,810 let's put in a time element right here I 2865 02:03:56,820 --> 02:03:59,750 want lowercase so I'll give this a time 2866 02:03:59,760 --> 02:04:04,310 with an ID attribute of year 2867 02:04:04,320 --> 02:04:06,830 so there is our time element and we 2868 02:04:06,840 --> 02:04:08,390 don't really need to put anything in it 2869 02:04:08,400 --> 02:04:11,990 we'll just leave it as is with the ID of 2870 02:04:12,000 --> 02:04:14,990 year right there now let's go over to 2871 02:04:15,000 --> 02:04:17,990 our file tree and inside the file tree 2872 02:04:18,000 --> 02:04:22,069 let's create a JS folder and inside the 2873 02:04:22,079 --> 02:04:25,430 JS folder let's create a new file name 2874 02:04:25,440 --> 02:04:27,709 it main.js 2875 02:04:27,719 --> 02:04:30,589 now we only have a few simple lines to 2876 02:04:30,599 --> 02:04:34,490 put in here so I'm going to type const 2877 02:04:34,500 --> 02:04:36,530 which will help me Define a variable and 2878 02:04:36,540 --> 02:04:38,810 I'm going to name that variable year I'm 2879 02:04:38,820 --> 02:04:41,030 going to set that equal to document and 2880 02:04:41,040 --> 02:04:43,490 when I refer to document I am referring 2881 02:04:43,500 --> 02:04:46,790 to the HTML document and then get 2882 02:04:46,800 --> 02:04:51,530 element by ID and this will be year so 2883 02:04:51,540 --> 02:04:54,649 you know we just set that attribute and 2884 02:04:54,659 --> 02:04:56,870 then we are selecting it so we're 2885 02:04:56,880 --> 02:04:59,209 selecting that time element on whichever 2886 02:04:59,219 --> 02:05:02,930 page we load this JavaScript into from 2887 02:05:02,940 --> 02:05:04,490 there I'm going to Define another 2888 02:05:04,500 --> 02:05:06,890 variable and I want it to be called this 2889 02:05:06,900 --> 02:05:09,109 year notice I'm using camel case to 2890 02:05:09,119 --> 02:05:12,350 Define that going to set this equal to a 2891 02:05:12,360 --> 02:05:15,470 new date and then I'm going to call the 2892 02:05:15,480 --> 02:05:20,270 get full year method for that date so 2893 02:05:20,280 --> 02:05:23,569 now I have the current full year in the 2894 02:05:23,579 --> 02:05:27,229 this year variable and I have the 2895 02:05:27,239 --> 02:05:29,089 element that we just created the time 2896 02:05:29,099 --> 02:05:31,310 element in the year variable so I'm 2897 02:05:31,320 --> 02:05:33,470 going to say year 2898 02:05:33,480 --> 02:05:35,470 set 2899 02:05:35,480 --> 02:05:39,410 attribute and then I'm going to select 2900 02:05:39,420 --> 02:05:41,510 date time 2901 02:05:41,520 --> 02:05:43,850 and I'm going to set it 2902 02:05:43,860 --> 02:05:45,830 to the this year variable 2903 02:05:45,840 --> 02:05:48,229 and then to display it on the page I 2904 02:05:48,239 --> 02:05:49,970 once again want that year element and 2905 02:05:49,980 --> 02:05:52,310 now I'm going to select the text content 2906 02:05:52,320 --> 02:05:54,950 that's what's displayed on the page 2907 02:05:54,960 --> 02:05:57,229 and set it equal to this year and save 2908 02:05:57,239 --> 02:05:59,930 that's all I need are these four lines 2909 02:05:59,940 --> 02:06:01,250 of code 2910 02:06:01,260 --> 02:06:03,770 and with that we can import this into 2911 02:06:03,780 --> 02:06:06,609 our page so we'll go back to the index 2912 02:06:06,619 --> 02:06:09,470 let's scroll to the top because we want 2913 02:06:09,480 --> 02:06:12,410 to load the JavaScript last after the 2914 02:06:12,420 --> 02:06:13,669 CSS 2915 02:06:13,679 --> 02:06:16,669 and we do that with a script tag and it 2916 02:06:16,679 --> 02:06:19,310 will have a source attribute and there 2917 02:06:19,320 --> 02:06:23,270 it is so we'll say JS slash and then 2918 02:06:23,280 --> 02:06:26,149 we'll just pick our main.js nothing goes 2919 02:06:26,159 --> 02:06:28,250 between the opening and closing script 2920 02:06:28,260 --> 02:06:30,830 tags however you have to put it this way 2921 02:06:30,840 --> 02:06:32,990 it always has a closing script tag it's 2922 02:06:33,000 --> 02:06:35,089 not like some of the other elements that 2923 02:06:35,099 --> 02:06:37,550 just has a slash to close out the first 2924 02:06:37,560 --> 02:06:40,490 one you always see it this way we want 2925 02:06:40,500 --> 02:06:42,770 to add one other attribute though and 2926 02:06:42,780 --> 02:06:45,410 that is defer and that tells the script 2927 02:06:45,420 --> 02:06:47,689 to wait until everything else is loaded 2928 02:06:47,699 --> 02:06:51,709 before loading the JavaScript and we 2929 02:06:51,719 --> 02:06:55,930 will save now if we go back to our page 2930 02:06:55,940 --> 02:06:58,810 notice it says copyright 2931 02:06:58,820 --> 02:07:02,450 2022 little taco shop if you're watching 2932 02:07:02,460 --> 02:07:05,629 this in a different year and you add 2933 02:07:05,639 --> 02:07:07,729 this same code it will say whatever the 2934 02:07:07,739 --> 02:07:10,010 current year is there if we go to our 2935 02:07:10,020 --> 02:07:12,350 other Pages notice it still just says 2936 02:07:12,360 --> 02:07:14,510 copyright copyright symbol in little 2937 02:07:14,520 --> 02:07:17,330 taco shop because we haven't added that 2938 02:07:17,340 --> 02:07:20,750 JavaScript to the other Pages yet but we 2939 02:07:20,760 --> 02:07:23,510 can do that now so let's drag this over 2940 02:07:23,520 --> 02:07:25,609 and we also need to make that same 2941 02:07:25,619 --> 02:07:28,669 change to the footer on every page so 2942 02:07:28,679 --> 02:07:31,310 inside of our copyright line here that 2943 02:07:31,320 --> 02:07:34,069 has the span class let's select that 2944 02:07:34,079 --> 02:07:36,950 with the c and then we'll go to the 2945 02:07:36,960 --> 02:07:39,770 hours page so scroll down 2946 02:07:39,780 --> 02:07:43,250 and we will select the same line and 2947 02:07:43,260 --> 02:07:45,770 paste in the new line and Save 2948 02:07:45,780 --> 02:07:49,310 the contact page scroll down select the 2949 02:07:49,320 --> 02:07:52,550 copyright line paste in the new line and 2950 02:07:52,560 --> 02:07:56,450 save and we also need the about page I 2951 02:07:56,460 --> 02:07:59,330 believe so now let's scroll down and 2952 02:07:59,340 --> 02:08:01,069 here we'll select that same copyright 2953 02:08:01,079 --> 02:08:02,209 line 2954 02:08:02,219 --> 02:08:05,030 and we'll paste in the new line but we 2955 02:08:05,040 --> 02:08:06,830 haven't added the JavaScript yet so 2956 02:08:06,840 --> 02:08:10,010 let's go back to our index.html now we 2957 02:08:10,020 --> 02:08:11,810 could just copy this same script line 2958 02:08:11,820 --> 02:08:14,629 and we can use the same Javascript file 2959 02:08:14,639 --> 02:08:18,530 for every page so back to the hours page 2960 02:08:18,540 --> 02:08:21,589 paste it in underneath our style sheet 2961 02:08:21,599 --> 02:08:24,109 line back to the contact page we should 2962 02:08:24,119 --> 02:08:28,069 do the exact same thing 2963 02:08:28,079 --> 02:08:31,129 and then finally the about page we 2964 02:08:31,139 --> 02:08:34,370 should do the exact same thing 2965 02:08:34,380 --> 02:08:37,370 and save and now let's once again look 2966 02:08:37,380 --> 02:08:39,830 at our site and notice that no matter 2967 02:08:39,840 --> 02:08:42,649 which page we're on we now have the year 2968 02:08:42,659 --> 02:08:45,470 referenced in the footer along with our 2969 02:08:45,480 --> 02:08:48,350 copyright notice and everything looks 2970 02:08:48,360 --> 02:08:51,950 just as it should okay guys just a few 2971 02:08:51,960 --> 02:08:54,589 closing notes and you could call them 2972 02:08:54,599 --> 02:08:56,750 Corrections if you want to I just want 2973 02:08:56,760 --> 02:08:58,430 to adjust a couple of things we're 2974 02:08:58,440 --> 02:09:00,770 currently on the hours page for the 2975 02:09:00,780 --> 02:09:03,470 little taco shop and I previously forgot 2976 02:09:03,480 --> 02:09:07,069 to put in an H2 for this page so I'm 2977 02:09:07,079 --> 02:09:10,189 going to do that here on line 48 and I'm 2978 02:09:10,199 --> 02:09:12,050 just going to put hours in there and 2979 02:09:12,060 --> 02:09:13,729 save something else that's been 2980 02:09:13,739 --> 02:09:15,350 bothering me about this page the whole 2981 02:09:15,360 --> 02:09:17,930 time was the back to the top link that 2982 02:09:17,940 --> 02:09:19,669 we really don't need anymore there's not 2983 02:09:19,679 --> 02:09:21,589 enough content on this page for it 2984 02:09:21,599 --> 02:09:23,569 really to even be there so I'm going to 2985 02:09:23,579 --> 02:09:26,569 remove that back to the top link on the 2986 02:09:26,579 --> 02:09:28,970 hours page other than that I'm happy 2987 02:09:28,980 --> 02:09:30,850 with how this page turned out of course 2988 02:09:30,860 --> 02:09:33,470 everything is preference when it comes 2989 02:09:33,480 --> 02:09:36,350 to CSS you're Your Design choices your 2990 02:09:36,360 --> 02:09:38,030 preferences may be different than mine 2991 02:09:38,040 --> 02:09:40,030 so feel free to make your own changes 2992 02:09:40,040 --> 02:09:44,390 also at the contact.html page I 2993 02:09:44,400 --> 02:09:47,390 previously removed every HR the 2994 02:09:47,400 --> 02:09:49,069 horizontal rule element but I think I 2995 02:09:49,079 --> 02:09:50,750 would like to put one back here just 2996 02:09:50,760 --> 02:09:53,270 between the two sections on this page or 2997 02:09:53,280 --> 02:09:55,370 between the two articles if you will so 2998 02:09:55,380 --> 02:09:57,770 I'm going to put this horizontal rule 2999 02:09:57,780 --> 02:10:00,169 back between those two different 3000 02:10:00,179 --> 02:10:02,990 articles on this one page one other 3001 02:10:03,000 --> 02:10:06,050 thing I want to do is just change the 3002 02:10:06,060 --> 02:10:08,330 text a little bit on the buttons so I'm 3003 02:10:08,340 --> 02:10:10,430 going to click the file tree quickly go 3004 02:10:10,440 --> 02:10:14,510 to the style.css file and here under the 3005 02:10:14,520 --> 02:10:18,470 contact to underscore button class I'm 3006 02:10:18,480 --> 02:10:21,410 just going to add a font weight 3007 02:10:21,420 --> 02:10:24,770 of bold and save and now once we want 3008 02:10:24,780 --> 02:10:26,390 look at these buttons I just like how 3009 02:10:26,400 --> 02:10:27,830 they look a little bit better with the 3010 02:10:27,840 --> 02:10:30,290 Bold font always go back and reevaluate 3011 02:10:30,300 --> 02:10:32,569 your code make your own choices and of 3012 02:10:32,579 --> 02:10:34,310 course you don't have to agree with my 3013 02:10:34,320 --> 02:10:36,109 choices the best way to learn is 3014 02:10:36,119 --> 02:10:38,689 experiment and see how it works out for 3015 02:10:38,699 --> 02:10:40,609 you so that's the end of the project 3016 02:10:40,619 --> 02:10:44,149 congratulations you've completed a large 3017 02:10:44,159 --> 02:10:46,850 overhaul on the little taco shop website 3018 02:10:46,860 --> 02:10:50,810 and styled it with modern CSS very few 3019 02:10:50,820 --> 02:10:53,390 media queries necessary we added a nice 3020 02:10:53,400 --> 02:10:56,930 animation and it does work in mobile 3021 02:10:56,940 --> 02:10:59,330 devices as well even though we didn't 3022 02:10:59,340 --> 02:11:01,850 need those extra media queries so if we 3023 02:11:01,860 --> 02:11:05,450 go back to an iPhone 6 7 and 8 style we 3024 02:11:05,460 --> 02:11:07,550 can now see how all of this looks in a 3025 02:11:07,560 --> 02:11:10,490 dark mode and it is still working as we 3026 02:11:10,500 --> 02:11:13,010 expect it to great job completing the 3027 02:11:13,020 --> 02:11:15,830 project and completing the full CSS for 3028 02:11:15,840 --> 02:11:17,629 beginners course remember to keep 3029 02:11:17,639 --> 02:11:19,550 striving for Progress over Perfection 3030 02:11:19,560 --> 02:11:22,010 and a little progress every day will go 3031 02:11:22,020 --> 02:11:24,709 a very long way please give this video a 3032 02:11:24,719 --> 02:11:26,689 like if it's helped you and thank you 3033 02:11:26,699 --> 02:11:28,430 for watching and subscribing you're 3034 02:11:28,440 --> 02:11:30,830 helping my channel grow have a great day 3035 02:11:30,840 --> 02:11:32,689 and let's write more code together very 3036 02:11:32,699 --> 02:11:35,000 soon 219062

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