4. Bootstrap v3
HTML5
◦ <!DOCTYPE html>
CSS
◦ CSS3
◦ Grid System
◦ Normalize.css, a project by Nicolas Gailagher and
Jonathan Neal
◦ LESS
Components
◦ A dozen reusable components
◦ Glyphicons
JavaScript
◦ Uses jQuery framework
◦ The data attribute
5. Bootstrap Grid System
12 columns
Size
◦ Extra small(col-xs) : (<768px)
◦ Small(col-sm) : (≥768px)
◦ Middle(col-md) : (≥992px)
◦ Large(col-lg) : (≥1200px)
Grid behavior:
◦ Extra small : Horizontal at all times
◦ Others : Collapsed to start, horizontal
above breakpoints
6. Bootstrap Grid System
Include Bootstrap.css
Usage
◦ Row : row as the div class name
◦ Column : (col-xs-/col-sm-/col-md-/col-
lg-)%d as the div class name
Col-md-6 Col-md-6
14. Bootstrap UI Customization
All UI style sheet can be set on
official website
http://bootswatch.com/
CSS part
◦ Able to be included partially.
Javascript/jQuery plugin part
◦ Able to be included partially.
Less Variables
17. Responsive, Fluid Grid Concept
Grid system
◦ Is derived from the graphic design.
◦ Make alignment.
◦ Standardize layout design.
◦ 960 Grid system
Fluid Grid
◦ Web design
20. Flexible Image
CSS
◦ max-width: 100%; height: auto;
Bootstrap way
◦ class .img-responsive
21. Media Queries
a feature of CSS3
E.g.
Bootstrap responsive utilities
◦ .visible-(xs/sm/md/lg)
◦ .hidden-(xs/sm/md/lg)
◦ .visible-print
◦ .hidden-print
22. CSS3 Media Queries Browser
Support
Desktop platform : doesn’t
support IE 8
Mobile platform : support all
browsers.
Reference : http://caniuse.com/css-
mediaqueries
29. Functions
String
Misc
List
Math
Type
Color
Color Definition
Color Channel
Color Operations
Color Blending
Reference : less functions