Bootstrap 1/20

Similar documents
Bootstrap Carousel Tutorial

Bootstrap Carousel. jquery Image Sliders

Chapter6: Bootstrap 3. Asst.Prof.Dr. Supakit Nootyaskool Information Technology, KMITL

Building beautiful websites with Bootstrap: A case study. by Michael Kennedy michaelckennedy.net

Mateen Eslamy 10/31/13

CSS (Cascading Style Sheets)

Session 5. Web Page Generation. Reading & Reference

Front-End UI: Bootstrap

Where s My Cat? <title>where's My Cat?</title> </head> <body> <h1 class="where">where's MY CAT?</h1>

Responsive Web Design and Bootstrap MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Create First Web Page With Bootstrap

WEB/DEVICE DEVELOPMENT CLIENT SIDE MIS/CIT 310

LAMPIRAN. Index.php. <?php. unset($_session["status"]); //session_destroy(); //session_destroy();

ADVANCED JAVASCRIPT #8

Project Part 2 (of 2) - Movie Poster And Actor! - Lookup

,.., «..»

<link rel="stylesheet" href="

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p> <a href=" </a></p> </ul> <li> </li> <ol>

Bootstrap 3 CSS Classes Desk Reference

For instructions to change the logo, please refer to:

BOOTSTRAP GRID SYSTEM

ADVANCED JAVASCRIPT. #7

Dingle Coderdojo 6. Project Part 2 (of 2) - Movie Poster And Actor! - Lookup. Week 6

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

Working Bootstrap Contact form with PHP and AJAX

HTML, CSS, Bootstrap, Javascript and jquery

WEBSI TE DESIGNING TRAINING

For instructions to change the logo, please refer to: ore

This is an H1 Header. This is an H2 Header. This is an H3 Header

Doing more with Views. Creating an inline menu

HTML for D3. Visweek d3 workshop

CSS (Cascading Style Sheets): An Overview

Zero to Hero. CSS Frameworks. Zero to Hero. - Boris Fritscher 1 / 26. Bootstrap (

Website Development with HTML5, CSS and Bootstrap


appendix Introduction to Foundation, the front-end framework

Enhancing Koha s Public Reports Feature

This project will use an API from to retrieve a list of movie posters to display on screen.

IDM 221. Web Design I. IDM 221: Web Authoring I 1

Mobile Design for the Future That is Here Already. Rick Ells UW Information Technology University of Washington

IDM 221. Web Design I. IDM 221: Web Authoring I 1

Overview

BOOTSTRAP RESPONSIVE.

For instructions to change the logo, please refer to: ore

Chapter 7 BMIS335 Web Design & Development

Web Programming BootStrap Unit Exercises

26 $host = "localhost" ; 27 $user = "marcolg" ; 28 $password = "" ; 52 $connessione = new mysqli ($host, $user, $password );

Description: This feature will enable user to send messages from website to phone number.

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model

<!-- Bootstrap core CSS --> <link href=" ap.min.css" rel="stylesheet">

The Structure of the Web. Jim and Matthew

Programming web design MICHAEL BERNSTEIN CS 247

Purpose of this doc. Most minimal. Start building your own portfolio page!

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Bootstrap

Last class we looked at HTML5.

Thinking inside the box

Responsive Web Design (RWD)

Want to read more? You can buy this book at oreilly.com in print and ebook format. Buy 2 books, get the 3rd FREE!

Enhancing Responsive Layouts With

BOOTSTRAP TOOLTIP PLUGIN

Chapter 16 Mobile Web Page

For instructions to change the logo, please refer to: ore

LAMPIRAN-LAMPIRAN A. Source Code 1) Sample Controller pada HomeController.php

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

An easy way to create a website for scientific software project

Programmazione Web a.a. 2017/2018 HTML5

BOOTSTRAP 4. Veb dizajn

HTML. UC Berkeley Graduate School of Journalism

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

Chapter 3 CSS for Layout

html head meta meta link title title head body div header header main main footer © footer div body html

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model

Mobile Web Development

For instructions to change the logo, please refer to:

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

BOOTSTRAP FORMS. Wrap labels and controls in a <div> with class.form-group. This is needed for optimum spacing.

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

