Skip to content

Latest commit

 

History

History

bootstrap

Bootstrap exercises

Exercise #1: 960.gs

This is not an exercise about Bootstrap (yet).

Complete exercise1.html such that that page displays as shown below: Exercise1

You need to create the boxes using the prepared CSS classes. See this page for an example.

Hint: the first (blue) box becomes:

<div class="grid_6"><div class="blue"></div></div>

Exercise #2: Grid layout

Complete exercise2.html to create the following layout using Bootstrap.
 Start with the mobile view.

Hint: use responsive classes on rows.

Mobile view: Exercise2 mobile

Desktop view: Exercise2 desktop

Exercise #3: Tables

Complete the Bootstrap table exercises from the W3C tutorial: 1, 2, 3, 4, 5, 6.

Exercise #4: Images

Complete the Bootstrap image exercises from the W3C tutorial: 1, 2, 3, 4.

Exercise #5: Buttons

Complete the Bootstrap button exercises from the W3C tutorial: 1, 2, 3, 4.

Exercise #6: Simple form

Style the form given in exercise6.html using Bootstrap. (You will also need to include the Bootstrap css file in the header.) See the Bootstrap form documentation for help.

Exercise6

Exercise #7: Wild & Wacky Vegetables

(Taken from http://www.pairuptocode.com/exercises/bootstrap.html)

Format and extend the given starer html file using Bootstrap by following the steps below.

  1. Use the Bootstrap grids classes to create a sidebar and main content.

Exercise7/1

  1. Use the Bootstrap base CSS classes to add a quote, table, and search form to the page:

Exercise7/2

  1. Use the Bootstrap alert component to add a danger alert. Use the thumbnails classes to give the images borders.

Exercise7/3

Exercise #8: Components

Try the different Bootstrap components in action by building the following page step-by-step. There is no starter file for this exercise, you need to code everything from scratch.

  1. Add a navigation bar, a full-width jumbotron, and 3 columns with some content.

Exercise8/1

  1. Extend the navigation bar with the followings:
  • The navbar should always be fixed on the top of the screen.
  • Add three menu items plus a dropdown menu to the left. Mark the second menu item as active.
  • Add a sign-in form with email and passwords fields to the right.

Exercise8/2 Exercise8/2b

  1. Add a primary "Learn more" button to the jumbotron, and "View details" buttons in medium size with different glyphicons under the text blocks in each column.

Exercise8/3

  1. Add a dismissable alert below the jumbotron, and a "New" label to the heading in the third column. Further, add a badge with a number to the "Contact" item in the navbar.

Exercise8/4