Ah I think I understand what you mean. What method should I be using to achieve this effect. What is the correct way to hide/show the elements so I do not get the line-break ?
Originally Posted by VIPStephan
I took the liberty to format your code so itís easier to see where an element starts and ends.
One of the two issues is this, I guess:
document.getElementById(shID).style.display = 'block';
If you display an element as block-level element it invokes a line break before and after itself.
Secondly, if you want centered text, donít float it.
is only working on inline content and not on elements that are floated, because these are basically behaving as block elements.