On 11/17/11 2:16 PM, Bob Meetin wrote:
On 11/17/2011 12:01 PM, David Hucklesby wrote:
On 11/17/11 9:15 AM, Bob Meetin wrote:
Can anyone recommend some code, a tutorial, pure CSS, no
JavaScript, jQuery, Mootools, that can display a series of tabs
[...]

Something like this, perhaps? —

<http://css-tricks.com/13758-functional-css-tabs-revisited/>

At first look this seems to work perfectly, but then when you add
additional content you see that it does not dynamically adjust with
the amount of content. The problem is that the amount of text will
vary regularly but the min-height is fixed. Ideas?

http://www.dottedi.biz/code/pure_css_tabs.html


Well, div.content is positioned absolute, so you do need to give the
container (div.tabs) a height or the content will cover whatever comes
after it. This would be an issue whatever method you choose.

JavaScript would allow you to measure the height of the tallest tab
content and apply that to the container — but I can't think of a way of
having the height adjust using pure CSS. Sorry.
--
Cordially,
David

______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to