Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  6] [ 6]  / answers: 1 / hits: 16919  / 13 Years ago, sun, february 26, 2012, 12:00:00

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?


More From » jquery

 Answers
20

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


[#87199] Friday, February 24, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
muhammadbrandend

Total Points: 670
Total Questions: 95
Total Answers: 97

Location: Saint Vincent and the Grenadines
Member since Sat, Sep 11, 2021
3 Years ago
;