Responsive Grid Layout with Bootstrap

Slides:



Advertisements
Similar presentations
What is jQuery Mobile? How to use it? Doncho Minkov Telerik Corporation Technical Trainer.
Advertisements

Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Using CSS for Page Layout. Types of HTML Elements Block-Level Element –Creates blocks of content e.g. div, h1..h6, p, ul, ol, li, table, form –They start.
CISC 474: Advanced Web Technologies HTML5 & CSS3, & Responsive Design.
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
WDV 331 Dreamweaver Applications Designing Websites for Mobile Devices Dreamweaver CS6 Chapter 11.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
Frontend - HTML5 - CSS3 - Bootstrap 3.x. SemanticsPerformanceCSS3.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  float & clear  display & visibility.
Introduction to Bootstrap
learn. do. dream. Bootstrapping with Twitter Bootstrap Responsive Layouts CSS Components JavaScript Font Awesome Select2 Themes.
Bootstrap Front-End Framework for Responsive Web Sites Svetlin Nakov Technical Trainer Software University
Positioning Objects with CSS and Tables
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
Basic Elements of Responsive Web Design Jason Bengtson, MLIS, AHIP Emerging Technologies/R&D Librarian UNM Health Sciences Library and Informatics Center.
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.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
A gentle introduction to Bootstrap TDAP Jeremy Shafer Department of MIS Fox School of Business Temple University Spring
Cascading Style Sheets for layout
Working with Cascading Style Sheets
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
>> Navigation and Layouts in CSS
PHP MySQL Crash Course with HTML CSS
Implementing Responsive Design
Organizing Content with Lists and Tables
CSS Bootstrap.
What’s New In Bootstrap v4?
Front-End Framework for Responsive Web Sites
Responsive Design and Twitter Bootstrap
Cao Yuewen SEEM4570 Tutorial 03: CSS Cao Yuewen
Positioning Objects with CSS and Tables
Introduction to Bootstrap Bootstrap සදහා හැදින්වීම
© 2016, Mike Murach & Associates, Inc.
Arrays and files BIS1523 – Lecture 15.
DHTML tidbits.
User Interface Design and Usability Bootstrap
CS3220 Web and Internet Programming Page Layout with CSS
Bootstrap A popular HTLM, CSS, and JS framework for developing responsive, mobile first projects on the web.
CS3220 Web and Internet Programming Introduction to Bootstrap
IS1500: Introduction to Web Development
CS3220 Web and Internet Programming Page Layout with CSS
Bootstrap響應式網頁設計 (Responsive Web Design, RWD)
Responsive Design.
Revision.
CSS BEST PRACTICES.
Objectives Create a reset style sheet Explore page layout designs
DHTML tidbits.
Robert Kiffe Senior Customer Support Engineer
A gentle introduction to Bootstrap
Responsive Web Design and Bootstrap
06 | Introduction to Bootstrap
DHTML tidbits.
Responsive Web Design (RWD)
Chapter 2 Bootstrap Grid System
CS3220 Web and Internet Programming Page Layout with CSS
Responsive Web Design and Bootstrap
CS3220 Web and Internet Programming Introduction to Bootstrap
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
CSS Boxes CS 1150 Fall 2016.
Bootstrap 4 December 17, 2018.
Web Client Side Technologies Raneem Qaddoura
Web Client Side Technologies Raneem Qaddoura
Positioning Objects with CSS and Tables
Various mobile devices
Christopher Harrison Jeremy Foster
Presentation transcript:

Responsive Grid Layout with Bootstrap (modified from slideshow by Dr. Chengyu Sun California State University, Los Angeles)

About Bootstrap https://getbootstrap.com/ Originally developer by Twitter Most popular web UI library in the world “Responsive, mobile-first”

Adding Bootstrap 4 to HTML Require HTML 5, CSS, and JavaScript (some components) Starter Template at https://getbootstrap.com/docs/4.0/getting-started/introduction/ copy over the stylesheet, paste into head section copy over javascript, put it at the end of body

Overview Layout Components: various pre-built UI components like buttons Content: structures that contains content like tables Utilities: convenient and/or responsive ways to control various element properties like border, spacing, and visibility Icons: use external icon sets components contains more than just buttons – check out what is available utilities contains stuff that can be done in CSS, but bootstrap does it in a more systematic style.

Container .container .container-fluid Fixed-width Responsive, i.e. max-width changes based on screen size .container-fluid full-width before we can do layout, we must put stuff in container -fixed width is most commonly used. -trust bootstrap to figure out what the width is.

Grid Bootstrap layout is based on a grid system with rows (.row) and columns (.col, .col-<n>, and .col-<device>-<n>) Each row has 12 columns Example: grid.html Auto-width column Total # of columns: 12, <12, >12 do this instead of using float left/right in CSS 12 is the default, divide it up as you see fit. they should add up to 12! or else you’ll get funny results.

Make It Responsive … 5 device categories (grid breakpoints) based on screen width Extra small Small (sm) Medium (md) Large (lg) Extra (large) Phone (portrait) Phone (landscape) Tablet col- corresponds to extra small, col-sm is small, etc. Desktop

Breakpoints

… Make It Response col-12: 12-column wide when the device is extra small or above col-12 col-md-4: 4-column wide when the device is medium or above; 12-column wide otherwise col-12 col-md-4 colo-lg-3: ??

Utility: Display https://getbootstrap.com/docs/4.0/utilities/display/ .d-<value>, .d-<device>-<value> Value could be none, inline, block, and so on <span> is inline by default <h>, <div>, <p> are block elements <i> is inline… This is something I don’t understand.

Show/Hide Elements Responsively d-none: hide on extra small or above (i.e. always hide) d-none d-md-block: display as a block element on medium or above; hide otherwise d-none d-md-block d-lg-none: ?? (means display only on medium)