Tuesday, 15 March 2011

jquery - expandable collapsable DIV list -



jquery - expandable collapsable DIV list -

i have fiddle ive been working on

if expan list, works great, but if collapse list, contend flashes on right of grid.

how can stop happening?

here snippet of jquery code

$(".header").click(function () { $header = $(this); //getting next element $content = $header.next(); //open content needed - toggle slide- if visible, slide up, if not slidedown. $content.slidetoggle(200, function () { $('.contentcol', this).fadetoggle(400); }); });

solved fiddle

add float:left; .content create maintain position on resizing.

.content{ float:left; }

http://jsfiddle.net/gad27q4b/2/

jquery

No comments:

Post a Comment