Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Not sure why you'd want to wrap the whole thing in another DIV, it's already wrapped in <div class="vertical-tabs"></div>. What are you trying to accomplish?
If you're set on wrapping in another DIV, you can accomplish this by overriding the theme_vertical_tabs() function.
OK thanks, vertical-tabs does not wrap the whole thing, but uses padding on the left hand side. By having another div around the whole thing I want to add some CSS like border and such.... I have an idea which could end up becoming quite nice... posting pictures when done... :)
Ah I see. It's not impossible, but certainly more difficult without an extra wrapper. You can accomplish a similar effect (minus rounded corners) using something like this:
margin-left:0;
padding:1em 1em 1em 16em;
However this is probably more trouble than it's worth. I'd suggest overriding the theme_vertical_tabs() function and adding another wrapper div. The markup in Vertical Tabs now mirrors Drupal 7 core, so we probably won't change the default markup unless the same changes are made in core.
Comments
Comment #1
quicksketchNot sure why you'd want to wrap the whole thing in another DIV, it's already wrapped in
<div class="vertical-tabs"></div>. What are you trying to accomplish?If you're set on wrapping in another DIV, you can accomplish this by overriding the theme_vertical_tabs() function.
Comment #2
NeoID commentedOK thanks, vertical-tabs does not wrap the whole thing, but uses padding on the left hand side. By having another div around the whole thing I want to add some CSS like border and such.... I have an idea which could end up becoming quite nice... posting pictures when done... :)
Edit: This is how it should look like when I'm done: http://img91.imageshack.us/img91/6725/demotck.jpg
Comment #3
quicksketchAh I see. It's not impossible, but certainly more difficult without an extra wrapper. You can accomplish a similar effect (minus rounded corners) using something like this:
However this is probably more trouble than it's worth. I'd suggest overriding the theme_vertical_tabs() function and adding another wrapper div. The markup in Vertical Tabs now mirrors Drupal 7 core, so we probably won't change the default markup unless the same changes are made in core.
Comment #4
dave reidMarking as by design then.