Poll Results: Server side language of choice?

Over 18,500 people voted on this last poll, making it the most voted-upon poll in this site’s history, when I asked:

What is your server-side language of choice?

Now I’m definitely a front end guy writing about mostly front end …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Efficiently Rendering CSS

I admittedly don’t think about this idea very often… how efficient is the CSS that we write, in terms of how quickly the browser can render it?

This is definitely something that browser vendors care about (the faster pages load …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Turn Off Autocomplete for Input

Just use the autocomplete attribute:

<input name="q" type="text" autocomplete="off"/>

This would be useful when a text input is one-off and unique. Like a CAPTCHA input, one-time use codes, or for when you have built your own auto-suggest/auto-complete feature and need …

Avatar of Chris Coyier
Chris Coyier on

ID the Body Based on URL

<?php
	$url = explode('/',$_SERVER['REQUEST_URI']);
	$dir = $url[1] ? $url[1] : 'home';
?>

<body id="<?php echo $dir ?>">

This would turn http://domain.tld/blog/home into “blog” (the second level of the URL structure). If at the root, it will return “home”.

Here is …

Avatar of Chris Coyier
Chris Coyier on

RGBa Browser Support

This article was originally published on February 2, 2009 and is now being updated to clarify the concept and update the information for modern browsers.

RGBa is a way to declare a color in CSS that includes alpha transparency support. …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Flip an Image

You can flip images with CSS! Possible scenario: having only one graphic for an “arrow”, but flipping it around to point in different directions.

.flip-horizontally {
  transform: scaleX(-1);
}

See how one arrow is used to point both directions here:…

Avatar of Chris Coyier
Chris Coyier on (Updated on )

We Love LOST

Tonight is the next-to-last episode ever of LOST. I’ve been a fan since the start, watching the released seasons several times with different friends over the years. Even powering through the Season 3 slump =). Just for fun, Richard and …

Avatar of Chris Coyier
Chris Coyier on

Pointer Events & Disabling Current Page Links

It is a long-standing web design standard that the logo in the header area links to the homepage of the site. Another standard is that when displaying the navigation of a site, to highlight in some way the “current” page, …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Bloginfo Shortcode

The bloginfo() function in WordPress gives you access to lots of useful information about your site. See the complete list. To access all these values from inside Page/Post content itself, we can make a shortcode to return the values. …

Avatar of Chris Coyier
Chris Coyier on