CS3220 Web and Internet Programming Introduction to Bootstrap

Slides:



Advertisements
Similar presentations
Coding a Responsive HTML
Advertisements

Twitter Bootstrap. Agenda What is it? Grids and Fluid layouts Globals and Typography Tables, Forms and Buttons Navigation Media and thumbnails Responsive.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
Unit 20 - Client Side Customisation of Web Pages
Bootstrap & CSS James Kahng. Intro Websites require a lot of upfront setup to look passably good (HTML base, CSS style, etc.) Because of this, people.
CISC 474: Advanced Web Technologies HTML5 & CSS3, & Responsive Design.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Kathy E. Responsive Design and Twitter Bootstrap.
WDV 331 Dreamweaver Applications Designing Websites for Mobile Devices Dreamweaver CS6 Chapter 11.
Frontend - HTML5 - CSS3 - Bootstrap 3.x. SemanticsPerformanceCSS3.
Introduction to Bootstrap
Bootstrap by:- Vignesh Dhamodaran. What is Bootstrap? Originally created by a designer and a developer at Twitter. So initial name is Twitter 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
ACM 262 INTRODUCTION TO WEB DESIGN Week-7 ACM 262 Course Notes.
 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.
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
Front-end framework 1.
Bootstrap KS Technologies.
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
CNIT131 Internet Basics & Beginning HTML
>> Navigation and Layouts in CSS
Cascading Style Sheets Boxes
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
Introduction to Bootstrap Bootstrap සදහා හැදින්වීම
© 2016, Mike Murach & Associates, Inc.
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.
IS1500: Introduction to Web Development
CS3220 Web and Internet Programming Page Layout with CSS
Bootstrap響應式網頁設計 (Responsive Web Design, RWD)
Responsive Web Applications with Bootstrap & CSS
HTML5 Level III Responsive Web Design (RWD) and Front-End Frameworks
Revision.
Objectives Create a reset style sheet Explore page layout designs
Bootstrap Components Reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.
Fixed Positioning.
DHTML tidbits.
HTML5 Level III Responsive Web Design (RWD) and Front-End Frameworks
Responsive Web Design and Bootstrap
06 | Introduction to Bootstrap
DHTML tidbits.
Responsive Grid Layout with Bootstrap
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
HTML5 Level III Responsive Web Design (RWD) and Front-End Frameworks
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
Bootstrap 4 December 17, 2018.
Web Client Side Technologies Raneem Qaddoura
CS3220 Web and Internet Programming More CSS
Web Client Side Technologies Raneem Qaddoura
CS3220 Web and Internet Programming More CSS
Various mobile devices
CS3220 Web and Internet Programming More CSS
Presentation transcript:

CS3220 Web and Internet Programming Introduction to Bootstrap 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/

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

Container .container .container-fluid Fixed-width Responsive, i.e. max-width changes based on screen size .container-fluid full-width

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

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 Desktop

… 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 col-lg-3: ??

My Globe Example Header and menu 3-column layout Responsive behavior

Component: Navbar ... <nav> Brand .navbar .navbar-expand-<device> Color Scheme Brand Link, image, and/or text .navbar-brand

… Component: Navbar Menu Menu button and collapse behavior <ul> with .navbar-nav <li>with .nav-item <a> with .nav-link Menu button and collapse behavior <button> with .navbar-toggler and an icon A collapsible element with .collapse and .navbar-collapse

About Bootstrap Utilities Q: Why not just use plain CSS? A: Convenience, Responsiveness, and Theme

Utilities: Border and Color Color theme

Utilities: Margin and Padding {property}{sides}-{size} or {property}{sides}-{breakpoint}-{size} See https://getbootstrap.com/docs/4.0/utilities/spacing/

Utility: Display https://getbootstrap.com/docs/4.0/utilities/display/ .d-<value>, .d-<device>-<value> Value could be none, inline, block, and so on

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: ??

Using Icons https://tagliala.github.io/vectoriconsroundup/ I’d recommend Font Awesome and MDI (for websites using Material Design)

Using Font Awesome Icons https://fontawesome.com/get-started Include Font Awesome JavaScript code in HTML <i class=“<style prefix> <icon name> [additional styling]”></i> See https://fontawesome.com/how-to-use/svg-with-js for more details