Making Video Fluid Width

Direct Link

Me:

In a world of responsive and fluid layouts on the web one media type stands in the way of perfect harmony: video.

I wrote an article for Net Magazine where I tackle making video (from any source) work in …

Avatar of Chris Coyier
Shared by Chris Coyier on

Indeterminate Checkboxes

While checkboxes can only either submit their value (checked state) or not (unchecked state), they have a third visual-only state: indeterminate. This is only settable via JavaScript and does not affect the value, only the appearance. We'll cover how it works and a simple use case.
Avatar of Chris Coyier
Chris Coyier on (Updated on )

New Poll: Site Title Structure

The new poll is up in the sidebar of the site. This time it’s about the structure of page titles. Literally, the <title></title> tag in the head of a site that gives the browser window/tab its title. I’m just asking …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Prefixr

Jeffrey Way has created an app which looks through your CSS and adds all the missing CSS3 vendor prefixes. It’s smart enough to do it right no matter which ones you’ve added or forgotten. Cooler, it has an API which …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

What Makes For a Semantic Class Name?

Semantics in HTML is always a hot topic. Some people strive for it at all times. Some people critisize a dogmatic adherence to it. Some people don’t know what the heck it is. …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

The Future of CSS Layouts

Direct Link

Peter Gasston shows us: columns, flexbox, grid, template, positioned floats, exclusions, and regions. This stuff is going to be a big deal in a couple of years and it will be very interesting to see which of these get popular …

Avatar of Chris Coyier
Shared by Chris Coyier on

Add class to links generated by next_posts_link and previous_posts_link

These two functions create anchor links, and you can customize a lot of it, but it’s impossible to add a class through just using their parameters alone. Gotta add a function to functions.php:

add_filter('next_posts_link_attributes', 'posts_link_attributes');
add_filter('previous_posts_link_attributes', 'posts_link_attributes');

function posts_link_attributes() {
  
Avatar of Chris Coyier
Chris Coyier on (Updated on )

Seriously, Just Make a Pen

The original title of this post was “Seriously, Just Make a JSFiddle”. It was written before I beame the co-founder of CodePen. It’s no secret or surprise that CodePen was inspired by apps like JSFiddle and JSBin. It’s my job

Avatar of Chris Coyier
Chris Coyier on (Updated on )