# How to make category selector sideways via css

**URL:** https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363
**Category:** Development
**Created:** [10월 18, 2017, 6:20오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363 "2017-10-18T18:20:32Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Bank\_Live](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bank_live/32/75893_2.png) [@Bank\_Live](https://meta.discourse.org/u/Bank_Live)
#### Post date: [10월 18, 2017, 6:20오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/1 "2017-10-18T18:20:32Z")

</div>

Hello @rewphus I like a categories at you make in website.

[http://tidbits.io](http://tidbits.io)

 ![el1](https://global.discourse-cdn.com/meta/original/3X/5/c/5cfa572ba4a9e94d9b425d5869e87df7b4ea4303.jpg)

I want to make same categories from example pictures. I can it how to make. Thank you very much. 😀

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [10월 18, 2017, 6:25오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/2 "2017-10-18T18:25:29Z")

</div>

Edit: Yeah, it’s CSS. It’s technically public but I’ll leave it up to Ryan if he wants is shared or not.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [10월 18, 2017, 6:31오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/3 "2017-10-18T18:31:34Z")

</div>

Looks like the selector:

`@media (min-width: 1280px) desktop-scss-stack.scss:95 .list-controls .category-breadcrumb li:first-of-type>a.badge-category:first-of-type`

sets:  
`transform: rotate(-90deg); transform-origin: right bottom 0; background-color: transparent !important; font-weight: bold; font-size: 5em; position: fixed; right: 87vw; text-align: right; min-width: 80vh;`

Which rotates, repositions and offsets it to the left. Almost certainly not the entire style, but a start.

---

<div class="post-metadata">

### Author: ![Bank\_Live](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bank_live/32/75893_2.png) [@Bank\_Live](https://meta.discourse.org/u/Bank_Live)
#### Post date: [10월 18, 2017, 6:45오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/4 "2017-10-18T18:45:34Z")

</div>

How to set in customize\>themes\>Edit:CSS 😅

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [10월 18, 2017, 6:46오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/5 "2017-10-18T18:46:35Z")

</div>

/admin/customize/themes

Then edit the CSS to add the code above.

---

<div class="post-metadata">

### Author: ![Bank\_Live](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bank_live/32/75893_2.png) [@Bank\_Live](https://meta.discourse.org/u/Bank_Live)
#### Post date: [10월 18, 2017, 6:50오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/6 "2017-10-18T18:50:57Z")

</div>

I copy to paste it not work.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [10월 18, 2017, 6:51오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/7 "2017-10-18T18:51:44Z")

</div>

Show us what you pasted and where you pasted it.

Is the style you created currently applied to your site?

Are you doing this on a live community, or a test instance somewhere?

---

<div class="post-metadata">

### Author: ![Bank\_Live](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bank_live/32/75893_2.png) [@Bank\_Live](https://meta.discourse.org/u/Bank_Live)
#### Post date: [10월 18, 2017, 6:59오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/8 "2017-10-18T18:59:37Z")

</div>

![ee2](https://global.discourse-cdn.com/meta/original/3X/9/8/98575ab64e67d6d54fe2b28623c9b401a388438b.jpg)

I’m not sure if it’s set correctly. 😅

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [10월 18, 2017, 7:01오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/9 "2017-10-18T19:01:18Z")

</div>

Yep, you need {}

So:

`@media (min-width: 1280px) desktop-scss-stack.scss:95 .list-controls .category-breadcrumb li:first-of-type>a.badge-category:first-of-type {`  
`transform: rotate(-90deg); transform-origin: right bottom 0; background-color: transparent !important; font-weight: bold; font-size: 5em; position: fixed; right: 87vw; text-align: right; min-width: 80vh;`  
`}`

@jomaxro image above isn’t lightboxing either.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [10월 18, 2017, 7:03오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/10 "2017-10-18T19:03:26Z")

</div>

Yeah, @zogstrip is aware and has cloned the site so he can test locally.

---

<div class="post-metadata">

### Author: ![Bank\_Live](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bank_live/32/75893_2.png) [@Bank\_Live](https://meta.discourse.org/u/Bank_Live)
#### Post date: [10월 18, 2017, 7:07오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/11 "2017-10-18T19:07:04Z")

</div>

![ee3](https://global.discourse-cdn.com/meta/original/3X/1/4/1416d98300570248e0f649f6deb215387010be38.jpg)

it show

```
Error: Invalid CSS after "...-width: 1280px)": expected "{", was "desktop-scss-stack."
        on line 1 of theme_field.scss
>> @media (min-width: 1280px) desktop-scss-stack.scss:95 .list-controls .category
   -------------------------^

```

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [10월 18, 2017, 7:09오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/12 "2017-10-18T19:09:48Z")

</div>

The text in your editor isn’t wrapping, so we can’t see what you’ve entered.

Try formatting it like this:

`@media (min-width: 1280px) desktop-scss-stack.scss:95 .list-controls .category-breadcrumb li:first-of-type>a.badge-category:first-of-type {`  
`transform: rotate(-90deg);`  
`transform-origin: right bottom 0;`  
`background-color: transparent !important; `  
`font-weight: bold;`  
`font-size: 5em;`  
`position: fixed;`  
`right: 87vw;`  
`text-align: right;`  
`min-width: 80vh;`  
`}`

I’ve not dug into it too far, even with this in place you may need to make other styling changes.

---

<div class="post-metadata">

### Author: ![Bank\_Live](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bank_live/32/75893_2.png) [@Bank\_Live](https://meta.discourse.org/u/Bank_Live)
#### Post date: [10월 18, 2017, 7:14오후 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/13 "2017-10-18T19:14:21Z")

</div>

No work. 😂 but will try.

---

<div class="post-metadata">

### Author: ![Bank\_Live](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bank_live/32/75893_2.png) [@Bank\_Live](https://meta.discourse.org/u/Bank_Live)
#### Post date: [10월 19, 2017, 7:37오전 UTC](https://meta.discourse.org/t/how-to-make-category-selector-sideways-via-css/72363/14 "2017-10-19T07:37:57Z")

</div>

Now i can make it work follow as me want. 😃

 ![ee4](https://global.discourse-cdn.com/meta/original/3X/4/c/4caa2cdcb9ff5b0ea49b5f78768f12fe83498635.jpg)
