background preloader

CSS Media Queries & Using Available Space

CSS Media Queries & Using Available Space
We've covered using CSS media queries to assign different stylesheets depending on browser window size. In that example, we changed the layout of the entire page based on the space available. It isn't required that we make such drastic changes with this technique though, so in this tutorial we'll go over a design tweak with a smaller scope. We'll also cover the syntax for using media queries within a single stylesheet and more examples of that. The CSS media query syntax for calling an external stylesheet is like this: You may be familiar with the media attribute, normally being "screen" or "print" or even a comma separated list, like "screen, projection". Likewise, you can use more advanced CSS media queries like: You may use as many media queries as you would like in a CSS file. Example Let's say we have a fluid width design where the sidebar is 35% of the width of the page. In our example sidebar, we are going have a list of names of the Super Team which function as email links. Types

The top 25 responsive web design tools | Web design Over the past few years we've seen an explosion of web-enabled devices with varying resolutions, capabilities, form factors, pixel densities, interaction methods and more. This onslaught of connected devices is just the beginning, and we're bound to see people accessing the web from a greater number of devices in the coming years. It's futile to create a dedicated web experience for every single device class out there, and the need to create a smart, flexible, adaptable web experiences is becoming more apparent every day. Just because responsive design is becoming necessary doesn't mean it's easy. Innovative tools These are formidable problems we're up against, but thankfully the web design community is up to the challenge. There's a lot to get excited about, but it can also be a huge task to keep track of the latest tips and tricks. 01. Mobile-first, Foundation closely follows a progressive enhancement strategy. 02. This is where Jetstrap comes in. 03. 04. 05. 06. 07. 08. 09. 10. 11.

Re-designing busuu Design Principle Two: Pictures are better than words (and icons are better than pictures) Busuu teaches people to learn foreign languages — and it’s good at it; since I have been working here our user base has grown by just over 10 million. As a result of having such a large user base, we have to cater for multiple interface languages with dramatically varying text lengths. To get around this text-length problem we have made a huge effort to use icons as much as possible to support and (where possible) to replace text translations. Tip: Use SVGs Again — it seems easier to just do a sprite sheet for web, but having SVGs will save you heaps of time in the long run if you are redesigning your product and are susceptible to decisions changing around colour, size, etc. Design Principle Three: Less steps good, more steps bad Our users come to busuu to learn languages — so we have reduced the number of steps required before they can access a learning unit. Tip: Don’t get lost in product re-skins

50 fantastic tools for responsive web design | CSS3 As introduced/coined by Ethan Marcotte in both his article "Responsive Web Design" as well as his best-selling book, one needs three elements to make a site responsive: A flexible/fluid grid Responsive images Media queries There are plenty of other great articles that cover motives, concepts, and techniques regarding responsive web design, so we'll keep the focus of this article on some top tools that will help you become responsibly responsive. Tools for starting out Before you start with building your site, it's best to sketch out how the elements on the page will adapt to fit the different browser sizes of the various devices that they will be viewed upon, and to avoid the disconnect that often comes from thinking primarily about the desktop design and the rest of the responsive iterations as an afterthought (see especially Stephanie (Sullivan) Rewis' comment). 01. 02. 03. 04. 05. Tools for a flexible/fluid grid 06. 07. 08. 09. 10. 11. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. slabText 23.

Is Your Responsive Design Working? Google Analytics Will Tell You Advertisement Responsive web design has become the dominant method of developing and designing websites. It makes it easier to think “mobile first” and to create a website that is viewable on mobile devices. In the early days of responsive web design, creating breakpoints in CSS for particular screen sizes was common, like 320 pixels for iPhone and 768 pixels for iPad, and then we tested and monitored those devices. As responsive design has evolved, we now more often start with the content and then set breakpoints when the content “breaks.” This means that you might end up with quite a few content-centric breakpoints and no particular devices or form factors on which to test your website. However, we are just guessing that our designs will perform well with different device classes and form factors and across different interaction models. Content-centric breakpoints are definitely the way to go, but they also mean that monitoring your website to identify when it breaks is more important.

10 Best Responsive HTML5 Frameworks and Tools This is a review of 10 open source responsive HTML5 frameworks, boilerplates and tools for front-end web development (HTML, CSS, and JavaScript). I’ve included tutorials and resources related to each of them, and a comparison table at the end. 1. Twitter Bootstrap Bootstrap is a popular, modern front-end/UI development framework. Bootstrap has a 12-grid responsive layout, 13 custom jQuery plugins for common UIs like carousels and modal windows, a Bootstrap customizer, and more. Bootstrap is well-documented, and this open source project has plenty of coverage in blogs and tutorial sites. Bootstrap Tutorials Bootstrap Tools and Resources 2. Foundation is another popular responsive front-end framework. It has rapid-prototyping capabilities, a responsive grid system and much more. Foundation is by ZURB, a company of product designers focused on providing web-based solutions. Foundation Tutorials Foundation Tools and Resources 3. Skeleton Tutorials Skeleton Tools and Resources 4. 5. 6. 7. 8. 9. 10.

Using Sass to Build a Custom Type Scale with Vertical Rhythm One way to achieve visual consistency in web design is to use a vertical rhythm. For a website, this would mean that no matter what font-size any text element is, its line-height is always an even multiple of a consistent unit of rhythm. When this is done precisely, you could put a striped background behind your page and each text block (paragraphs, headings, blockquotes, etc) would line up along the lines in that grid. As you could imagine, setting this up by hand would require a lot of math and typing. If you want to change the proportions of that grid responsively, you’ll redo that work for every breakpoint. I’ll start off by admitting that there are already some good Sass plugins that help build a custom type scale with consistent vertical rhythm. Why Build Our Own? That raises a great question: With all those tools available, why should we try building our own? Before we start, let’s define what kind of type scale we’re going to build. Setting Up Variables Setting up Mixins Conclusion

Beginner’s Guide to Responsive Web Design Whether you’re a beginner or a seasoned web professional, creating responsive designs can be confusing at first, mostly because of the radical change in thinking that’s required. As time goes on, responsive web design is drifting away from the pool of passing fads and rapidly entering the realm of standard practice. In fact, the magnitude of this paradigm shift feels as fundamental as the transition from table based layouts to CSS. Free trial on Treehouse: Do you want to learn more about responsive web design? Over the past year, responsive design has become quite the hot topic in the web design community. What is responsive design? Let’s just get right into it: Believe it or not, the Treehouse blog that you’re reading this article on is actually a responsive design! It’s hard to talk about responsive design without mentioning its creator, Ethan Marcotte. So, what is responsive design exactly? It’s not just small screens, either. Fluid Grids 320px480px600px768px900px1200px Resources Bonus

Coming Soon: CSS Feature Queries | Web Platform Team Blog Feature Queries are part of the CSS3 Conditional Rules specification, and offer a native method of testing for CSS feature support. You can use Feature Queries to test whether certain CSS rules are supported, and optimize your page for the available set of features. Feature Queries have a number of stable browser implementations in Chrome, Firefox, and Opera, and at least one recent experimental implementation in WebKit. As browser support continues to increase, it’s probably worth taking a look to see if Feature Queries fit into your current projects. Feature Queries in CSS Feature Queries look like Media Queries, but test support for CSS property/value pairs rather than display characteristics. Let’s move on to a more realistic example. Altogether a great effect, right? The above code includes a single-color fallback if the semi-transparent color overlay isn’t supported. Feature Queries in JavaScript The Feature Queries specification also provides a JavaScript interface: CSS.supports.