You just need to change your css to..
style.display="block" or "inline"
The latter might be needed for IE8.
This is a CSS question not a rails question though.
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks