Jump to content

Template talk:Rotate text

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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)[reply]

@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 use writing-mode:tb-rl/writing-mode:vertical-rl (tb-rl is deprecated but still more widely supported than writing-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?
--Ahecht (TALK
PAGE
) 19:59, 16 May 2018 (UTC)[reply]
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.[reply]