Turns out, this works even better (and is more concise): .hide-text { text-indent: 100%; white-space: nowrap; overflow: hidden; } As Zeldman put it: Really long strings of text will never flow into the container because they always flow away from the container. Performance is dramatically improved because a 9999px box is not drawn. Noticeably so …
Category Archives: Elsewhere
Test which CSS3 properties your browser recognizes
Ice – Track Text Changes with JavaScript
Least: Convert Regular CSS to LESS/Sass
Scaling With em Units
Recently I started testing how proportional scaling of bigger layouts would work in reality and if it makes any sense. It’s possible when using EM units and then changing body’s font-size when viewport’s height grows above certain point. Basically that means, that I have to change only one or two css properties between @media queries …
Three.js Tetris Tutorial
JavaScript Design Patterns – An Updated Free Book For Developers
Over the past year or so I’ve been actively trying to encourage more developers to invest time in learning about the benefits of design patterns and how they can be applied to JavaScript. To help with this, I wrote a book on the topic which I released for free. Learning JavaScript Design Patterns → Learning …
Continue reading “JavaScript Design Patterns – An Updated Free Book For Developers”
The case against localStorage
Christian Heilmann on localStorage: We have to stop advocating localStorage as a great opportunity for storing data as it performs badly. Sadly enough the alternatives are not nearly as supported or simple to implement. There is no simple solution for local storage → Related: Web Storage Introduction →