Responsive
Design
Jogesh K. Muppala
Why Responsive Design?
• Users increasingly accessing websites from a
variety of devices of different screen sizes
• One size fits all no longer a possibility!
• Adapt to the user’s “viewport”
– Build it into the core of the site
2
Mobile First Design
Traditional
First satisfy the Mobile first
Mobile constraints
3
Foundation for Responsive Design
• Grid system
– We’ll deal with Bootstrap Grid system next
• Fluid images
– We’ll look at Bootstrap support later
• Media queries
4
Media Queries
• CSS technology to apply some styles based on the
size of the viewport
e.g.,
@media (min-width: 992px) {
/* CSS styles customized for desktop */
}
5
How do we do this?
• Start with a UI framework with responsive
design built-in