Bootstrap Topics What is bootstrap? Documentation

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
JQuery Mobile. Benefits Required links Remember that we need to add the links to the head, in this order.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
ADVANCED MICROSOFT POWERPOINT Lesson 6 – Creating Tables and Charts
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Kathy E. Responsive Design and Twitter Bootstrap.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Website Development with Dreamweaver
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Sports Website Creation. In this project you will design and produce your own website.
Bootstrap by:- Vignesh Dhamodaran. What is Bootstrap? Originally created by a designer and a developer at Twitter. So initial name is Twitter Bootstrap.
Positioning Objects with CSS and Tables
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
A gentle introduction to Bootstrap MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/18/
Fundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Textbook to be published by Pearson Ed in early Bootstrap.
A gentle introduction to Bootstrap TDAP Jeremy Shafer Department of MIS Fox School of Business Temple University Spring
Overview Review Elements
Front-end framework 1.
Bootstrap L. Grewe.
Bootstrap KS Technologies.
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
Dreamweaver – Setting up a Site and Page Layouts
CNIT131 Internet Basics & Beginning HTML
Cookies, Sessions, Bootstrap
CS 0134 (term 2181) Jarrett Billingsley
Bootstrap 3 SoftUni Team Technical Trainers Software University
PHP MySQL Crash Course with HTML CSS
Twitter Bootstrap Grid System
CSS Layouts: Positioning and Navbars
A gentle introduction to Bootstrap
CSS Bootstrap.
Website implementation
Front-End Framework for Responsive Web Sites
With Microsoft FrontPage 2000
Human Computer Interaction
Intro to Dreamweaver Web Design Section 8-1
ASP.NET Web Controls.
© 2016, Mike Murach & Associates, Inc.
What is Bootstrap? Front-End Framework Mobile First
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Website implementation - modals
DHTML tidbits.
User Interface Design and Usability Bootstrap
IS1500: Introduction to Web Development
Bootstrap響應式網頁設計 (Responsive Web Design, RWD)
Web System & Technology
Revision.
© Paradigm Publishing, Inc.
Overview Review Elements
TOPICS Chrome Dev Tools Process for Building a Static Website
DHTML tidbits.
Of HTML, CSS and JavaScript
A gentle introduction to Bootstrap
Responsive Framework.
Website implementation - continued
Responsive Web Design and Bootstrap
DHTML tidbits.
CSS and Bootstrap MIS 2402 Jeremy Shafer Department of MIS
CSS and Bootstrap MIS 3502 Jeremy Shafer Department of MIS
Responsive Web Design and Bootstrap
CS3220 Web and Internet Programming Introduction to Bootstrap
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
JavaScript Basics Topics Review Important Methods Writing Functions
Web Client Side Technologies Raneem Qaddoura
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Multiple Columns By Derek Peacock
Bootstrap/WebFlow Web development of the future
Presentation transcript:

Bootstrap Topics What is bootstrap? Documentation Media Queries for responsiveness Usage : Link or download? Building a responsive web page using bootstrap Modals: Gootstrap plug-ins for interactive dialog windows. Bootstrap

What is Bootstrap? Bootstrap is a professionally developed framework from Twitter. There are dozens of frameworks available, but Bootstrap is currently either one of the most popular or the most popular frameworks available. Bootstrap provides a framework similar to the one we created earlier in the week. This framework is a responsive and is organized by a grid of rows and columns. Boostrap also include some advanced functionality Collection of typography classes JavaScript modules

Explore Bootstrap Documentation http://bootstrapdocs.com/v3.0.3/docs/css/ Research the grid system in Bootstrap. Question: Classes are based on a grid system. What are those classes? Question: Where are rows placed? Question: How many columns can be placed in a row? Question: What Media query breakpoint is used for a small tablet device?

What classes used to create the mockup?

.grid .row .col-1 .col-2 … .col-12 All content was organized in a grid container. The grid container holds four rows. Each row contains columns. The first row holds two columns. The second and third rows hold one column. The last row holds three columns. Bootstrap classes

Bootstrap Usage: Link or Download? Bootstrap is big! There are two options for using Bootstrap. Link the CDN (content delivery network) Download bootstrap and use it directly from our CSS folder.

Bootstrap Usage: Using a Link to the CSS files A link CDN (content delivery network) makes it easy to reference Bootstrap files located on another network. Functionality can be added quickly. NOTE: We will be using a CDN <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">

