Jump to content
  • 0

Вертикальный текст в заголовке таблицы (Firefox)


Casufi
 Share

Question

Нужно расположить текст текст в заголовках к таблице вертикально, в идеале решение должно работать в Google Chrome и Firefox но вполне достаточно только Firefox.

Проую прописать

-moz-transform: rotate(270deg); -moz-transform-origin: 50% 50%;

и получаю вот такую вот картинку

3482205.png

Вот копия стиля с элемента

element.style {
transform: rotate(270deg);
transform-origin: 50% 50% 0;
}
.t20Standard th.t20ReportHeader {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-color: #AAAAAA #AAAAAA #AAAAAA -moz-use-text-color;
border-image: none;
border-style: solid solid solid none;
border-width: 1px 1px 1px medium;
}
th.t20ReportHeader {
background-color: #CFE0F1;
padding: 2px 8px;
white-space: nowrap;
}

Подскажите, каким образом развернуть текст в заголовке таблицы ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Стиль


p {
-webkit-transform: rotate(270deg);
}
.thh {
width: 50px;
height: 300px;
}

Код

<table width="200" border="1">
<tr>
<th scope="col">Пункт 1</th>
<th scope="col">Пункт 2</th>
<th scope="col">Пункт 3</th>
<th scope="col">Пункт 4</th>
<th scope="col">Пункт 5</th>
<th class="thh" scope="col"><p>Администрирование портала</p></th>
</tr>
<tr>
<td> 1</td>
<td> 2</td>
<td> 3</td>
<td> 4</td>
<td> 5</td>
<td> 6</td>
</tr>
</table>

Edited by satantx
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy