Assignment 4 - Bootstrap

Get set up:

  • Open the project you were assigned.
  • Make sure you’ve got everything committed and pushed from the last assignment.
    • Type git status to make sure there’s nothing to commit.
    • If there is:
    • git add -A
    • git commit -m "Work on CSS Project"
    • git push
  • Create a new branch of your project:
    • Branch your code with git checkout -b bootstrap
    • Push your new branch git push -u origin bootstrap
  • Remove the CSS from the prior assignment.

Cover the following things from the rubric:

  • Remove the CSS from the prior assignment.
  • “Properly use template” Use the Bootstrap Tutorial to adapt all pages on the project to use Bootstrap. Link in Bootstrap CSS, optional theme, add in a “container” div, and link in the JavaScript near the bottom of your document.
  • Use Bootstrap menu bar” Put a Bootstrap menu bar on all your pages.
  • Style buttons with Bootstrap” Style all the buttons (there has to be at least one) with Bootstrap. Leave no button unstyled. You can apply the button style type to more than just buttons, you can apply it to a link. So you can make a link into a button that leads you to a web page.
  • “Use Bootstrap Table Styling” - The most basic thing you can do here is to make <table> into <table class="table"> to use basic Bootstrap styling. See the Official Bootstrap Table Styling Guide for examples on all the types of things you can do.
  • Use a Bootstrap alert” Put at least one Bootstrap alert somewhere on your page.
  • Use a Bootstrap Card” Properly use a card at least once.
  • “Use 12 column layout” Pick at least page, and make it into a responsive multi-column layout using Bootstrap. Don’t simply make a container with just one column, it is hard to get a sense of using the layout functions with such a simple example. Example 2 from Bootstrap Grid Tutorial is good to look at. To really learn it, see The Bootstrap Official Layout Docs.
  • “HTML and CSS are valid” Use the W3 HTML Validator to find and fix all errors.

Note

A very common mistake is to not use the <div class="container">, or to not have the footer inside that container. Check your page to make sure it does not have text running to the edge of the screen.

Also make sure you don’t have blocks of text on a colored background. That is too hard to read.

Rubric