Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating a JumboTron-style layout

From: Up and Running with Bootstrap 3

Video: Creating a JumboTron-style layout

The next part of Bootstrap I'd like to look at is something called the Jumbotron. And if you go to the lynda.com homepage and you've never signed into the lynda.com website, you will actually see a webpage that looks like this. And, you notice that great big huge honking picture here on the lynda.com homepage with some text and a button that says Getting started. If lynda.com was coded with Bootstrap, that area of the webpage would be called the Jumbotron. Lynda.com's not coded with Bootstrap. But this is the effect that we're after when we use the Jumbotron in Bootstrap.

Creating a JumboTron-style layout

The next part of Bootstrap I'd like to look at is something called the Jumbotron. And if you go to the lynda.com homepage and you've never signed into the lynda.com website, you will actually see a webpage that looks like this. And, you notice that great big huge honking picture here on the lynda.com homepage with some text and a button that says Getting started. If lynda.com was coded with Bootstrap, that area of the webpage would be called the Jumbotron. Lynda.com's not coded with Bootstrap. But this is the effect that we're after when we use the Jumbotron in Bootstrap.

So I'm going to show you how to add this to your website next. So I am back at file 02_06. This is from your Exercise Files folder. Copy the HTML over into your Bootstrap folder on your desktop. And we're going to scroll on down here to row 2. So row 2 here starts at line 24, and this is where we're going to put the Jumbotron. So if you right click anywhere on this page and choose Open in Browser, you'll see how the page is currently looking just to refresh your memory.

We've got this picture on the top here with the, "We treat your pets like our own" and a little bit of blah, blah. All of that is the Jumbotron. Underneath that we have our four boxes of information here. And as I make this page smaller okay, so remember that these boxes are rearranging themselves further down on the page. But there's just not much going on here in this middle area, which would really lend itself well to a Jumbotron. So, I'm going to go ahead and add that now. Back in Sublime Text here, some of you who have worked with Bootstrap 2 will notice that at line 25, I have a div with a class of row.

But then I have another div the way I have saved row 3, where I have another div that's calling for various parts of the grid system. And why is that? Well, in Bootstrap 3, if you have a row that's supposed to occupy all 12 columns at any particular dimension You do not have to include this div with a class of these various grid systems. You don't have to include that anywhere at all. So that's why that little bit of code is missing from there. It's assumed when you work with a Jumbotron that it's also going to encompass 12 columns on your page.

I mean that's the point of a Jumbotron is to be really, really big and very obvious. What we need to do here then to implement our Jumbotron is really quite simple. Instead of saying a div with a class of row, we're just going to say a div with a class of Jumbotron. Go ahead and save that. And if you refresh your web browser, you'll see that lo and behold we have a Jumbotron. That's all there is to it. So, here's our Jumbotron at a very large screen dimension. And, as I start to narrow the screen down here, you'll see that just like everything else in Bootstrap, this is adapting nicely to the smaller dimensions.

Alright, so one of the things that we might do to make this Jumbotron look a little bit nicer, is to take this image and maybe float it. We probably want to float it over to the right maybe, or the left, and wrap the text around it to make it look a little bit more nice. And Bootstrap does have classes for that. And we can go ahead an add those. Right here in the Jumbotron itself we could add a class. Of pull-right. And this is a class that's designed to float images. If we wanted it to go to the left, guess what the class would be? That's right, pull-left. So, go ahead and save that.

And if we refresh our web page There we go. So that looks a little bit better. We now have a nice little image over here off to the right side of the page. One of the other things you might want to do is round the corners on that image, for example. Maybe you want to round the corners on a number of images. There might be other things you'd like to do. I'm going to get to some of that other styling in later videos. But that's basically it in Bootstrap. That's how you make a Jumbotron, which used to be called the Hero Unit.

Show transcript

This video is part of

Image for Up and Running with Bootstrap 3
Up and Running with Bootstrap 3

37 video lessons · 23172 viewers

Jen Kramer
Author

 
Expand all | Collapse all
  1. 5m 25s
    1. Welcome
      58s
    2. Using the exercise files
      1m 19s
    3. Installing Sublime Text 2
      3m 8s
  2. 29m 0s
    1. What is Bootstrap?
      8m 1s
    2. Downloading and unzipping Bootstrap 3
      4m 31s
    3. Examining Bootstrap file structure
      4m 34s
    4. Adding CSS to a Bootstrap HTML file
      4m 35s
    5. Adding JavaScript to a Bootstrap HTML file
      7m 19s
  3. 44m 38s
    1. Exploring Bootstrap's grid system
      9m 10s
    2. Creating new rows and cells
      14m 5s
    3. Adjusting column widths using offset
      5m 2s
    4. Changing column order using push and pull
      5m 34s
    5. Nesting columns
      3m 43s
    6. Creating a JumboTron-style layout
      3m 41s
    7. Challenge: Working with grids
      1m 31s
    8. Solution: Working with grids
      1m 52s
  4. 53m 34s
    1. Exploring basic typography: The small and blockquote tags
      4m 29s
    2. Exploring Bootstrap's responsive classes including .hidden and .visible
      4m 44s
    3. Styling buttons using btn classes
      4m 43s
    4. Styling images with responsiveness and decorative touches
      5m 22s
    5. Incorporating Bootstrap 3 glyph icons
      3m 28s
    6. Creating a thumbnail gallery
      6m 2s
    7. Styling tabular data
      5m 3s
    8. Overriding core CSS with custom styles
      12m 53s
    9. Challenge: Styling panels and callouts
      2m 17s
    10. Solution: Styling panels and callouts
      4m 33s
  5. 27m 41s
    1. Implementing location breadcrumbs
      6m 38s
    2. Using tabs and pills for navigation
      6m 58s
    3. Developing a responsive navigation bar
      9m 9s
    4. Challenge: Modify the "pancake" button
      1m 3s
    5. Solution: Modify the "pancake" button
      3m 53s
  6. 37m 45s
    1. Implementing dropdowns within a navigation bar
      5m 5s
    2. Tabbing within the same page
      15m 45s
    3. Accordion panels with collapse functionality
      11m 37s
    4. Challenge: Tooltips
      1m 59s
    5. Solution: Tooltips
      3m 19s
  7. 3m 0s
    1. Next steps towards advanced Bootstrap
      3m 0s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Up and Running with Bootstrap 3.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.