Expanding Divs 2
In my humble opinion, this is one of the most useful javascript snippets web developers will eventually have to use and reuse. Specially knowing that absolute positioned elements ‘don’t have a heigtht’, and thus they don’t expand their containers or correctly position subsequent elements bellow them. In my original article Expanding Divs (The Basics). I explain the general logic of the code that forms the function that follows. Based on that, I figured there has to be faster way to accomplish this. So I converted the code in the previous article into a set of functions. (more…)
