Bootstrap
Short Description
Download Bootstrap...
Description
Lift O! Level 1, Section 1
Lift O! Level 1, Section 1
So You Want To Build a Website… An attractive, functioning website requires basic knowledge of structure, style, and behavior.
HTML
Page Structure
CSS
Element Styling
JavaScript
Page Behavior
Website Development Follows Some Typical Patterns Writing HTML, CSS, and JavaScript repeatedly will reveal just how much work a good website can require.
HTML
CSS
JavaScript
Website Development Follows Some Typical Patterns Writing HTML, CSS, and JavaScript repeatedly will reveal just how much work a good website can require.
HTML
CSS
JavaScript
Website Development Follows Some Typical Patterns Writing HTML, CSS, and JavaScript repeatedly will reveal just how much work a good website can require.
HTML
CSS
JavaScript
Website Development Follows Some Typical Patterns Writing HTML, CSS, and JavaScript repeatedly will reveal just how much work a good website can require.
HTML
CSS
JavaScript
Website Development Follows Some Typical Patterns Writing HTML, CSS, and JavaScript repeatedly will reveal just how much work a good website can require.
HTML
CSS
JavaScript
Frameworks Can Make Our Site-Building Life Much Easier A framework is a downloadable library of tools that assist with adding style and functionality to your website.
HTML
CSS
JavaScript
Bootstrap
IHI H I BHI JA BL FJAN HINAC
What Will Bootstrap Do For Us? Bootstrap lets us skip writing CSS and JavaScript when starting out. We focus instead on HTML.
HTML
CSS
JavaScript
Bootstrap
What Will Bootstrap Do For Us? Bootstrap lets us skip writing CSS and JavaScript when starting out. We focus instead on HTML.
HTML
Bootstrap.css
Bootstrap.js
Bootstrap
QAA JA HB HIJIJ C IC AI IHI
What to Expect From Bootstrap Let’s take a look at some great examples of the magic that Bootstrap can make very quickly.
What to Expect From Bootstrap Here’s the goal for our end product at the end of this course.
How To Get A Hold of Bootstrap There are three ways to get access to the framework, and we’ll focus on one in particular.
http://go.codeschool.com/bootstrap-download
, NJ AN CL .HH HH
What Does The Framework Consist Of? Let’s take a quick at Bootstrap’s !le structure to get a broad awareness of what we’re using.
dist
What Does The Framework Consist Of? Let’s take a quick at Bootstrap’s !le structure to get a broad awareness of what we’re using.
dist css fonts js
What Does The Framework Consist Of? Let’s take a quick at Bootstrap’s !le structure to get a broad awareness of what we’re using.
dist css bootstrap-theme.css bootstrap-theme.css.map bootstrap-theme.min.css bootstrap.css bootstrap.css.map bootstrap.min.css
fonts js
H H I BC IHIHH A LQAA JH C J . H ,I LAA H JH B CC I LI JC BC AH JH LC I HI H A JI J ABCI LQAA JH I CCBC CH
What Does The Framework Consist Of? Let’s take a quick at Bootstrap’s !le structure to get a broad awareness of what we’re using.
dist css fonts js
What Does The Framework Consist Of? Let’s take a quick at Bootstrap’s !le structure to get a broad awareness of what we’re using.
dist css fonts glyphicons-hal"ings-regular.eot glyphicons-hal"ings-regular.svg glyphicons-hal"ings-regular.ttf glyphicons-hal"ings-regular.wo#
js
IHI H CI II C JH H CH QAA I I IH IIN HC
What Does The Framework Consist Of? Let’s take a quick at Bootstrap’s !le structure to get a broad awareness of what we’re using.
dist css fonts js
What Does The Frame Framework work Consist Of? Let’s take a quick at Bootstrap’ Bootstrap’ss !le structure to get a broad awareness of what we’r we’re e using.
dist css fonts js bootstrap.js bootstrap.min.js npm.js
C I CL JC -I! IHI IHI LAA LA A B I HN H N C JH JH
What Does The Frame Framework work Consist Of? Let’s take a quick at Bootstrap’ Bootstrap’ss !le structure to get a broad awareness of what we’r we’re e using.
dist css fonts js
Getting Started: Creating a Basic HTML File To get up and running with Bootstrap, we’ll need to establish our site’s home page with some HTML. > >Blasting Off With Bootstrap
HI LQAA I HIJ LI INP
PIC H I LI IIA
Getting Started: Creating a Basic HTML File To get up and running with Bootstrap, we’ll need to establish our site’s home page with some HTML. Blasting Off With Bootstrap Blasting Off With Bootstrap The Fastest Way to Space Book Today!
Go Anywhere
RocketBus®
MI LQAA B N C HB CICA CH
Getting Started: Creating a Basic HTML File To get up and running with Bootstrap, we’ll need to establish our site’s home page with some HTML. Blasting Off With Bootstrap
L LQAA HB H I H J CH
Blasting Off With Bootstrap The Fastest Way to Space Make your way to space in the comfort of your own rocket, elevator or transporter. Book Today! Even if you're traveling tomorrow, you can still get tickets today. We have a number of conveniently located ports around the globe to service everyone. Go Anywhere If you need to get to space today, why not try out a transporter? Despite the claims, there are have been no deaths in the last 6 weeks! RocketBus® For cheapest fares, catch the next RocketBus® to the stars. Cheaper on your wallet, and easiest way to make friends.
Getting Started: Creating a Basic HTML File To get up and running with Bootstrap, we’ll need to establish our site’s home page with some HTML. Blasting Off With Bootstrap Blasting Off With Bootstrap The Fastest Way to Space
Book Today! Go Anywhere RocketBus®
Getting Started: Creating a Basic HTML File To get up and running with Bootstrap, we’ll need to establish our site’s home page with some HTML. Blasting Off With Bootstrap Blasting Off With Bootstrap The Fastest Way to Space Book Today!
...
Go Anywhere
...
RocketBus®
...
...
Getting Started: Creating a Basic HTML File To get up and running with Bootstrap, we’ll need to establish our site’s home page with some HTML. Blasting Off With Bootstrap Blasting Off With Bootstrap The Fastest Way to Space
...
Take the Tour Book Tickets Now
Book Today!
...
Go Anywhere
...
RocketBus®
...
CH J CICI LQAA JA JIICH JH I C LI JC J C IH
Viewing Our Page Before Using Bootstrap Here’s a view of our basic HTML without any of the magic of Bootstrap.
Adding the Bootstrap Framework To get Bootstrap acting on our content, we’ll need to import a few extra items on our page. Blasting Off With Bootstrap ...
QAA HI C I CAJ I IHI AN N JHC AI I
dist/index.html
Adding the Bootstrap Framework To get Bootstrap acting on our content, we’ll need to import a few extra items on our page. Blasting Off With Bootstrap ...
QAA AH CAJ ?2JN JH IHI CH I I JC A ICH
dist/index.html
Adding the Bootstrap Framework To get Bootstrap acting on our content, we’ll need to import a few extra items on our page. Blasting Off With Bootstrap ...
ICAAN QH I IHI -I ANP LQAA MA IH AI
dist/index.html
The E! ects of Adding Bootstrap Let’s check out what Bootstrap will do to our existing HTML page.
QH J CIA MHIC
The E! ects of Adding Bootstrap Let’s check out what Bootstrap will do to our existing HTML page.
?JHI CI C C HB CIAN HINA JIICH QH HIAA JC L C !
Our Visual Goal For This Level We’ll be using classes to improve our HTML visually, but without writing a single line of CSS.
QAA I J CICI CI ILC H BCH JHC IHIQH .container AHH
The container Class Bootstrap’s container class will responsively add margins, center, and wrap our content. index.html Blasting Off With Bootstrap The Fastest Way to Space Take the Tour Book Tickets Now Book Today! ... Go Anywhere ... RocketBus® ...
QH AA J HA CICI LIC J N I
The container Class Bootstrap’s container class will responsively add margins, center, and wrap our content. index.html
C container AHH IH M LI ABCI II HCH I I JCI H I LH LCL .
Blasting Off With Bootstrap The Fastest Way to Space
Take the Tour Book Tickets Now Book Today! ... Go Anywhere ... RocketBus® ...
The container Class Bootstrap’s container class will responsively add margins, center, and wrap our content.
H LAA I J I CI LI HBI C L C IAI C!
The container Class Bootstrap’s container class will responsively add margins, center, and wrap our content.
The container-fluid Class Bootstrap’s container-fluid class allows for stretching if it is desired on larger screens. index.html > Blasting Blasting Off With Bootstrap Bootstrap The The Fastest Way to Space Space >Take the Tour >Book Tickets Now Book Book Today! Today! ... ... Go Go Anywhere Anywhere ... ... RocketBus® RocketBus® ... ...
The container-fluid Class Bootstrap’s container-fluid class allows for stretching if it is desired on larger screens. index.html > Blasting Blasting Off With Bootstrap Bootstrap The The Fastest Way to Space Space >Take the Tour >Book Tickets Now Book Book Today! Today! ... ... Go Go Anywhere Anywhere ... ... RocketBus® RocketBus® ... ...
L J IJH LAA I CIC II LAA HII I CI IIN HINAH C JHJA C CAN C AHH!
The container-fluid Class Bootstrap’s container-fluid class allows for stretching if it is desired on larger screens.
Lift O! Level 1, Section 1
Thinking In Grids Level 2, Section 1
Our Site Wrapped in a .container So far we’ve learned how a .container class helps structure our content.
8 FO F T OFH 5 A I C OE L0
Site Structure: Rows Rows are horizontal groupings of data
8 FO E , C AO
Site Structure: Columns Columns are vertical groupings of data
8 FO E LOH HI FEO
Multiple Columns Bootstrap gives us 12 columns to work with if we need them
HH I HI U F HH
Our Header in a Grid Elements can span all columns in our grid
FOH L HI
Taking Up Half the Page With 12 columns, you can use 6 to take up half the page
A 6I ?OE L HI
Getting Even Smaller You probably won’t ever need 12 individual columns, but 4 is common enough
4O E L HI
Wire framing our Grid Design Wire framing is a great way to visualize and plan out our page.
12 Columns
2HI AA L O L
6 Columns
4 Columns
6 Columns
4 Columns
4 Columns
Bootstrap Medium Screen Grid Design Bootstrap uses .col-md-* classes for denoting the number of columns
class='col-md-12'
class='col-md-6'
class='col-md-6'
2HI OFHH AA L O
class='col-md-4'
class='col-md-4'
class='col-md-4'
Adding Grids to Our HTML Here’s part of our content from level one that we’ll convert to grids index.html
Blasting Off With Bootstrap The Fastest Way to Space Make your way to space... Take the Tour Book Tickets Now ...
Using 12 Columns for our Title Use a class of .col-md-12 to wrap areas of your page you want to take up the entire width. index.html
Blasting Off With Bootstrap ... 8 EA O L HH HI
Lead Grid Using 6 Columns Determine the number of columns you want, then pick the correct Bootstrap class for it. index.html
...
8O E HA OSO A ?OO FHH O L - HI
The Fastest Way to Space Make your way to space... Take the Tour Book Tickets Now ... 8 FI FHH O L OE - HI
Lead Grid Using .col-md-6 Use a class of .col-md-6 to contain an element to 6 columns, or half the page. index.html
... The Fastest Way to Space E HI Make your way to space... ... LL FA ?T FA
Feature Grid Using 4 Columns Using one-third of the page, or 4 columns. 4 columns * 3 elements = 12 columns total. index.html
... Book Today! Even if you're traveling… Go Anywhere If you need to get to space today... RocketBus® For cheapest fares, catch the…
OU I E CO O L HI
Feature Grid Using .col-md-4 The next featured item will be immediately to the right. index.html
3E CO FHH O L HI
... Book Today! Even if you're traveling… Go Anywhere If you need to get to space today… RocketBus® For cheapest fares, catch the…
Column Preview Our page is starting to take shape!
Grid Refactoring It’s di!cult to know when a new row starts without doing math. index.html ... ... ... ... ... ...
U LF ?T HI ?O EO ?O ?T 0
Adding Rows using .row The number of columns in each row adds up to 12.
F I A HO F O A
Row Preview Our page looks almost the same, but it’s actually using 15px more of the screen with rows
* C OO
Adding too Many Columns What should happen if you include more than 12 columns in a row?
index.html
EO HA OEF H > > > > >
HF F ?0
Multiple Rows Our last featured item doesn’t have enough space and moves onto its own row
9I OEF OEO ELLA ?C OOA F
Designing With Grids A popular proportion for sites with grids is 9 columns + 3 columns
/&* F A C ?H FOE FA?
12 Columns
9 Columns
3 Columns
Letting Columns Breathe with Blanks Adding a bit of space between columns can help them appear less cluttered
12 Columns
5 HA O HI C LAAF0 8 Columns
1
3 Columns
Empty Columns Don’t create empty columns. Bootstrap has a better way! index.html
2HA O ILOT HI ?O OE F ?OO T
Empty Columns Using an O! set The .col-md-offset-* class is used to add left padding for a given number of columns. index.html
EF HA ?
1AA HI C LAAF O OE HCO C OE FA?
col-md-offset-*
Blog Example An example blog from the Bootstrap website using this technique
. HI C OO
HI CCO
* HI C OE FA?
Thinking In Grids Level 2, Section 1
Responsive Gridding Level 2, Section 2
Our Website So Far It looks great on our desktop’s screen, but if we view it on a phone, our columns are gone!
I B OL ?OHI L
Our Goal Mobile Layout 0E E EH EI HL LONEI 8E E?I HI UL EI N H NSEI I I
ON F 8S I EN I L
Medium Screen Size A good starting point for your design. Looks good on laptops and desktops. Grid Size
Medium
Grid Class
.col-md-*
O! set Class
.col-md-offset-*
Screen Size
992px+
Designing for Smaller Screens The “small” grid size is used for smaller resolutions, often tablets or compact laptop screens.
Grid Size
Grid Class
O! set Class
Screen Size
Small
.col-sm-*
.col-sm-offset-*
768px+
Medium
.col-md-*
.col-md-offset-*
992px+
Our Current Features Our columns only work with a resolution of 992px and up. index.html
Book Today!... Go Anywhere... RocketBus®...
.? BNOL O I EBBLIN L I HL ?LI
Adding Grids for Smaller Resolutions Our featured items will have the same grid sizes in small and medium mode. index.html
Book Today!... Go Anywhere... RocketBus®...
8 E LF EI R I EL
Feature Columns in Medium Sized Screens
EEI N EI VHEOHW H
NOL L NE IIEI ?OHI ?
Feature Columns in Small Sized Screens
EEI NE I NN 4OL BNOL ? I ?OHI EI VHW H I P
Extra Small Mode N ON R, 0LU OL I PE ? VRNL HW H
UP N OL ?OHI EI! 2NU F EIN N O EN HL ?
Extra Small Browser Sizes Great for specifying the minimum width for elements. Also the layout used on many phones.
O! set set Class
Grid Size
Grid Class
Screen Size
Extra Small
.col-xs-*
.col-xs-offset-*
0px+
Small
.col-sm-*
.col-sm-offset-*
768px+
Medium
.col-md-*
.col-md-offset-*
992px+
Adding Grids for Extra Small Screens We could use the extra small grids, but there’s a better way. index.html
Book Today!... Go Anywhere... RocketBus®...
2F EN ?LH ?I NNL!
Reviving our Goal Layout We can plan out how many columns each of our elements will use prior to jumping into the code.
VF 8SW E O ?OHI 4OL NL BNOL E ? O ?OHI
1NU P I BBN I N BN I LEN
Features in Extra Small Screens index.html
VF 8SW E NF O ?OHI
Book Today! Go Anywhere RocketBus®
8 NL N BNOL E NF O ?OHI I VF 8SW
Extra Small Feature Layout Using our new extra small classes, our features section is taking shape.
N NE F EF I I
NE I N I BBN N VF 8SW
Centering Features for Extra Small Screens This will center this column giving it a column of spacing on each side
9 N HE ?OHI Book Today! Go Anywhere RocketBus®
8 LL B N ? IUN HNNL
“Book Today” On Extra Small Screens “Go Anywhere” started on a new row because it needed 6 columns and only 1 was available.
VF 8SW NI ON I RNL H ?LI
Overriding O! sets for Small Screens
4OL .col-xs-offset-1 E EI E N VHW I VHEOHW LONEI
7EI? UL OEI ?OHI EI N BELN LETIN ? N N PLBEI HIN E HP N N IRN L
Removing the O! set for Small Screens index.html
Book Today! Go Anywhere
View more...
Comments