Solved

jquery problem with tabs inside accordion

Posted on 2011-09-23
6
346 Views
Last Modified: 2012-05-12
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
Comment
Question by:landerson999
  • 3
  • 3
6 Comments
 
LVL 11

Accepted Solution

by:
mcnute earned 500 total points
Comment Utility
<script>
	$(function() {
		$( "#accordion" ).accordion({
			autoHeight: false,
			navigation: true
		});
	});
	</script>

Open in new window


try to give your accordion the autoHeight: false method.
0
 

Author Comment

by:landerson999
Comment Utility
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
 

Author Closing Comment

by:landerson999
Comment Utility
quick response.. working solution
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 11

Expert Comment

by:mcnute
Comment Utility
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
 

Author Comment

by:landerson999
Comment Utility
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
 
LVL 11

Expert Comment

by:mcnute
Comment Utility
Very interesting and useful background information. I really apreciate your comment. Thanks for sharing!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now