{Naked CSS}

\\ Show off your <body>//

Developer Section of Naked CSS 2011

How to participate

Fill out the naked day signup form, then your website will be included in the official list within the next hour. Then on April 9th, simply remove all CSS from your website, stripping it entirely of its design. (Optional): Insert the following snippet of markup at the top of your page on the day of.
<h3>What happened to the design?</h3>
<p>To know more about why styles are disabled on this website visit the
<a href="http://naked.threepixeldrift.com" title="Web Standards Naked Day Host Website">
Annual CSS Naked Day</a> website for more information.</p>

What is going on

This option for those who feel a need to give their visitors a reference as to what's going on. This is not about getting traffic or making money. There are no ads on this site, nor will there ever be. This is about you, the people; getting naked.

Don't think, just strip

Here is a sample PHP function for you

<?php
function is_naked_day($d) {
  $start = date('U', mktime(-12, 0, 0, 04, $d, date('Y')));
  $end = date('U', mktime(36, 0, 0, 04, $d, date('Y')));
  $z = date('Z') * -1;
  $now = time() + $z; 
  if ( $now >= $start && $now <= $end ) {
    return true;
  }
  return false;
}
?>

Use it like this

 
<head>
...
<?php
if ( is_naked_day(9) ) {
  echo '<!-- naked day has no styles -->';
} else {
  echo '<link rel="stylesheet" type="text/css" href="styles.css" />';
}
?>
...
</head>

Wait... isn't that 48 hours?

That's correct. CSS Naked Day lasts for one international day. Technically speaking,it will be "April 9th" somewhere in the world for 48 hours. This is to ensure that everyone's website will be publicly nude for the entire world to see at any given time during April 9.

Tools & Plugins