Coder Social home page Coder Social logo

bootstrap-code-along's Introduction

BOOTSTRAP TEMPLATE

Do webdevelopers code out every line of CSS that they use? You have probably noticed that CSS is rather tricky and requires quite a bit of code in order to create a page that renders in the way that we wish it to render. Enter BOOTSTRAP.

Bootstrap is a framework of predefined CSS classes that we can import and use on our webpages. By using this framework we can quickly make our websites look more professional without reinventing the wheel. Additionally, they have extensive documentation that we can copy from and then modify on our pages. You can see some pages that were made exclusively with Boostrap here.

YOUR TASK

GOAL: You have been tasked with creating a Bootstrap page that showcases images and information about some of your favorite things.

Today we are going to practice setting up Bootstrap on a webpage and adding cards and navigation bars to create some additional style! Below outlines the steps you need to take in order to add Bootstrap to your page.

  1. Navigate to Bootstrap's documentation.
  2. Scroll down to the header that says CSS. Copy and paste the style tag into the head of your index.html file (and any other HTML file you want to use Bootstrap on). If you did this correct, you'll see the font has changed.

  1. Scroll down to the JS header. Copy and paste the three script tags at the end of the body before the </body> tag.

  1. ADDING A CARD: Now that have Bootstrap connected, we are going to add a card to our page. Cards are great because they are predefined containers that help to neatly organize information on our webpage. Websites love to use these (Pintrist is basically exclusively cards). To make a card you can:
  • Search 'cards' on the Bootstrap website or open this link.
  • Pick the card you want to use
  • Copy and paste the entire code between the <body> and </body> tags
  • This gif shows you the steps as well!

  1. ADDING MORE CARDS: Add at least 5 cards with images and information about your favorite things. This can be anything that you find interesting (activities, artists, songs, food, etc.). Make sure the cards contain an image, title, and some backgroudn information about the item.
  2. STRETCH - ADDING A NAVIGATION BAR: If you were able to do steps 1 - 4, try adding a navigation bar! Navigation bars are incredably powerful tools to create organization and structure on your webpage. To make a card you can:
  • Search 'navbar' on Bootstrap.
  • Pick the navbar you want
  • Copy and paste the entire code between the <body> and </body> tags
  • This gif shows you the steps as well!

bootstrap-code-along's People

Contributors

stevenjlance avatar slance22 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.