10 months ago in Talks

When JavaScript Bytes

by Tim Kadlec
(click image to load video)
 10 months 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
 
 10 months ago in Cheatsheets

JavaScript + CSS

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

PHP Performance Trivia

by Nikita Popov
(click image to load video)