You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Divs within tab content Created Aug 12, 2010

This thread is solved

Views: 2043     Replies: 5     Last reply Sep 23, 2010  
You must login first before you can use this feature

itwasbo@gmail.com

Posts: 1

Registered:
Aug 12, 2010

Divs within tab content

Posted: Aug 12, 2010

Why do div's not work within the content "panes" area of of the tabs? Does this just not work?

larig

Posts: 1

Registered:
Aug 19, 2010

» Divs within tab content

Posted: Aug 19, 2010

Reply to: Divs within tab content, from itwasbo@gmail.com
Because the div.panes class has the display property set to 'none'. I am still trying to work out an override...

jqueryMan

Posts: 2

Registered:
Aug 21, 2010

» » Divs within tab content

Posted: Aug 21, 2010

Reply to: » Divs within tab content, from larig
I use a wrapper div for my content.
Then use the following css to make it visible.

#tabbed-wrap, #tabbed-wrap div { display:block; border:none; }


<div id="tabbed-wrap">
	<div class="another-div">
           content here
        </div>
        <div class="another-div">
           content here
        </div>
    more text
</div>

I also found that explicity targeting the inner divs with the following worked well to remove any padding, extra stuffing from the parent style.

.css-panes .another-div { padding:0; }

michaelhaws

Posts: 1

Registered:
Aug 30, 2010

» » Divs within tab content

Posted: Aug 30, 2010

Reply to: » Divs within tab content, from larig
I too would be very interested in seeing an override. I tried the wrapper solution suggested jqueryMan and that only partially worked depending on what I was doing inside the wrapper div.

JasonG

Posts: 1

Registered:
Sep 15, 2010

» » » Divs within tab content

Posted: Sep 15, 2010

Reply to: » » Divs within tab content, from michaelhaws
Yeah, this one is driving me nuts, too. I shouldn't have to call out the specific nested DIVs to force them to be visible.

With the .tabs() creation, it should only be iterating through what the jQuery selection is.

I use

.tabs("div.panes > div.pane")

You'd think that it'd only grab DIVs classed as pane inside the div named panes. But unfortunately, it's display:none-ing every div in there.

edit:
I actually realized it was my own doing. In my CSS, I had


/* tab pane */
.css-panes div {
	display:none;
...
...which was hitting every DIV inside .css-panes.

I changed it to:

/* tab pane */
.css-panes div.css-pane {
	display:none;
...

My suggestion - take a look at your class object for your panes container. Make sure it's not nailing every DIV inside. Class out your individual panes specifically.


/* tab pane */
.css-panes div.css-pane {
	display:none;
	border:1px solid #666;
	border-width:0 1px 1px 1px;
	min-height:150px;
	padding:15px 20px;
	background-color:#fff;	
}

		<div class="css-panes">
			<div class="css-pane"><b>JASON</b><div><b>TEST</b></div>First tab content. Tab contents are called "panes"</div>
			<div class="css-pane">Second tab content</div>
			<div class="css-pane">Third tab content</div>
		</div>

shanemesser

Posts: 16

Registered:
Sep 22, 2010

» » » » Divs within tab content

Posted: Sep 23, 2010

Reply to: » » » Divs within tab content, from JasonG
I used the above coding exactly, but it still seems to break down with too many nested divs. I have one that is 3 deep and it's causing the issue again. Incredibly frustrating.