Closed (works as designed)
Project:
Vertical Tabs
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2009 at 13:26 UTC
Updated:
6 Nov 2009 at 20:43 UTC
I want to theme the tabs (the whole thing)...what's the easiest way of wrapping all tabs in a div with a special class?
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.