parentNode.org

The building blocks of a solid frontend.

Float and clear in theory

Posted in CSS, (X)HTML by reieRMeister on the February 12th, 2006

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.

(more…)

Working with the Cursor Position

Posted in JavaScript by white on the February 9th, 2006
One question, I’m getting asked almost once a day is:
“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 !

(more…)

Using logic to minimize cross browser scripts

Posted in JavaScript by Munter on the February 1st, 2006

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.

(more…)