Float and clear in theory
The CSS properties float and clear empower you to create lightweight and flexible layouts while keeping your markup sleak and logic. But floats easily may end up in unexpected behaviours if you do not know what you are doing. In this post I will summarize many of the findings I have read all over the web.
Working with the Cursor Position
“Is it possible to insert text at the current cursor position inside a textarea ?”
The answer is yes, for the following browsers
- Internet Explorer (IE)
- Any Gecko based (e.g. Firefox)
- Opera 8+
Any other browser does not support this functionality.
So if you want to keep your page 100% working for everyone out there, you should stop reading here !
Using logic to minimize cross browser scripts
Javascripters often find themselves trapped between different implementations of the same standard. In the last millennium browser detection scripts where the big thing. Since then we have luckily progressed a bit in turns of crossbrowser compatibility. Not so much because of increased compatibility, but rather because of some nifty tricks in javascript that allow us not to worry about browsers.