30 Useful Responsive Web Design Tutorials
- How To Create A Responsive Navigation
- Coding A Responsive Resume In HTML5/CSS3
- Responsive Design in 3 Steps
- Beginner’s Guide to Responsive Web Design
- How to Turn Any Site Into a Responsive Site
- Designing for a Responsive Web
- Responsive Web Design: A Visual Guide
- Fluid Grids
- Scalable Navigation Patterns in Responsive Web Design
- Responsive Design with CSS3 Media Queries
- CSS EFFECT: SPACE IMAGES OUT TO MATCH TEXT HEIGHT
- Adaptive layouts with media queries
- Responsive Images: Experimenting with Context-Aware Image Sizing
- CSS: Elastic Videos
- RESPONSIVE CONTENT NAVIGATOR WITH CSS3
- Create a Responsive Web Design Template
- RESPONSIVE HORIZONTAL LAYOUT
- Convert a Menu to a Dropdown for Small Screens
- FLEXIBLE SLIDE-TO-TOP ACCORDION
- How to use CSS3 Orientation Media Queries
- Responsive Data Tables
- FLUID CSS3 SLIDESHOW WITH PARALLAX EFFECT
- How to Build a Responsive Thumbnail Gallery
- Optimizing your email for mobile devices with the @media query
- Build a Responsive, Mobile-Friendly Web Page With Skeleton
- Responsive Web Design with HTML5 and the Less Framework 3
Responsive Web Design Guidelines and Tutorials
- Design Process In The Responsive Age
- Responsive Web Design: What It Is and How To Use It
- A Foot On The Bottom Rung: First Forays Into Responsive Web Development
- Techniques For Gracefully Degrading Media Queries
- Responsive Web Design Techniques, Tools and Design Strategies
- How To Use CSS3 Media Queries To Create a Mobile Version of Your Website
- Device-Agnostic Approach To Responsive Web Design
- Progressive And Responsive Navigation
- Content Prototyping In Responsive Web Design
- Is There Ever A Justification For Responsive Text?
15 Detailed Responsive Web Design Tutorials
How to Create a Responsive Website in About 15 Minutes
35 Responsive Web Design and Development Tutorials
Build a responsive site in a week
- Build a responsive site in a week: designing responsively (part 1)
- Build a responsive site in a week: typography and grids (part 2)
- Build a responsive site in a week: images and video (part 3)
- Build a responsive site in a week: media queries (part 4)
- Build a responsive site in a week: going further (part 5)
Useful CSS Tricks for Responsive Design
#1 Responsive Video
It makes the video embed to expand fullwidth to the boundary.
Demo | Demo II | Details | webdesignerwall.com
#2 Min & Max Width
Max-width property allows you to set the max width of the element. The purpose of max-width is to prevent the element from extending the boundary.
Max-Width Container
In the example below, I specify the container to display at 800px if possible, but it should not exceed 90% of the boundary width.
.container { width: 800px; max-width: 90%; }
Responsive Image
You can make the image auto resize to the max width of the boundary by using max-width:100% and height:auto.
img { max-width: 100%; height: auto; }
The above responsive image CSS works on IE7 and IE9, but doesn't work on IE8. To fix it, add width:auto. You may apply a conditional CSS specifically for IE8 or use the IE hack below:
@media \0screen {
img {
width: auto; /* for ie 8 */
}
}
Min-Width
Min-width is opposit to max-width. It sets the minimum width of an element. In the example form below, min-width is used on the input text field to prevent the input from getting very small when scaling down.
Demo | Details | webdesignerwall.com
#3 Relative Values
In responsive design, knowing when to use relative value can simplify the CSS and maximize the best layout result. Below are some examples.
Relative Margin
Below is an example of a commentlist where relative left margin is used to space out the threaded comments. Instead of using fixed pixel value, I used percentage value to space out the sub-lists. As shown on the left side of the screenshot, the content box in the sub-lists gets very small on mobile resolution if pixel left margin was used.
Relative Font Size
With relative value (eg. em or %), the font size, line-height and margin spacing can be inherited. For example, I can change the font size on all descendant elements by simply changing the font-size on the parent element.
Relative Padding
The screenshot below shows it is better to use relative percentage padding as opposed to fixed pixel padding. The box on the left shows an unbalanced padding space if pixel padding was used. The box with percentage padding on the right shows that the content area is maximized.
Demo | Details | webdesignerwall.com
#4 Overflow:hidden Trick
As posted in my previous article, you can clear float with the overflow property. This trick is extremely useful. You can clear the float from the previous element and keep the content running within the container by applying overflow:hidden.
Demo | Details | webdesignerwall.com
#5 Word-break
I also talked about the word-wrap property before. You can force unbreaking text (eg. long URL text) to wrap instead of running in a single line.
.break-word { word-wrap: break-word; }
Demo | Details | webdesignerwall.com
No comments:
Post a Comment