File: C:\xampp\htdocs\mogul\HTML\bootstrap.html 11-Sep-15, 9:56:49 9 AM

Адаптивный дизайн веб-страниц с использованием сеточных технологий

2005 WebGUI Users Conference

Lab 1: Introducing HTML5 and CSS3

More CSS. <link href="filename" type="text/css" rel="stylesheet" /> CS380

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Zurb Foundation

Introduction to Computer Science Web Development

EECS1012. Net-centric Introduction to Computing. Lecture 5: Yet more CSS (Float and Positioning)

Designing and Developing a Website. 7 May Examination Paper. Time: 3 hours

Cascading Style Sheets Level 2

KNOWLEDGE CENTER SERVICE. Customization Guide

А «- - «Exellent»» 50, 18, «Exellent»., , -., -. -,, html -. - «Exellent»,.

Cascading Style Sheets for layout II CS7026

CSC 337. Cascading Style Sheets. Marty Stepp, Rick Mercer

Django AdminLTE 2 Documentation

IDM 221. Web Design I. IDM 221: Web Authoring I 1

Stamp Builder. Documentation. v1.0.0

Web Designing Course

Django Part II SPARCS 11 undead. Greatly Inspired by SPARCS 10 hodduc

Paythru Remote Fields

UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS. CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat

Front End Programming in Designing Responsive Web Application for Imagine Cup

Web Development and HTML. Shan-Hung Wu CS, NTHU

Transcription:

http://getbootstrap.com/ Bootstrap 1/20

MaxCDN <!-- Latest compiled and minified CSS --> <link rel="stylesheet"href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/boo tstrap.min.css"> <!-- jquery library --> <scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></sc ript> <!-- Latest compiled JavaScript --> <scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></ script> Bootstrap 2/20

Bootstrap Grid System Bootstrap's grid system allows up to 12 columns across the page. If you do not want to use all 12 columns individually, you can group the columns together to create wider columns: Bootstrap 3/20

Example Grid System <div class="container-fluid"> <h1>hello World!</h1> <p>resize the browser window to see the effect.</p> <div class="row"> <div class="col-sm-4" style="background-color:lavender;">.col-sm-4 <div class="col-sm-8" style="background-color:lavenderblush;">.col-sm-8 Bootstrap 4/20

Bootstrap heading styles h1 Bootstrap heading (36px) h2 Bootstrap heading (30px) h3 Bootstrap heading (24px) h4 Bootstrap heading (18px) h5 Bootstrap heading (14px) h6 Bootstrap heading (12px) Bootstrap 5/20

Todas as tags HTML têm um ou mais estilos associados Exemplo: <h2>circle</h2> <p>the.img-rounded class adds rounded corners to an image (not available in IE8):</p> <img src="cinqueterre.jpg" class="img-rounded" alt="cinque Terre" width="304" height="236"> Bootstrap 6/20

JUMBOTRON <div class="jumbotron"> <h1>bootstrap Tutorial</h1> <p>bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile-first projects on the web.</p> Bootstrap 7/20

Alerts <h2>alerts</h2> <div class="alert alert-warning"> <strong>warning!</strong> This alert box could indicate a warning that might need attention. <div class="alert alert-danger"> <strong>danger!</strong> This alert box could indicate a dangerous or potentially negative action. Bootstrap 8/20

Buttons <h2>button Styles</h2> <button type="button" class="btn btn-default">default</button> <button type="button" class="btn btn-primary">primary</button> <button type="button" class="btn btn-success">success</button> <button type="button" class="btn btn-info">info</button> <button type="button" class="btn btn-warning">warning</button> <button type="button" class="btn btn-danger">danger</button> <button type="button" class="btn btn-link">link</button> <h2>button Group</h2> <div class="btn-group"> <button type="button" class="btn btn-primary">apple</button> <button type="button" class="btn btn-primary">samsung</button> <button type="button" class="btn btn-primary">sony</button> Bootstrap 9/20

Dropdown button <div class="dropdown"> <button class="btn btn-primary dropdown-toggle" type="button" datatoggle="dropdown">dropdown Example <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">html</a></li> <li><a href="#">css</a></li> <li><a href="#">javascript</a></li> </ul> Bootstrap 10/20

