• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

jquery problem with tabs inside accordion

I am having an issue with an image that is sitting inside my div of the tabs widget, nested inside an accordion div. I have tried everything, not even the forums at jquery could help me quick enough, even thought the jqeuery is great, the forums site support really sucks.

I am hoping someone with a lot of background and experience will be able to help me with this, if you want i can post the code, or give you the link of the website i am working on so as to get proper functionality.

It looks like off the bat, that the images are being placed one on top of another code wise, as each div is written one after another....each div having an image that is 200 height...
so in total, the main div now seems to have 800 (4 divs with images of 200), even though the basic functionality of the tabs is working, it should not be giving the main div such a big panel.

Any help is appreciated... the address where the code is at is at www.collusionfall.com
I will give full 500 points on this as i need it asap
thanks all
0
landerson999
Asked:
landerson999
  • 3
  • 3
1 Solution
 
mcnuteCommented:
<script>
	$(function() {
		$( "#accordion" ).accordion({
			autoHeight: false,
			navigation: true
		});
	});
	</script>

Open in new window


try to give your accordion the autoHeight: false method.
0
 
landerson999Author Commented:
great ... worked like a charm.. just wondering how you figured it out... did ualready know or did u debug a bit using any tools.... ?
0
 
landerson999Author Commented:
quick response.. working solution
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
mcnuteCommented:
just watched the jquery docs about accordion ui. I'm working quite a lot with jquery, though. I'm glad that i could help you. Thank you for the points. Have a wonderful time on your tour!
0
 
landerson999Author Commented:
LOL...yes...our world tour
Thanks, fixed it, and I am thinking even of maybe going further and adding some more stuff, but it is interesting to note how jquery reacts with objects within containers....

I am aware that I can add some jquery on the child within a container that would change the way the parent container behaves ...so I am understanding that what ever jquery gets executed last , is what keeps the formatting as...so had i done further down the page, a script tag with formatting for the tabs inside the accordion, that would force the absolute width to be x, then no matter what the parent had as formatting, it would be changed to allow for the aformentioned code execution.

Thanks again
0
 
mcnuteCommented:
Very interesting and useful background information. I really apreciate your comment. Thanks for sharing!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now