Template talk:Rotate text
Appearance
Table column width bug with rotated headings
[edit]When used to rotate the headings of a table, this template produces the wrong table column width, and wrong headings row height; see details in Template talk:Table#Column width bug with rotated headings (solved). I'm not sure if this applies to {{Table}}, {{Rotate text}}, or their interaction. Pol098 (talk) 14:39, 18 January 2017 (UTC)
- @Pol098: This isn't a bug per-se with {{Table}} or {{Rotate text}}, this is a property of how CSS handles text transformations. If you are rotating strictly by 90 degrees, instead of using
transform:rotate
, you can usewriting-mode:tb-rl
/writing-mode:vertical-rl
(tb-rl
is deprecated but still more widely supported thanwriting-mode:vertical-rl
). For example:<span style="-ms-writing-mode: tb-rl; -webkit-writing-mode: tb-rl; -webkit-writing-mode: vertical-rl; writing-mode: vertical-rl; white-space: nowrap;">Critical_attribute?</span>
results in:
Critical_attribute? |
---|
- Many thanks for response; I thought I was reporting a bug, but it seems that I was requesting support! Perhaps this should be documented in relevant place(s), e.g. in {{rotate text}} documentation? I don't think I should do it, for now at least, as I don't have any proper knowledge. Pol098 (talk) 20:55, 16 May 2018 (UTC) (later) I have updated Template talk:Table#Column width bug with rotated headings (solved) to include the code suggested by Ahecht, with an example.