1 / 12

Lab 4: Bootstrap and Responsive Design

Lab 4: Bootstrap and Responsive Design. User Interface Lab: GUI Lab Sep. 16 th , 2014. Projects. Project 1a grades (mostly) back Project 2 due 09/30! Better Demo of Project 2. Lab 3 goals. Overview of Bootstrap Setting Up Bootstrap Some basic Bootstrap examples. What is Bootstrap.

harlan-sosa
Download Presentation

Lab 4: Bootstrap and Responsive Design

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 4: Bootstrap and Responsive Design User Interface Lab: GUI Lab Sep. 16th, 2014

  2. Projects • Project 1a grades (mostly) back • Project 2 due 09/30! • Better Demo of Project 2

  3. Lab 3 goals • Overview of Bootstrap • Setting Up Bootstrap • Some basic Bootstrap examples

  4. What is Bootstrap • A collection of pre-compiled CSS and JS libraries that implement responsive web design • Takes a “mobile-first” perspective to design • Attempts better normalize rendering across browsers

  5. Getting Started • Make a new blank project/new HTML file. • go to: www.getbootstrap.com • click on download bootstrap • click on download bootstrap again!

  6. Getting jQuery • Bootstrap requires jQuery • go to: http://jquery.com/download/#using-jquery-with-a-cdn • or go to www.jquery.com • navigate to downloads • scroll down to “Using jquery with a cdn” • Choose a CDN to use

  7. Basic start <html> <head> <link href=“bootstrap.css”…> <sourcesrc=“jquery.js”…> <sourcesrc=“bootstrap.js”…> </head> <body>…</body> </html>

  8. Basic start <html> <head>…</head> <body> <div class=“container”> </div> </body> </html>

  9. Bootstrap Columns • Bootstrap is based on a 12 column • Also supports 4 common screen sizes • xs (< 768px) • sm (≥ 786px) • md (≥ 992px) • lg (≥ 1200px)

  10. Basic 3 column layout <div class=“container”> <div class=“row”> <div class=“col-md-4”>Column 1</div> <div class=“col-md-4”>Column 2</div> <div class=“col-md-4”>Column 3</div> </div> </div>

  11. Bootstrap Components • Forms and input groups • Navs • Glyphicons

More Related