CSS

Home » NewsBlog » CSS

The Contrast Swap Technique: Improved Image Performance with CSS Filters

2017-11-08T03:01:54+00:00

With CSS filter effects and blend modes, we can now leverage various techniques for styling images directly in the browser. However, creating aesthetic theming isn't all that filter effects are good for. You can use filters to indicate hover state, hide passwords, and now—for web performance. While playing with profiling performance wins of using blend [...]

The Contrast Swap Technique: Improved Image Performance with CSS Filters 2017-11-08T03:01:54+00:00

Designing Tables to be Read, Not Looked At

2017-11-08T03:01:49+00:00

Richard Rutter, in support of his new book Web Typography, shares loads of great advice on data table design. Here's a good one: You might consider making all the columns an even width. This too does nothing for the readability of the contents. Some table cells will be too wide, leaving the data lost and [...]

Designing Tables to be Read, Not Looked At 2017-11-08T03:01:49+00:00

Flexbox and Grids, your layout’s best friends

2017-11-07T03:01:45+00:00

Eva Ferreira smacks down a few myths about CSS grid before going on to demonstrate some of the concepts of each: ❌ Grids arrived to kill Flexbox. ❌ Flexbox is Grid’s fallback. Some more good advice about prototyping: The best way to begin thinking about a grid structure is to draw it on paper; you’ll [...]

Flexbox and Grids, your layout’s best friends 2017-11-07T03:01:45+00:00

input type=’country’

2017-11-07T03:01:43+00:00

Terence Eden looks into the complexity behind adding a new type of HTML input that would allow users to select a country from a list, as per a suggestion from Lea Verou. Lea suggested it could be as simple as this: And then, voilà! An input with a list of all countries would appear in [...]

input type=’country’ 2017-11-07T03:01:43+00:00

Creating a Star to Heart Animation with SVG and Vanilla JavaScript

2017-11-07T03:01:36+00:00

In my previous article, I've shown how to smoothly transition from one state to another using vanilla JavaScript. Make sure you check that one out first because I'll be referencing some things I explained there in a lot of detail, like demos given as examples, formulas for various timing functions or how not to reverse [...]

Creating a Star to Heart Animation with SVG and Vanilla JavaScript 2017-11-07T03:01:36+00:00

Apple’s Proposal for HTML Template Instantiation

2017-11-07T03:01:34+00:00

I'm sure I don't have the expertise to understand the finer nuances of this, but I like the spirit: The HTML5 specification defines the template element but doesn't provide a native mechanism to instantiate it with some parts of it substituted, conditionally included, or repeated based on JavaScript values — as popular JavaScript frameworks such [...]

Apple’s Proposal for HTML Template Instantiation 2017-11-07T03:01:34+00:00

So you need to parse an email?

2017-11-04T03:00:59+00:00

Say you have a website with users who have accounts. Those users email you sometimes. What if you could parse that email for more context about that user, their account, and what they might want? There are email parsing services out there. For example, Zapier offers Parser, which is free, with the idea being that [...]

So you need to parse an email? 2017-11-04T03:00:59+00:00

The CSS attr() function got nothin’ on custom properties

2017-11-03T03:01:16+00:00

Normally, the connection between CSS and HTML is that CSS selectors match HTML elements, and the CSS styles them. CSS doesn't know about the actual content in the HTML. But there is a way CSS can get its hands on data in HTML, so long as that data is within an attribute on that HTML [...]

The CSS attr() function got nothin’ on custom properties 2017-11-03T03:01:16+00:00