CSS

Home » NewsBlog » CSS

Simple Patterns for Separation (Better Than Color Alone)

2017-11-19T03:02:21+00:00

Color is pretty good for separating things. That's what your basic pie chart is, isn't it? You tell the slices apart by color. With enough color contrast, you might be OK, but you might be even better off (particularly where accessibility is concerned) using patterns, or a combination. Patrick Dillon tackled the Pie Chart thing [...]

Simple Patterns for Separation (Better Than Color Alone) 2017-11-19T03:02:21+00:00

How to Disable Links

2017-11-18T03:01:35+00:00

The topic of disabling links popped up at my work the other day. Somehow, a "disabled" anchor style was added to our typography styles last year when I wasn't looking. There is a problem though: there is no real way to disable an link (with a valid href attribute) in HTML. Not to mention, why [...]

How to Disable Links 2017-11-18T03:01:35+00:00

4 Reasons to Go PRO on CodePen

2017-11-17T03:02:28+00:00

I could probably list about 100 reasons, since as a founder, user, and (ahem) PRO member of CodePen myself, I'm motivated to do so. But let me just list a few here. Some of these are my favorites, some are what PRO members have told us are their favorite, and some are lesser-known but very [...]

4 Reasons to Go PRO on CodePen 2017-11-17T03:02:28+00:00

SVG as a Placeholder

2017-11-17T03:02:23+00:00

It wasn't long ago when Mikael Ainalem's Pen demonstrated how you might use SVG outlines in HTML then lazyload the image (later turned into a webpack loader by Emil Tholin). It's kind of like a skeleton screen, in that it gives the user a hint of what's coming. Or the blur up technique, which loads [...]

SVG as a Placeholder 2017-11-17T03:02:23+00:00

Accessible Web Apps with React, TypeScript, and AllyJS

2017-11-17T03:02:18+00:00

Accessibility is an aspect of web development that is often overlooked. I would argue that it is as vital as overall performance and code reusability. We justify our endless pursuit of better performance and responsive design by citing the users, but ultimately these pursuits are done with the user's device in mind, not the user [...]

Accessible Web Apps with React, TypeScript, and AllyJS 2017-11-17T03:02:18+00:00

Aspect Ratios for Grid Items

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

We've covered Aspect Ratio Boxes before. It involves trickery with padding such that an element's width and height are in proportion to your liking. It's not an ultra-common need, since fixing an element's height is asking for trouble, but it comes up. One way to lower the risk is The Psuedo Element Tactic, in which [...]

Aspect Ratios for Grid Items 2017-11-16T03:01:25+00:00

Content Security Policy: The Easy Way to Prevent Mixed Content

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

I recently learned about a browser feature where, if you provide a special HTTP header, it will automatically post to a URL with a report of any non-HTTPS content. This would be a great thing to do when transitioning a site to HTTPS, for example, to root out any mixed content warnings. In this article, [...]

Content Security Policy: The Easy Way to Prevent Mixed Content 2017-11-15T03:01:16+00:00

Robust React User Interfaces with Finite State Machines

2017-11-14T03:02:00+00:00

User interfaces can be expressed by two things: The state of the UI Actions that can change that state From credit card payment devices and gas pump screens to the software that your company creates, user interfaces react to the actions of the user and other sources and change their state accordingly. This concept isn't [...]

Robust React User Interfaces with Finite State Machines 2017-11-14T03:02:00+00:00