public marks

PUBLIC MARKS with tag css

December 2015

Rem Calculator

by 84GHz (via)
here's a tiny tool to calculate the rem sizes you need for your css.

November 2015

October 2015

Coloring SVGs in CSS Background Images by Noah Blon on CodePen

by srcmax
I love using SVG in CSS background images but it sucks that you can't alter the fill color easily within your CSS. Here are a few ways around that.

The Shapes of CSS

by srcmax
All of the below use only a single HTML element. Any kind of CSS goes, as long as it's supported in at least one browser.

September 2015

Flickity

by srcmax
Flickity makes galleries, sliders, & carousels that feel lively and effortless.

jQuery - Does jQuery .remove() clear out loaded javascript when it is used to remove a script tag? - Stack Overflow

by decembre
No. Once a script is loaded, the objects and functions it defines are kept in memory. Removing a script element does not remove the objects it defines. This is in contrast to CSS files, where removing the element does remove the styles it defines. That's because the new styles can easily be reflowed. Can you imagine how hard it would be to work out what a script tag created and how to remove it? EDIT: However, if you have a file that defines myFunction, then you add another script that redefines myFunction to something else, the new value will be kept. You can remove the old script tag if you want to keep the DOM clean, but that's all removing it does. EDIT2: The only real way to "clean up" functions that I can think of is to have a JS file that basically calls delete window.myFunction for every possible object and function your other script files may define. For obvious reasons, this is a really bad idea.

flag-icon-css

by srcmax
CSS for vector based country flags!

August 2015

PUBLIC TAGS related to tag css

engaged +   game +   pedagogie +