0

I'm working a simple tab menu using ant design, I want to display the text in the tab menu vertically.

T

A

B

1

My problem is, I cant achieve that state.

SAMPLE CODE

.ant-tabs-vertical > .ant-tabs-bar .ant-tabs-tab {
  height: 90px;
  line-height: 90px;
  margin: 0;
  padding: 0;
  width: 30px;
  -ms-word-break: break-all;
  word-break: break-all;
}

2 Answers2

1

Try using the writing-mode property as mentioned here:

.ant-tabs-vertical > .ant-tabs-bar .ant-tabs-tab {
  height: 90px;
  margin: 0;
  padding: 0;
  width: 30px;
  -ms-word-break: break-all;
  word-break: break-all;
  writing-mode: tb-rl;
}
abhiox
  • 176
  • 1
  • 2
  • 12
1

Try adding white-space: normal; and deleting line-height: 90px;

Vicky
  • 141
  • 1
  • 2