Lists <h2>list Group With Custom Content</h2> <div class="list-group"> <a href="#" class="list-group-item active"> <h4 class="list-group-item-heading">first List Group Item Heading</h4> <p class="list-group-item-text">list Group Item Text</p> </a> <a href="#" class="list-group-item"> <h4 class="list-group-item-heading">second List Group Item Heading</h4> <p class="list-group-item-text">list Group Item Text</p> </a> Bootstrap 11/20

FORMS Bootstrap supports all the HTML5 input types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color. <h2>login</h2> <form> <div class="form-group"> <label for="email">email:</label> <input type="email" class="form-control" id="email" placeholder="enter email"> <div class="form-group"> <label for="pwd">password:</label> <input type="password" class="form-control" id="pwd" placeholder="enter password"> <div class="checkbox"> <label><input type="checkbox"> Remember me</label> <button type="submit" class="btn btn-default">submit</button> </form> Bootstrap 12/20

Media Objects <!-- Left-aligned media object --> <div class="media"> <div class="media-left"> <img src="img_avatar1.png" class="media-object" style="width:60px"> <div class="media-body"> <h4 class="media-heading">left-aligned</h4> <p>lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> Bootstrap 13/20

Bootstrap Carousel Plugin <html lang="en"> <head> <title>bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <style>.carousel-inner >.item > img,.carousel-inner >.item > a > img { width: 70%; margin: auto; } </style> </head> <body> <br> <div id="mycarousel" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#mycarousel" data-slide-to="0" class="active"></li> <li data-target="#mycarousel" data-slide-to="1"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="img_chania.jpg" alt="chania" width="460" height="345"> Bootstrap 14/20

<div class="item"> <img src="img_chania2.jpg" alt="chania" width="460" height="345"> <!-- Left and right controls --> <a class="left carousel-control" href="#mycarousel" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">previous</span> </a> <a class="right carousel-control" href="#mycarousel" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">next</span> </a> </body> </html> Bootstrap 15/20

Modal Plugin 1 <h2>modal Example</h2> <!-- Trigger the modal with a button --> <button type="button" class="btn btn-info btn-lg" data-toggle="modal" datatarget="#mymodal">open Modal</button> <!-- Modal --> <div class="modal fade" id="mymodal" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"> </button> <h4 class="modal-title">modal Header</h4> <div class="modal-body"> <p>some text in the modal.</p> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">close</button> Bootstrap 16/20

Modal Plugin 2 Bootstrap 17/20

Tooltip & Popover Plugins <h1>tooltip</h1> <a href="#" data-toggle="tooltip" title="hooray!">hover over me</a> <script> $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); </script> <h3>popover Example</h3> <a href="#" data-toggle="popover" title="popover Header" data-content="some content inside the popover">toggle popover</a> <script> $(document).ready(function(){ $('[data-toggle="popover"]').popover(); }); </script> Bootstrap 18/20

Affix Plugin 1 <div class="container-fluid" style="backgroundcolor:#f44336;color:#fff;height:200px;"> <h1>bootstrap Affix Example</h1> <h3>fixed (sticky) navbar on scroll</h3> <p>scroll this page to see how the navbar behaves with data-spy="affix".</p> <p>the navbar is attached to the top of the page after you have scrolled a specified amount of pixels.</p> <nav class="navbar navbar-inverse" data-spy="affix" data-offset-top="197"> <ul class="nav navbar-nav"> <li class="active"><a href="#">basic Topnav</a></li> <li><a href="#">page 1</a></li> <li><a href="#">page 2</a></li> <li><a href="#">page 3</a></li> </ul> </nav> <div class="container-fluid" style="height:1000px"> <h1>some text to enable scrolling</h1> <h1>some text to enable scrolling</h1> <h1>some text to enable scrolling</h1> <h1>some text to enable scrolling</h1> <h1>some text to enable scrolling</h1> <h1>some text to enable scrolling</h1> Bootstrap 19/20

Affix Plugin 2 Before scroll After scroll navigation bar sticks to top Bootstrap 20/20