Wednesday, December 10, 2014

contentEditable - a nifty little attribute



The contentEditable attribute (part of the HTML 5 spec) had totally passed my radar.


Spin up your favorite developer toolbar and execute this in the console:
document.body.contentEditable = true;

You can now fiddle around with the texts on the page and very quickly see how your design copes with various text lengths. 

Creds to Shay Friedman for sharing this tip on the Chrome Developer Tools .NET Rocks show!

No comments:

Post a Comment