Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
The next thing I'd like to cover is the concept of nesting rows in your layouts. So, I am taking a look right now at html file 02_05. It's in your Exercise Files folder. Go ahead and copy that on into your Bootstrap folder. And this is the HTML for that page. If you Right Click anywhere on it and choose Open in Browser, here's the page that we're looking at. So, this is the same page we've been working on with an addition. You'll see down here towards the bottom of the page that we have a series of four additional columns here.
Talking about Vaccinations, Checkups, Senior Pets, and Diet Plans. And as we make this page narrower, you'll see that the grid is adapting as we'd expect. At some break point here, I think this is the small grid, these are now stacked going two across like this. Isn't that lovely? Looks great. And we've got good source ordering going on here with the services and the additional information. So, there's nothing wrong with the way this page is laid out. Nothing at all. But what I'd really like to have happen is at these larger dimensions where I've got these four boxes going all the way across the screen.
What if I just wanted those four boxes to show up here, underneath the services information? So, just to have those four boxes there, underneath of just the Services side of things. So that my left column remains clean rather than having this content stretch all the way across the page. How could I do that? Well, there's a couple of ways you could do that. You could take the right column here, which is made up of, at least at some dimensions it's made up of eight columns, others it's made up of seven I believe. But if you've took those eight you could divide those into two columns each and you could set up your content that way.
But, that's kind of complicated and kind of strange and may or may not work well. What's the easier way to approach this is to simply nest this whole row inside of the row that already exists for where the services information is dwelling. And so I'm going to show you how to do that now. So if you scroll on down here. We're looking at the row 2 area and it's its own row. So this is row 3 starting at line 38. So here is the layout for those four little boxes.
We have the column medium and the column extra small. Sort of grid systems associated with these. What I'd like to do is somehow get this whole row inside of and as part of the article that is already there on the page. So what I'm going to do here is, I'm actually going to take row 3 here. Starting at line 38. And I'm going to go through and I'm going to cut all of this entire row. The whole thing. And I'm going to move it on up the page here to just at the end of the paragraph here. Just before the /article tag around line 30.
And we're going to go ahead and paste right here. So there's that row and I'm going to go ahead and highlight that one more time and I'm just going to indent that a little bit so that we can see it a little bit more clearly. There we go. And I'm going to go ahead and save this page. File. Save. And, now if you refresh this page in your browser, you'll see that this entire row is now nested right here inside of this column that's talking about services. And there's our four boxes. Now, those of you with sharp eyes are going to notice that we have some weird alignment things that are going on here.
Some of these boxes are possibly pushed down a little bit lower than other boxes and there's other various alignment things that are happening here that may be bothering you at this point in time. Try not to let them bother you. We are going to be doing quite a bit more with these boxes and we're going to take care of some of those alignment issues in future videos. But before we get to all of that styling stuff, I want to finish up with the grid. And the next thing I want to take a look at is some device specific styling inside of Bootstrap.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.