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

Lab 4: Bootstrap and Responsive Design

Embed Size (px)

DESCRIPTION

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. - PowerPoint PPT Presentation

Citation preview

Page 1: Lab  4: Bootstrap and Responsive Design

Lab 4: Bootstrap and Responsive Design

User Interface Lab: GUI LabSep. 16th, 2014

Page 2: Lab  4: Bootstrap and Responsive Design

Projects

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

Page 3: Lab  4: Bootstrap and Responsive Design

Lab 3 goals

• Overview of Bootstrap• Setting Up Bootstrap• Some basic Bootstrap examples

Page 4: Lab  4: Bootstrap and Responsive Design

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

Page 5: Lab  4: Bootstrap and Responsive Design

Getting Started

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

Page 6: Lab  4: Bootstrap and Responsive Design

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

Page 7: Lab  4: Bootstrap and Responsive Design

Basic start<html>

<head><link href=“bootstrap.css”…><source src=“jquery.js”…><source src=“bootstrap.js”…>

</head><body>…</body>

</html>

Page 8: Lab  4: Bootstrap and Responsive Design

Basic start<html>

<head>…</head><body>

<div class=“container”></div>

</body></html>

Page 9: Lab  4: Bootstrap and Responsive Design

Bootstrap Columns

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

Page 10: Lab  4: Bootstrap and Responsive Design

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>

Page 11: Lab  4: Bootstrap and Responsive Design

Bootstrap Components

• Forms and input groups• Navs• Glyphicons

Page 12: Lab  4: Bootstrap and Responsive Design