professional bootstrap training for it companies online onsite offsite

31

Upload: baabtracom-no-1-supplier-of-quality-freshers

Post on 12-Jul-2015

198 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Professional bootstrap training for it companies online onsite offsite
Page 2: Professional bootstrap training for it companies online onsite offsite

Anoop K C

[email protected]

facebook.com/anoopbaabte

in.linkedin.com/in/anoopbaabte

Page 3: Professional bootstrap training for it companies online onsite offsite

What is bootstrap?

Bootstrap is a CSS framework to make your website

"responsive".

Page 4: Professional bootstrap training for it companies online onsite offsite

How to get bootstrap

Download the files from http://getbootstrap.com/getting-started/

Use CDN(Content Delivery Network)

Install using bower ($ bower install bootstrap)

Page 5: Professional bootstrap training for it companies online onsite offsite

Bootstrap folder structure

jQuery is a pre-requisite

Page 6: Professional bootstrap training for it companies online onsite offsite

Including bootstrap in your HTML file

Page 7: Professional bootstrap training for it companies online onsite offsite

& we are all set to take off

Page 8: Professional bootstrap training for it companies online onsite offsite

General Rules of thumb

viewport = width of the device

12 columns = 100%

Page 9: Professional bootstrap training for it companies online onsite offsite

The bootstrap grid system

viewport = width of the device

12 columns = 100%

Page 10: Professional bootstrap training for it companies online onsite offsite

.container V/S .container-fluid

Has nothing to do with responsiveness

.container-fluid always takes the full width of the viewport

irrespective of the snap point

.container - The width will be fixed to the highest snap-point of a

smaller viewport and the lowest snap-point of a bigger viewport

Page 11: Professional bootstrap training for it companies online onsite offsite

Implementing a "responsive“ navbar - a few tips

Everything inside the element with class = "collapse navbar-

collapse" gets hidden when the width of the viewport decreases

the button to toggle the navigation should have the following

attributes

class = "navbar-toggle"

data-toggle = "collapse"

data-target = { id of the navbar to be collapsed on viewport change }

we can have multiple navbars on the same page - the data-

target attribute connects the toggle button and the element to be

toggled

Page 12: Professional bootstrap training for it companies online onsite offsite

Dealing with images

the "img-responsive" class makes images responsive

When creating full width images, it is better to stick on to any of the

snap-point width

When setting the height/width, only use either of the two. If you set

height the width will be adjusted automatically and vice versa.

image shapes - .img-rounded, .img-circle & .img-thumbnail

Page 13: Professional bootstrap training for it companies online onsite offsite

Bringing in "responsiveness"

the "col-xs-*", "col-sm-*" and "col-md-*" column sizes“

the "col-xs-offset-*", "col-sm-offset-*" and "col-md-offset-*" column

offsets"

Page 14: Professional bootstrap training for it companies online onsite offsite

Ordering columns

the "col-xs-push-*", "col-sm-push-*" and "col-md-push-*" classes

the "col-xs-pull-*", "col-sm-pull-*" and "col-md-pull-*" classes

Page 15: Professional bootstrap training for it companies online onsite offsite

floating classes

the "pull-right" class

the "pull-left" class

Page 16: Professional bootstrap training for it companies online onsite offsite

Columns within columns

the "pull-right" class

the "pull-left" class

Page 17: Professional bootstrap training for it companies online onsite offsite

Typography in bootstrap

there are classes in the same name for heading tags and small

tag(.h1, .h2, ...., .h6 & .small)

the lead tag

there are classes for text alignment (text-left, text-center, text-right

and text-justify)

there is a blockquote-reverse class so that we can reverse the

"blockquote">" alignment

Page 18: Professional bootstrap training for it companies online onsite offsite

glyphicons in bootstrap

there are around 200 glyphicons those are shipped with bootstrap

these are in the "fonts"folder in the bootstrap package

Usage: <span class="glyphicon glyphicon-asterisk" ></span>

the color and size of these icons can be changed with style

attributes such as color & font-size

Page 19: Professional bootstrap training for it companies online onsite offsite

responsive tables

you can convert a table into a responsive one by adding a class

"table“

the classes "table-striped, table-boardered, table-condensed, table-

hover" can be applied to bring in more style to the table

if the table is too big for smaller viewports, we can add a wrapper

div with a class "table-responsive" to the table to make it easier for the

users to view the table

there are contextual classes like "danger, info, warning, success

etc " those can be applied to rows or cells

Page 20: Professional bootstrap training for it companies online onsite offsite

responsive utilities

you can convert a table into a responsive one by adding a class

"table“

the classes "table-striped, table-boardered, table-condensed, table-

hover" can be applied to bring in more style to the table

if the table is too big for smaller viewports, we can add a wrapper

div with a class "table-responsive" to the table to make it easier for the

users to view the table

there are contextual classes like "danger, info, warning, success

etc " those can be applied to rows or cells

Page 21: Professional bootstrap training for it companies online onsite offsite

responsive utilities

you can convert a table into a responsive one by adding a class

"table“

the classes "table-striped, table-boardered, table-condensed, table-

hover" can be applied to bring in more style to the table

Page 22: Professional bootstrap training for it companies online onsite offsite

buttons

Color

sizes - .btn-lg, .btn-sm, or .btn-xs

block level buttons - .btn-block

button states - active & disabled

button tags - a, button, input (with type submit and button)

Page 23: Professional bootstrap training for it companies online onsite offsite

description lists

the dl, dt & dd tags

the .dl-horizontal class

Page 24: Professional bootstrap training for it companies online onsite offsite

Forms

the .form-group & .input-group classes

Page 25: Professional bootstrap training for it companies online onsite offsite

Forms

the .form-inline & .form-horizontal classes

Page 26: Professional bootstrap training for it companies online onsite offsite

Validation states

the .has-warning, .has-error, & .has-success classes

the .has-feedback classes and adding icons

Page 27: Professional bootstrap training for it companies online onsite offsite

Forms - control sizing

set heights using classes like .input-lg/md/sm

set widths using grid column classes like .col-lg/sm/md-*

Page 28: Professional bootstrap training for it companies online onsite offsite

checkout the huge list of components

@

http://getbootstrap.com/components/

Page 29: Professional bootstrap training for it companies online onsite offsite

Need a professional

training in Bootstrap

Please contact

[email protected]

Page 30: Professional bootstrap training for it companies online onsite offsite

Want to learn more about programming or Looking to become a good programmer?

Are you wasting time on searching so many contents online?

Do you want to learn things quickly?

Tired of spending huge amount of money to become a Software professional?

Do an online course @

baabtra.com

We put industry standards to practice. Our structured, activity based courses are so designed to make a quick, goodsoftware professional out of anybody who holds a passion for coding.

Page 31: Professional bootstrap training for it companies online onsite offsite

Follow us @ twitter.com/baabtraLike us @ facebook.com/baabtra

Subscribe to us @ youtube.com/baabtra

Become a follower @ slideshare.net/BaabtraMentoringPartner

Connect to us @ in.linkedin.com/in/baabtraGive a feedback @ massbaab.com/baabtra

Thanks in advance

www.baabtra.com | www.massbaab.com |www.baabte.com