Using inline-block to Display a Product Grid View
I have been working on a website that displays products in a grid view, with each product containing a title, an image and some in a grid view. To achieve this layout, I used an unordered list with the...
View ArticleGetting Started with CSS – Part 1
This is the first of a two-part article on CSS, the most powerful tool we have available to us as web designers and developers. In this article, we’ll cover basic CSS concepts to get us started. What...
View ArticleGetting Started with CSS – Part 2
In part 1 we covered basic CSS concepts like the cascade and CSS rules. In this article, we’ll take things a step further with the CSS box model and basic selector types. The CSS Box Model...
View ArticleApplying Normalize.css Reset – Quick Tip
In this Quick Tip we’ll learn about Normalize.css, a new CSS tool we can use as an alternative to traditional CSS reset methods. Normalize.css makes browsers render all elements more consistently and...
View ArticleSimple CSS Grids – Treehouse Show Episode 16
In this episode of The Treehouse Show, Nick Pettit (@nickrp) and Jason Seifer (@jseifer) talk about simple grids, command line tools for developers, and the usual dose of response web design. Here are...
View ArticleCSS Positioning: A Comprehensive Look
If you’ve come to grips with CSS-based layouts, then it’s likely that you’re using floats as the primary means to layout your pages. Maybe you’ve even started to experiment with some of CSS’s...
View ArticleHow to Choose the Right CSS Preprocessor
You’ve probably already heard of CSS preprocessors by now, but haven’t quite plucked up the courage to try one because of the learning curve, or maybe because “preprocessor” just plain sounds...
View ArticleCSS3 Substring Matching Attribute Selectors
In the CSS3 selectors module, the W3C introduced a new set of attribute selectors called substring matching attribute selectors for specifically targeting elements whose given attribute begins, ends or...
View ArticleIncrease Your Site’s Performance with Hardware-Accelerated CSS
Did you know that we can hardware-accelerate graphics-intensive CSS features by offloading them to the GPU (Graphics Processing Unit) for better rendering performance in the browser? Most computers...
View ArticleThe Ecstasy and Agony of Compass Sprite Generation, Part 1
CSS preprocessors have become increasingly popular in recent years because of their capacity to do a lot of the most tedious parts of CSS for you automatically. (For an overview of the different CSS...
View Article5 Useful CSS Selectors
Besides the usual type, descendant, class and ID selectors, CSS offers several pseudo-class and pseudo-element selectors that allow us to target HTML elements based on their positions in the document...
View ArticleCreate a Themable Button Set with Sass
If you have yet to give Sass a try, don’t worry, this is a good place to start. And if you haven’t already read Andrew’s primer on Sass, give it a read for a better understanding of what we’ll be...
View Article3 Quick Steps to Get Your Site Retina Ready
Not too long ago, as I was browsing the web on my MacBook Pro with Retina display, I came across a typical form on a typical website. The buttons were fairly standard faire — gradients, rounded...
View ArticleTake Control of the Box Model with box-sizing
I get asked a lot about the CSS box-sizing property, especially from beginning designers and developers who’ve dealt with broken layouts and misaligned grids. The CSS box model can be a little...
View ArticleCreate an Absolute Basic Mobile CSS Responsive Navigation Menu
In this tutorial we will go over the process in coding a very basic CSS responsive navigation menu. We will transform a basic non-list style navigation to a drop down menu using media queries in our...
View ArticleThe CSS3 Placeholder Pseudo-element
An HTML5 feature that had the web community abuzz with excitement a couple of years ago was the placeholder attribute for displaying placeholder text in input fields. Now that it’s widely supported by...
View ArticleExtending Placeholder Selectors with Sass
I recently wrote an article on creating a themable button set with Sass where I used a mixin to define all base styles, then a color value was passed as an argument when included in each theme....
View ArticleTriggering 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 ArticleCSS3 Animation Demystified
A Brief History of Time Back in the 90′s and early 2000′s when the web was so shiny and new, designers experimented with animation quite a lot. I remember watching hundreds of Flash cartoons during...
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 Article