I'm trying to use the tabs widgets of jQuery-UI having panels content to extend to the whole available space.
Here's a simplified version of what I've got so far: http://jsfiddle.net/MhEEH/3/
You'll see that the green panel content of #tab-1 just covers the whole page, instead of just the panel space, when I use the following CSS:
#tab-1 {
background: green;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
I could use "top: 27px;" to fix that, but this would collide with two things:
- If I change the tabs "theme", the height (27px) could possibly change
- If I have a lot of tabs, I'll have a second row below the first row. So my panel content would then cover this second row...
A clean & short solution would be fine.
JavaScript is acceptable, while a (clean!) CSS-only solution would be preferable...
-- Regards,
Stefan