3 weeks ago in Cheatsheets

"'padding: 50% 0;' will force it to be a square"

what? why?
<style>.sqtest
{
  background:#f00;
  padding: 50% 0;
}
</style>
<div class=sqtest>&nbsp;</div>

some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider some text to make this wider
 
 4 weeks ago in Cheatsheets

JavaScript + CSS

element.style.getPropertyValue("color");
getComputedStyle(element).getPropertyValue("color");
element.style.setProperty("color", "#f00");
 1 month ago in Talks

PHP Performance Trivia

by Nikita Popov
(click image to load video)