Triggering CSS Animations with Sibling Selectors
Combinators describe the relationship between CSS selectors, and they’re commonly used to combine two or more selectors into a more specific selector. Examples of combinators are the greater-than sign...
View ArticleBuild a Gmail-Style Expanding CSS3 Navigation Menu
Users of GMail should be familiar with sliding effects of the inbox side navigation. In the most recent design you will find the GChat/Hangouts box along with other various email tags(inbox, trash,...
View ArticleCSS Tip: Better Rounded Borders
We’ve all used border-radius in our designs to round the corners of images, divs, navs, etc… But have you ever noticed what happens when a thick border is added to an element with a border radius? As...
View ArticleCSS Tip: A Better Clearfix with Sass
The CSS clearfix has been a must-have in our web design toolkit for quite some time, and until new layout features like flexbox become more stable, we’ll always need some form of clearfix in float...
View ArticleThinking Ahead – CSS Device Adaptation with @viewport
When we need to adjust a device’s browser viewport, the HTML <meta name="viewport"> tag is usually our go-to solution. But the viewport meta tag is surprisingly “non-normative”––it’s not a formal...
View ArticleThinking Ahead: Native CSS Feature Detection
Developing with progressive enhancement is not only a best practice, it’s absolutely necessary given the complexity of today’s websites and applications. We should never be sacrificing accessibility...
View ArticleA Preview of The New Dialog Element
The <dialog> element originally entered the HTML5 scene as a way to markup conversations but it was cut from the spec back in 2009. However now it’s back, and it has a brand new role. The new...
View ArticleThinking Ahead: Multi-Resolution Images with srcset
Developing for high-resolution displays often requires different image resources for each image. Because of this, there’s been a need for a more standard way of serving responsive content images – ones...
View ArticleSass Conf 2013
Sass Conf 2013 took place back on October 12th and 13th, and we were there to film it! We’re excited to be able to share all of the amazing speakers with you, with 15 sessions and over 12 hours of...
View ArticleLearn CSS Frameworks on Treehouse
Our new course on CSS frameworks was just released! In Framework Basics, you’ll learn how to build websites using two of the most widely used Frameworks in the industry: Bootstrap and Foundation....
View ArticleWhat’s New in Foundation 5
Learn about Foundation 5, the fastest and most efficient version of the CSS framework yet, on Treehouse! We’ll cover all the new features and updates in Foundation 5, as well as how to seamlessly...
View ArticleHow to Use the Details and Summary Elements in HTML5
A number of new interactive elements were introduced with HTML5 that provide native implementations of common UI widgets like dialogs and modals. Among these new additions are the <details> and...
View ArticleLearn CSS Layout on Treehouse
Our new course on CSS layout has been released! In CSS Layout Techniques, you’ll learn to use the most common layout and positioning methods of web design. Throughout the course, we’ll build a layout...
View ArticleHow to Create Smoother Animations and Transitions in the Browser
In order to achieve smooth transitions and animations, a browser needs to avoid doing extra work on its main thread, the part that’s in charge of handling tasks like JavaScript, style calculations,...
View ArticleCSS Sprite Sheet Animations with steps()
There’s a little-known timing function in CSS animations that lets us break an animation into segments––or steps––instead of running it as one continuous animation from start to finish. This function...
View ArticleCutting-Edge CSS Features You Can Use Today
code {background: none; padding: 0; font-size: 15px;} The last wave of new CSS3 features introduced in-browser design features like border-radius, gradients, multiple backgrounds, and box-shadow. CSS...
View ArticleHow to Create a Simple CSS Dropdown Menu
Many dropdown menus we see on websites use JavaScript in some way, but it’s possible to build one entirely with HTML and CSS. In this short video tutorial, we’ll take advantage of helpful CSS selectors...
View ArticleHow to Create a Sticky Navigation
Many websites use a “sticky” feature in their main navigation menu. The menu scrolls with the page, then sticks to the top once it reaches the top of the viewport. There are lots of jQuery plugins we...
View Article