IE6- protected pure CSS solution?
NOT
[Leave dead peace in your graves, do not try to force them to run a marathon. This is what you do when you ask IE6 to do such things.]
IE7 / 8?
Yes, there is one solution (the principle is the same as used in this old demo of mine ), but it is not permanent (this means that if you click somewhere else on the page, your advanced content will crash), and in IE7 itβs a little strange (this means that you have to click on the button after clicking on it to see how your content expands).
IE9 + and other browsers ?
YES! Also permanent. The same principle as here .
JavaScript / jQuery method?
Yes! Take a look: the jQuery version of the same demo .
source share