CSS Slides
CSS Slides
In-line
Internal
External
Safe fonts and Fallback
Non-standard fonts
Text Styling
Text transformation
Text alignment & line height
List Styling
ID and Anchor links
Divs
Float
Block & Inline Elements
Box Model
Box Model - Border
Box Model - Padding
Box Model - Margin
Web Inspector overview
Background
Position
Only works on relative or absolute positioning
Gradients
Opacity
Advanced selectors
Flex direction
Flex order
“We are building a web, for all device ”
217
Why do you need Responsive web
designs
• The Number of devices, platforms and browser that
need to work with your website is growing exponential
rate.
218
What is Responsive Web Designs
• Responsive Websites respond to there environment.
219
What is Responsive Web Designs
• A Responsive Website serves the exact same page to every visitor but
the design and layout of that page responds to the size of the visitors
screen size. Every piece of content on a responsive site adapts to how
it is being viewed – be it desktop PC , Mobile or TV.
220
How does it work / Responsive
Process
221
Adoptive Vs Responsive web
designs
• AWD depends on predefined screen sizing
• RWD depends on flexible and fluid grids
• AWD is recommended for end users with a limited budget or limited device types and screen
sizes. It is also better for applications which have a lot of images which do not scale well
• RWD is recommended for end users for whom budget is no question and who need a
variance of mobile devices for their application to be implemented.
222
ADVANTAGES of Responsive Web
Design
• User Experience (UX): Website adjusts to any screen size, making it a good long-term
solution to UX with the current plethora of devices (including mobile/tablet hybrids).
Hiding elements which aren't crucial for mobile visitors helps to achieve their goals faster.
• Analytics: One complete view for all the traffic. To get insights on the mobile visitors,
create a "mobile-only" segment
• Sharing/Linking: One URL to accumulate all of the shares, likes, tweets, and inbound links.
• SEO: Going with the advantage above, one URL accumulates all links, PageRank, Page
Authority, etc.
223
ADVANTAGES of Responsive Web
Design
• Development: RWD involves no redirects to take care of, no user-agent targeting.
224
Key benefits of Responsive web
designs
• Save money
• Save Time
• Better performance
• Improved SEO
• Wider browser support
225
How do we design for RWD
Use the Mobile First Approach and favor
Progressive Enhancement instead of the
traditional Graceful Degradation
226
How does it works
• A flexible grid
• A flexible grid-based layout is one of the cornerstones of responsive design.
• Stop using pixel-based layouts and start using percentages or the em for sizing
228
Media Query example
229
Media Query example
230
Important guide lines
• Resizing image to fit the screen resolution.