Solved

jquery problem with tabs inside accordion

Posted on 2011-09-23
6
348 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
ID: 36592127
<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
ID: 36592350
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
ID: 36592355
quick response.. working solution
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 11

Expert Comment

by:mcnute
ID: 36592366
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
ID: 36598755
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
ID: 36598784
Very interesting and useful background information. I really apreciate your comment. Thanks for sharing!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

777 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