Class Project 05 – Header design COMPLETE
So how did it go? I wonder where you got stuck. Which bits were easy, how you went with your little research project? Yeah I'll do it together with you now and you can compare notes. Now my way is not going to be the best way of doing it. It's going to be on our way to do it. So let's see. We'll start with the easy one. Make the text white. So what I'm gonna do is make because the moment that text is why but that one's white what it might do is be clever. Okay and say actually instead of trying to tell them all to be white, I'm going to find this guy get rid of him. Okay now they all go black. Okay and I was going to stay up here in my body tag. Actually you can all be white please. Nice. Easy one. Now we need to get these guys kind of separated out because they are regular rolled tags. They sit on top of each other. We want to split them across. Which way did you use? Okay. Which way am I going to do? We'll use flex box. So it needs to go on the parent and the parent in this case is h...
eaded container. We're gonna say display lower case display and we'll use flicks see how it does. What is it doing? So that didn't work. You might have started the same way. Let's have a little look. Uh that's why. Okay I put it as a parent. So I added flex box to this guy had a container. Okay Actually and that will that will affect everything inside of it or the direct Children. Okay. And in this case it's the header. I want these guys attacked. Okay, not this fella so we need to put it on the header. Not this outside wrapper. So sorry buddy, you got the wrong one. Okay. It needs to be hitter needs to be flex. Let's see how it works Better. The side by side. Now we want the spacing to work and we'll use the same one as here justify content. Okay? You should split everything up justify content space between, have a look look at that left and right. Well now get them to center in the middle. So we'll do a line items and we'll do center. See how that goes. Nice. We're going to leave the span tag to the end mainly because I want to separate off in its own video. Okay. Right at the end so that we can for kind of memorable sake. So when you are searching back to this video course on how to do them, they'll be their own separate video. So what we're going to do now is style these we've kind of done it before and if you cheated and went to your old assignment and grabbed them. I am proud of you. That's that is efficiency. We're gonna do it together though before we can actually style them. We need to separate them out because the moment in the nav tag here there are just bits of text. So what we'll do is put a few returns in, clear them away. I want 38 tags. Okay. And I'll use my little shortcuts command option down arrow on a Mac and it is control down arrow on a pc. Okay. And I'm gonna put in my hashtags and I'm actually just going to work on these one at a time. I just copy and paste them, yep. And you all right, get my name tag back up again. Come up here buddy. All right lining up finally. All right so that's looking nice now I can attack them over here. So the bottom here before my tablet view I'm gonna style them now. I'm not going to start all the a tags. So I in my case you could do not have a so you could say I want all the a tags that are inside Nav and we could do that so you might have gone that way that's perfectly fine. You could go up here and say I'm going to create a class because maybe you're gonna reuse this button so you call this one my button. Okay And you actually do it for all three at the same time. So class is going to be my button and we're going to style that over here either way. It doesn't matter. It really depends on if you plan on using these buttons anywhere else then this particular method might be a bit better. Alright, let's look at them first. They're they're over here purple. Okay, so I'm going to first of all make the color white. And what I might do is do some kind of like I like make all active links okay. Color of white and turn the underlying off. You might not have done it this way. You can do it in the class that we were just working on. But this way means I don't have to do it once because I bet you I'll have to do this a few times. So all the a tags are going to have a color of white in the text decoration of none which gets through the underline. There you go. You could have done it down here would have worked padding in this case, it doesn't really matter what you guessed. I think I did 10 top and bottom and left and right. Let's have a look. That's it doesn't really work until you add the border in this case. The border style is going to be, sorry border style style is going to be solid and we'll have a border size gets me every time. Sport of width. Okay and we're gonna just have one pixel, have a little look that's pretty much what I want and what it looked like in my mock up had a bit more spacing so I'm just going to put some margin to the left of them all. Okay so let's put in some so we want it to the left margin left margin left. Okay and how much do I have? Have you got 20 pixels? Have a look save it. Yeah it's looking good. They're all clickable. Don't go anywhere at the moment. Anything else in our list? So span tag will do in a second logo should be left aligned. They should be centered vertically in the header nav button should be working ah entire background. Let's do that. So that's the color I wanted to be and all we need to do is say buddy you are a background color of that. Don't forget your semi colons at the end and hopefully it's that kind of light gray color. Why isn't it working? Because I forgot my hash. There you go. Alright. Is that it now? It's time for our span tag. I'll see you in a second. The next video where we explain span tags in its own little tasty video. See in a sec