Quick overview of how Bootstrap CSS Styles works in VS Code
call this one overview overview and we'll call this one styles dot html, paste it in and we'll go and delete everything that's inside this container. Okay, So all of you guys are coming with me, you're out of here. Alright. So all we've got is a container in here. And let's just throw in some basic html tags. So let's throw it on each one. Okay, underneath. Let's put some stuff inside of it. Okay. A.P. and let's put in some Lauren Ipsum, maybe just 10 words. Nice. And let's put in a button. Okay. And let's call it submit, submit. Even let's put in a in a tag. It's going nowhere, but we'll put some text in it. Um it's going to the contact us page, just some generic stuff and let's just see what Bootstrap does by default. So I'm gonna have to close that. Open it back up. Cool. So you can see it's got a kind of look to it. Very Bootstrap look and the nice thing about it is especially if you need to design or that's not really what you love doing, You like the build, but not so much the picking fonts or at least you're not good at it. Bootstrap can really help out and just like instantly make it look nice. And the other cool thing is that it's not just left like that. What you can do is you can go into your get bootstrap dot com and start looking through the documentation. It does take a little while to get used to everything. Okay, But there is some super handy stuff in here. So let's have a look at the styles, We talk about layout. It's got its own bit, components, has got its own bit, but then when it comes to the styles that Bootstrap uses, its kind of smeared across lots of them. Lots of them are inside utilities. Okay. But some of them are components and I'll show you what I mean as we go through now, if you talk to other people, they'll be able to tell you exactly when they say when you say, hey, tell me about Bootstrap layout, they'll they'll know exactly what you're talking about staying with components. When it comes to styles. It's just something that I've made up. Okay to kind of encompass all of the other things that it does. Okay. All of the utilities and extra bits. Okay. All the styles that adds freedom for you. That's just me and you are in the know. Okay, so utilities starts with borders. You can see you can add borders real quickly by adding just these classes were not going to go through them all. But let's have a look at text. Nice. Easy one. So text alignment is super easy. You can do it for media queries as well by using if I wanted to apply text on small devices left. But then again on right for larger devices, you can just add this class rather than trying to add it to different media queries. Let's actually just do something. Let's have a look let's say we want all upper case. So you can see here my P E class can be a class of uppercase and that's all I need to do. Yeah, let's go, let's grab this. Okay. And India's code. I'm gonna see my P tag has a class class even of text uppercase. Let's have a look in the browser and you can see hopefully there it is there it's all upper case. Didn't have to do anything. Let's say that I wanted to be something else. Let's have a look. Got text. So wait. Okay so let's say we look at pe class we don't have to create a bold class and then apply it to it. It's really to go already in there so you can see bold italic. I'm gonna copy that I'm going to go into here. I'm gonna say I also want it to be so uppercase and let's say that I'm gonna put a space in it and I say I want it to be a font weight of bold as well and now it's going to be uppercase and bold. You can see text decoration by default is off with the underlying. Okay just sits there nicely. Buttons have some nice things. So let's look under here. This is where it gets not messy but oh my God great. All that sort of styling stuff is under utilities but then buttons is under components. Okay components buttons you can see if I add a class of B. T. N. Primary it's going to look like that. Pre done with colors and all. Let's have a look button and primary. So where is my button? Okay he's going to have a class of button in. Primary. Let's have a little look and look. He's ready to go. He's got rounded corner. He's got a hover. It's all very cool. Not as exciting as the grid, definitely not as exciting as the components, but the nice thing about it is that lots of this stuff is ready to go. It's very clear what it does and often they're all kind of like ready to go in terms of and making sure they're ready for different media queries and different devices. Look at this one, there's a button, primary outline as well. There's a large button. So let's look, let's just add some more. I'm trying to make it more exciting that work. Maybe not, but you can kind of see it's just, you don't have to work out what the weird border style solid and then one pixel and then just add that to it. It's got some defaults. Um, when we start building our site, I'll show you how to override it. You can see there. I can make a button large. Okay, I can make a yeah button large or buttons small by just adding another one. This last one and you'll be like, we get it in, this is the last one. I'll make it the large button. I don't have to go pick size is just a giant button with the primary color with a line around the outside. So the third, but not as exciting part of bootstrap. What's the stuff pre made ready to go. So quickly wrap up before we go. The overview for the grid was the actual structure of the website. Okay. The boxes that we put stuff in and it included all the things like media queries. Then we did the super sexy one where we had components, we had a carousel slider that slid across the screen and a navigation that broke down for mobile, then back into a main navigation for desktop. And then this guy where it's just lots and lots of pre made classes to help you build a site quickly. The trouble is gonna try to remember them all. Okay, so the cool thing about bootstraps website, they get bootstrap dot com, the search thing works reasonably well. So if I need to find my carousel because you can't find it anywhere. Okay. You can see if I type it in. It takes me two examples of carol cells and I can jump there and go there. Sometimes you got to try and guess the word you're like, where's the thing that has the bit with the bold type. Okay. And you can kind of just type it in and just see where you can get in this case failed borders. Oh no, there it is there front weights boldness. Okay. And what we often do and can be a little confusing when you first start using this site is that it's come to him and you're like, oh, there's a whole page on front weights. It's actually just come to this page about text that we were at before and slid down the page to this marker for front weights, actually at the page where we were before. Okay, So sometimes you click on it and it takes you to an overall page and then slide you down and you kind of get a little bit lost. Sometimes the other thing to do is actually just go actually, how do I do bootstrap and make sure using bootstrap for the latest version. How how do I left the line? Okay, so bootstraps search engine within its site is okay, but often it's easy just to go here and google will find it in the bootstrap site for you or good old stack overflow. Alright. That is it. For the overviews, let's get in to start building our site.