Skip to content

tkadjm/bootstrap_practice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Part One - Landing With Bootstrap

  1. Open landing_start.html in Chrome and Sublime. Open landing_target.html in Chrome.

  2. In landing_start, remove the <link> to my_landing_styles.css. We've now wiped out all of the hard work we did last time. Refresh in Chrome to see what we're left with.

  3. Now, let's connect the document to bootstrap.css, which I have already downloaded into a subfolder called assets/css. Add this line to the <head>:

    <link rel="stylesheet" type="text/css" href="proxy.php?url=https%3A%2F%2FgitHub.com%2Fassets%2Fcss%2Fbootstrap.css">
    
  4. Try to modify the starting point until it looks like the target:

  • Replace the <table></table> element we hijacked for layout with a <div class="container"></div> element.
  • Wherever we had <tr></tr> elements, replace them with <div class="row"></div> elements.
  • Wherever we had <td></td> elements, replace them with <div class="col-md-X"></div> elements where X is a number between 1 and 12 (however many columns you want that cell to span across).
  • Now that we're done positioning, let's do some styling:

Part Two - Roster With Bootstrap

  1. Open roster_start.html in Chrome and Sublime. Open roster_target.html in Chrome.

  2. In roster_start, delete everything inside the <head> tag except for the <title>. We've now wiped out all of the hard work we did last time. Refresh in Chrome to see what we're left with.

  3. Now, let's connect the document to bootstrap.css, which I have already downloaded into a subfolder called assets/css. Add this line to the <head>:

    <link rel="stylesheet" type="text/css" href="proxy.php?url=https%3A%2F%2FgitHub.com%2Fassets%2Fcss%2Fbootstrap.css">
    
  4. Try to modify the starting point until it looks like the target:

  • Replace the <table></table> element we hijacked for layout with <div class="container"></div> element.
  • Wherever we had <tr></tr> elements, replace them with <div class="row"></div> elements.
  • Wherever we had <td></td> elements, replace them with <div class="col-md-X"></div> elements where X is a number between 1 and 12 (however many columns you want that cell to span across).
  • Now that we're done positioning, let's do some styling:

Part Three - Canvas Positioning

  1. Open canvas_positioning_start.html in Chrome and Sublime. Open canvas_positioning_target.html in Chrome.
  2. Use Shoelace.io to plan out your layout. Copy the skeleton code into your document from Shoelace.
  3. Move the content up into the right spots in the skeleton.
  4. Apply styles as needed.

Part Four - Canvas Styling

Bootstrap gives us a great foundation, but we usually have to write some of our own custom styles, too. We can link our own custom stylesheet below the link to Bootstrap and customized/override whatever we wish.

Part Five - Essential HTML

Read through details.html, index.html, and new.html and try to make sense of them. Open them in Chrome and play with them. Write down any questions you have about anything at all in them.

This is all you need to know for now.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 93.9%
  • JavaScript 3.8%
  • CSS 2.3%