Bootstrap Usage: Download Bootstrap Remember that bootstrap is big! Bootstrap can be downloaded and used directly from our CSS folder. Downloading bootstrap is flexible. Bootstrap allows us to pick and choose specific parts of the framework that we need.

Build a Website using Bootstrap

Task 1: Construct the design by considering the DOM Examine the mockup and model it using boxes. These boxes will represent the divisions on the page. Use a <div> container to encompass the entire page. Subdivide elements by row divisions. Question: Which bootstrap classes should you use to wrap the first row of “Feature” items? Which class should you use to wrap one single featured item?

Task 2: Build the Webpage using the DOM design and bootstrap <!DOCTYPE html <html> <head> <title>Lab Bootstrap</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> </head>   <body> <div class="container"> </div> </body> </html> Six rows will be placed here.

Task 2 continued…….Rows 1 - 3 <div class="row"> <div class="col-md-6"> <img src="images/demo.gif" alt "logo"> </div> <div class="col-md-6 text-right text-uppercase"> <h1>Bobo Smith</h1> <h4>Web Programmer</h4> </div> <div class=" row "> <div class="col-md-12"> <img class="img-responsive" src="images/girl.png" alt="girl"> </div> <div class="col-md-12"> <h2>Features</h2> </div>

Task 2 continued……. Rows 4 - 6 <div class="col-md-4"> <img src="images/bw1.png" alt="bw1" width=100%"> <h4 class="text-uppercase">JavaScript</h4> <p>https://github.com/android</p> </div> <img src="images/bw2.png" alt="bs2" width="100%"> <h4 class="text-uppercase">Samples</h4> <p>https://github.com/model</p> <img src="images/bw3.png" alt="bs3" width="100%"> <h4 class="text-uppercase">Back-end</h4> <p>https://github.com/sample</p>

Task 3: Test Responsiveness Make alterations to the images so that they resize automatically. Test the webpage. Question: Which class should you apply to images to make them resize automatically? Research Bootstrap documentation. Answer: The correct class is img-responsive. Example: <div class=" row "> <div class="col-md-12"> <img class="img-responsive" src="images/girl.png" alt="girl"> </div>

Task 4: Customize with additional CSS Include styles that are unique within your own page. Change background color set margins and padding Modify font styles (color, typeface, weight)

Solution

Modals Modal are Bootstrap features that uses JavaScript for interactivity. Typically modal attributes are attached to a button. An image can also serve as a button. We will attach modals to the images in our portfolio. A copy and paste solution can be found on the next slide.

<!DOCTYPE html <html land="en"> <head> <meta charset="utf-8"> <title>Lab Bootstrap</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head>   <body> <div class="container"> <div class="row"> <div class="col-md-6"> <img src="images/demo.gif" alt "logo"> </div> <div class="col-md-6 text-right text-uppercase"> <h1>Bobo Smith</h1> <h4>Web Programmer</h4> <div class="col-md-12"> <img class="img-responsive" src="images/girl.png" alt="girl"> </div> <div class="col-md-12"><h1>Features</h1> </div> <div class="col-md-4"> <img src="images/bw1.png" alt="bw1" width=100%" data-toggle="modal" data-target="#project1"> <h4 class="text-uppercase">JavaScript</h4> <p>https://github.com/android</p> <img src="images/bw2.png" alt="bs2" width="100%"> <h4 class="text-uppercase">Samples</h4><p>https://github.com/model</p> <img src="images/bw3.png" alt="bs3" width="100%"> <h4 class="text-uppercase">Back-end</h4> <p>https://github.com/sample</p> <!-- MODAL FOR FEATURE PROJECT 1 --> <div class="modal fade" id="project1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="myModalLabel">Favorite feature Page</h4> <div class="modal-body"> <img class="img-responsive" src="images/bw1.png"> this was dkdkd there are no places to go. I must turn back now before it all disappears before my eyes. The fries are cold, but the coffee is strong and hot. I will survive. <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </body> </html>

Bootstrap Tradeoffs There is a trade off between using an established framework like Bootstrap or using your own framework. Bootstrap has a lot of features – You can build a tremendous amount with Bootstrap. However, when you want to do things Bootstrap doesn't support, you may wish to construct your own.  There is a lot of freedom when implementing your own framework.