Using jQuery's slideDown with display: inline-block

user825286 picture user825286 · Feb 26, 2012 · Viewed 16.1k times · Source

How can I use jQuery's slideDown with display: inline-block, as opposed to the default display: block;

Some of the content inside the div I'm using requires it to be so, and the design partly breaks unless I fix it. However, fixing it after the sliding down has finished will be glitchy.

Any ideas?

Answer

themarcuz picture themarcuz · Feb 26, 2012

You should probably wrap the div with display: inline-block, into another div, with simple display: none, that will be the target of your slideDown function. I made up a demo for you here http://jsfiddle.net/d3BHL/2/
Let me know if it helps