Bootstrap 3 SoftUni Team Technical Trainers Software University

Slides:



Advertisements
Similar presentations
Twitter Bootstrap. Agenda What is it? Grids and Fluid layouts Globals and Typography Tables, Forms and Buttons Navigation Media and thumbnails Responsive.
Advertisements

Responsive Design Design that Adapts to Different Devices SoftUni Team Technical Trainers Software University
Introduction to Bootstrap
Tables, Rows, Columns, Cells, Header, Footer, Colspan, Rowspan
Bootstrap Front-End Framework for Responsive Web Sites Svetlin Nakov Technical Trainer Software University
Fundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Textbook to be published by Pearson Ed in early Bootstrap.
Version Control Systems
Helpers, Data Validation
Bootstrap L. Grewe.
Bootstrap KS Technologies.
CNIT131 Internet Basics & Beginning HTML
Web API - Introduction AJAX, Spring Data REST SoftUni Team Web API
Introduction to MVC SoftUni Team Introduction to MVC
Cookies, Sessions, Bootstrap
PHP MVC Frameworks Course Introduction SoftUni Team Technical Trainers
Build a WordPress Site A Real Life Example: Create a Fully Functional WP Business Web Site from Scratch Building a WP Site SoftUni Team Technical Trainers.
PHP MySQL Crash Course with HTML CSS
State Management Cookies, Sessions SoftUni Team State Management
PHP MVC Frameworks MVC Fundamentals SoftUni Team Technical Trainers
Twitter Bootstrap Grid System
Entity Framework: Code First
A gentle introduction to Bootstrap
Databases advanced Course Introduction SoftUni Team Databases advanced
C#/Java Web Development Basics
Creating React Components with JSX and Babel
Website implementation
Front-End Framework for Responsive Web Sites
Entity Framework: Relations
The Right Way Control Flow
ASP.NET Razor Engine SoftUni Team ASP.NET MVC Introduction
MVC Architecture, Symfony Framework for PHP Web Apps
AJAX and jQuery AJAX AJAX Concepts, XMLHttpRequest, jQuery AJAX: $.ajax(), $.get(), $.post() jQuery AJAX XMLHttpRequest SoftUni Team Technical Trainers.
ASP.NET MVC Introduction
C# Web Development Basics
Arrays and Multidimensional Arrays
Design & Module Development
Introduction to Bootstrap Bootstrap සදහා හැදින්වීම
© 2016, Mike Murach & Associates, Inc.
Multidimensional Arrays, Sets, Dictionaries
Extending functionality using Collections
Making big SPA applications
C# Advanced Course Introduction SoftUni Team C# Technical Trainers
Course Overview, Trainers, Evaluation
Scheduled Tasks and Web Socket
CSS Transitions and Animations
Train the Trainers Course
Directives & Forms Capturing User Input SoftUni Team
Version Control Systems
DHTML tidbits.
User Interface Design and Usability Bootstrap
Bootstrap A popular HTLM, CSS, and JS framework for developing responsive, mobile first projects on the web.
CSS Transitions and Animations
CS3220 Web and Internet Programming Introduction to Bootstrap
Bootstrap響應式網頁設計 (Responsive Web Design, RWD)
Bootstrap Topics What is bootstrap? Documentation
Bootstrap Components Reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.
DHTML tidbits.
A gentle introduction to Bootstrap
Responsive Web Design and Bootstrap
06 | Introduction to Bootstrap
DHTML tidbits.
Responsive Grid Layout with Bootstrap
Chapter 2 Bootstrap Grid System
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
Exploring Bootstrap Components
Bootstrap 4 December 17, 2018.
Bootstrap/WebFlow Web development of the future
Presentation transcript:

Bootstrap 3 SoftUni Team Technical Trainers Software University http://softuni.bg

Table of Contents What is Bootstrap? How to import it? How grid system works Styling for the most used elements.

Have a Question? sli.do #CSharpWeb

HTML Table Table row Table header Table data index.html index.css <tr> <th>Id</th> <th>Name</th> <th>Major</th> </tr> <td>1</td> <td>Bozhidar</td> <td>C# Web</td> … </table> table { margin: 10px; } table, th, td { border: 1px solid black; border-collapse: collapse; padding: 2px; Table row Table header Table data

Bootstrap

What is a Responsive Design? Presentation layers that adjust according to the screen size of the different devices Desktop layouts Tablet layouts Mobile layouts © Software University Foundation – http://softuni.org This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.

Bootstrap Free front-end framework that provides capabilities to ensure responsive design © Software University Foundation – http://softuni.org This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.

Bootstrap Import Option 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/3.1.1/jquery.min.js"/> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"/>

Bootstrap Import Option 2 <link rel='stylesheet' href='../bootstrap/css/bootstrap.min.css'/> <script src="../jquery/jquery.min.js"></script> <script src="../bootstrap/js/bootstrap.min.js"></script>

Grid System Bootstrap includes a responsive, mobile first fluid grid system that appropriately scales up to 12 columns Col 1 Col 2 Col 12 Row 1 Row 2 Row 3 Row 4

Grid System Demo Container Row Columns index.html index.css … <div class="container-fluid"> <div class="row"> <div class="col-sm-4">Column one</div> <div class="col-sm-4">Column two</div> <div class="col-sm-4">Column three</div> </div> div { text-align: center; } Container Row Columns

Containers Rows must be placed in containers .container is fixed-width .container-fluid is full-width Leaves margin Full width, no margins

Column Classes Determines how many columns to use on different screen sizes .col-xs: Width Less than 768px .col-sm: Width Between 768px and 992px .col-md: Width Between 992px and 1200px .col-lg: Width Over 120px index.html <div class="col-sm-8 col-lg-4">Column one</div> <div class="col-sm-2 col-lg-4">Column two</div> <div class="col-sm-2 col-lg-4">Column three</div>

Column Classes (2) Width 1280px Width 768px index.html <div class="col-sm-8 col-lg-4">Column one</div> <div class="col-sm-2 col-lg-4">Column two</div> <div class="col-sm-2 col-lg-4">Column three</div> Width 1280px Width 768px

Typography with Bootstrap Provide information about the role of the text More on typography index.html <p class="text-primary">This text is important.</p> <p class="text-success">This text indicates success.</p> <p class="text-muted">This text is muted.</p> <p class="text-info">This text represents some information.</p> <p class="text-warning">This text represents a warning.</p> <p class="text-danger">This text represents danger.</p>

Alerts with Bootstrap Provide information about the outcome of an event index.html <div class="alert alert-success alert-dismissable"> <a class="close" data-dismiss="alert" aria-label="close">×</a> <strong>Success!</strong> This alert box could indicate a successful or positive action. </div> …

Buttons – coloring with Bootstrap Provide information about the role of the button index.html <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>

Buttons – sizing with Bootstrap Provide information about the size of the button More on buttons index.html <button type="button" class="btn btn-primary btn-lg">Large</button> <button type="button" class="btn btn-primary btn-md">Medium</button> <button type="button" class="btn btn-primary btn-sm">Small</button> <button type="button" class="btn btn-primary btn-xs">XSmall</button>

Icons with Bootstrap Visualize a given icon from the standard bootstrap icons-sheet If you want to use a different icon, simply change “glyphicon- cloud” to “glyphicon-iconName” Bootstrap’s icons index.html <span class="glyphicon glyphicon-cloud"></span>

Nav and Navbar with Bootstrap index.html <div class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand">Logo</a> </div> <ul class="nav navbar-nav"> <li class="active"><a href="">Home</a></li> <li><a href="">About</a></li> <li><a href="">Contact us</a></li> </ul>

Nav and Navbar with Bootstrap(2) The code from the previous slide shows the following: There can be many ways to modify and position the navbar, so you may want to check out the other options

Lists with Bootstrap Provide information about the size of the button More on lists index.html <ul class="list-group"> <li class="list-group-item">First item</li> <li class="list-group-item">Second item</li> <li class="list-group-item">Third item</li> </ul> Provide information about the size of the button More on buttons

Form with Bootstrap index.html <form class="form-horizontal"> <div class="form-group"> <label class="control-label col-sm-2">Username:</label> <div class="col-sm-4"> <input class="form-control" type="text"/> </div> </div> … </form>

HTML Table with Bootstrap index.html Hover effect <table class="table table-hover"> <tr> <th>Id</th> <th>Name</th> <th>Major</th> </tr> <td>1</td> <td>Bozhidar</td> <td>C# Web</td> … </table> Bootstrap table

Jumbotron Big box that provides information index.html <div class="container"> <div class="jumbotron"> <h1>Bootstrap</h1> <p>Mobile first framework</p> </div>

Summary Bootstrap provides an easy way to create responsive design that fits on all screens

Web Development Basics – Bootstrap https://softuni.bg/courses/ © Software University Foundation – http://softuni.org This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.

License This course (slides, examples, demos, videos, homework, etc.) is licensed under the "Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International" license © Software University Foundation – http://softuni.org This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.

Free Trainings @ Software University Software University Foundation – softuni.org Software University – High-Quality Education, Profession and Job for Software Developers softuni.bg Software University @ Facebook facebook.com/SoftwareUniversity Software University Forums – forum.softuni.bg © Software University Foundation – http://softuni.org This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.