CSS Responsive
CSS Responsive
Рэнцэндоржийн ЖАВХЛАН
Source: http://bradfrostweb.com/
2.7 BILLION OF
POPULATION WILL
HAVE SMARTPHONES
BY 2020
Source: http://www.pcmag.com/article2/0,2817,2485277,00.asp
“Anyone who slaps a ‘This page is best
viewed with browser X’ label on a web
page appears to be yearning for the bad
old days, before the web, when you had
very little chance of reading a document
written on another computer, another
word processor, or another network.”
Source: http://www.alistapart.com/articles/responsive-web-design/
Elements of Responsive Web Design
Fluid Grid
Resizable Images
Media Queries
Grids
How do grid systems work?
Source: Wikipedia.org
MEDIA QUERIES
The other key component of responsive designs is CSS media
queries.
A media query is a way to apply style rules based on the medium that
is displaying the file. You can use these queries to look at the
capabilities of the device, and then define CSS rules to target that
device.
15
MEDIA QUERIES
Contemporary responsive sites will typically provide CSS rules for
phone displays first, then tablets, then desktop monitors, an approach
called progressive enhancement, in which a design is adapted to
progressively more advanced devices
Feature Description
16
MEDIA QUERIES IN ACTION
17
Common Breakpoints
20
GRID SYSTEMS
Grid systems make it easier to create multicolumn layouts. Some of
the most popular are
• Bootstrap (twitter.github.com/bootstrap)
• Blueprint (www.blueprintcss.org)
• 960 (960.gs)
Print designers typically use grids as a way to achieve visual
uniformity in a design. In print design, the very first thing a designer
may do is to construct, for instance, a 5- or 7- or 12-column grid. The
rest of the document, whether it be text or graphics, will be aligned
and sized according to the grid
21
What
Source: http://twitter.github.com/bootstrap/
TWITTER BOOTSTRAP
30
GRID SYSTEMS – BOOTSTRAP
http://getbootstrap.com/css/
31
Why
Buttons:
Tabs:
Breadcrumb:
Pagination:
Alerts:
Progress bar:
Why
Reason #7: Javascript/jQuery
Why
Reason #8: Customization
Why
Reason #9: Live Mock-Ups
How
1. Download Bootstrap and inline text editor
2. Install text editor
3. Extract the bootstrap files in to your project folder
4. Download example html file and save it as index.html
in the project folder
Questions?