# CSS-formatting stacked tabs

**URL:** <https://forum.obsidian.md/t/css-formatting-stacked-tabs/77787>\
**Category:** Devs: Theme Design & Custom CSS\
**Created:** [February 29, 2024, 11:56am UTC](https://forum.obsidian.md/t/css-formatting-stacked-tabs/77787 "2024-02-29T11:56:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolWg](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/3be4f8/32.png) [@RolWg](https://forum.obsidian.md/u/RolWg)\
**Post date:** [February 29, 2024, 11:56am UTC](https://forum.obsidian.md/t/css-formatting-stacked-tabs/77787/1 "2024-02-29T11:56:29Z")

</div>

I switched the view from Tabs to Stacks (vertical divided tabs).

I see a little badly. That’s why I would like to format the side bar in which the tab name can be read vertikal with other colors or shades of gray.

I know CSS and to put my changes into a snippets.css, but I can’t find the element name of this sidebar or the names for its background color and font color.

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [February 29, 2024, 10:19pm UTC](https://forum.obsidian.md/t/css-formatting-stacked-tabs/77787/2 "2024-02-29T22:19:16Z")

</div>

I renamed the post so people can see more clearly what it’s about (was “CSS-formatting the apearance”).

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [February 29, 2024, 10:24pm UTC](https://forum.obsidian.md/t/css-formatting-stacked-tabs/77787/3 "2024-02-29T22:24:24Z")

</div>

This thread has a snippet you could examine to find the selectors you need:

> [@Switch orientation on stacked tabs using CSS?](https://forum.obsidian.md/t/switch-orientation-on-stacked-tabs-using-css/60078):
>
> On mobile I’m usually using portrait mode, and I’m wondering if it would be possible to switch around the orientation of stacked tabs. That is to make them stacked top to bottom, instead of left to right. I’ve seen a discussion on [vertical tabs](https://forum.obsidian.md/t/vertical-tabs-for-more-efficient-use-of-space-and-easier-faster-navigation/42987), which is similar, but I wonder if this is possible to achieve using the stacked tabs. Things I have tried I’m on vacation just now so the need suddenly presented it self with a little less availability of tools and stuff. I do know some CSS, but not t…

And here’s a general guide to finding that sort of info:

> [@Obsidian CSS Inspector Workflow](https://forum.obsidian.md/t/obsidian-css-quick-guide/58178):
>
> Obsidian CSS Inspector Workflow This was originally called “Obsidian CSS Quick Guide” but it ended up being more focused on the inspector. As a retrospective change to help people use this as a resource, it has been renamed. – FireIsGood Hi friends! CSS in Obsidian can be confusing to get into, so this is a guide to get you started with information on the tools, methods, and some background knowledge! Let’s get started by looking at how you can look behind the curtain of Obsidian’s visuals. …

---

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [March 1, 2024, 1:34am UTC](https://forum.obsidian.md/t/css-formatting-stacked-tabs/77787/4 "2024-03-01T01:34:39Z")

</div>

I don’t know if this is what you were thinking of or going for, but give this a try. Adjust as desired.

```css
/* stacked tabs background color */
.workspace .mod-root .mod-stacked .workspace-tab-header-inner {
    background-color: rgb(224,224,224);
}

/* stacked tabs background color on hover */
.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container .workspace-tab-header {
     background-color: rgb(232,232,232);
}

/* stacked tabs - text orientation, font-weight, color */
.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container .workspace-tab-header-inner-title {
    text-orientation: upright;
    font-weight: 600;
    color: red;
}

```

 ![Screenshot 2024-03-01 at 18.20.56](https://forum.obsidian.md/uploads/default/original/3X/4/4/446c49343120fce15fc25535a97955d398a03495.png)

---

<div class="post-metadata">

**Author:** ![RolWg](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/3be4f8/32.png) [@RolWg](https://forum.obsidian.md/u/RolWg)\
**Post date:** [March 1, 2024, 2:31pm UTC](https://forum.obsidian.md/t/css-formatting-stacked-tabs/77787/5 "2024-03-01T14:31:25Z")

</div>

> [@ariehen](#):
>
> ```auto
> /* stacked tabs - text orientation, font-weight, color */
> .workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container .workspace-tab-header-inner-title {
> text-orientation: upright;
> font-weight: 600;
> color: red;
> }
> 
> ```

exactly what I needed 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [March 8, 2024, 2:32pm UTC](https://forum.obsidian.md/t/css-formatting-stacked-tabs/77787/6 "2024-03-08T14:32:23Z")

</div>

Closed on March 8, 2024, 2:32pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
