Articles by

Chris Coyier

Founder, writer, designer, spam-deleter, email personality

ShopTalk Episode 29

Direct Link

This week Dave and I were joined by Tab Atkins and we talk about Tab’s job as a spec writer working at Google, Flexbox, the future of float clearing, using encoded characters, smooth animations, and more!

Thanks to the Responsive

Made to Measure

Direct Link

Allen Tan:

So if static templates are too limiting, but per-piece art direction is too costly, how else can we make scalable, sustainable digital publications that are beautiful and accessible? To find a middle path, we can take a cue

CSS Style Guides

As we wrap up our recent poll on ordering CSS properties, it brings up the larger issue of CSS style guides. Ordering properties is just one choice you have to make that makes up a complete styling strategy. Naming …

(Updated on )

Multiple Pseudos Work by Adobe

Direct Link

Things are moving along in the pseudo elements world again which is exciting. Alan Stearns put together this mock spec that defines usage like ::before(n) and ::nth-pseudo().…

“Old” Flexbox and “New” Flexbox

Just so everyone is clear on this: “Flexbox” (more specifically: CSS Flexible Box Layout Module) has undergone a lot of changes in the last three years. Changes both to the spec and what browsers have implemented. …

(Updated on )

Meny

Direct Link

Hakim El Hattab is at it again with a simple, beautiful, three-dimensional way to handle “hidden left side navigation” that’s getting so popular on small screens. …

Transparent Background Images

There is no background-opacity property in CSS, but you can fake it by inserting a pseudo element with regular opacity the exact size of the element behind it.

div {
  width: 200px;
  height: 200px;
  display: block;
  position: relative;
}

div::after 
(Updated on )

Import CSV into MySQL

<?php

$databasehost = "localhost";
$databasename = "test";
$databasetable = "sample";
$databaseusername ="test";
$databasepassword = "";
$fieldseparator = ",";
$lineseparator = "\n";
$csvfile = "filename.csv";

/********************************/
/* Would you like to add an ampty field at the beginning of these records?