Dear All, Is it possible to align text vertically in a Wiki or do we need to create an image? Then can we flip the Image? or will the text in the image already be flipped? Thanks David
________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
David Price wrote:
Dear All, Is it possible to align text vertically in a Wiki or do we need to create an image? Then can we flip the Image? or will the text in the image already be flipped? Thanks David
<span style="vertical-align: top">Some text</span>
If you can do it with HTML, you almost always can do it in the wiki. If you can't do it in HTML, you probably can't do it in the wiki.
MediaWiki doesn't automatically flip images.
Platonides wrote:
David Price wrote:
Dear All, Is it possible to align text vertically in a Wiki or do we need to create an image? Then can we flip the Image? or will the text in the image already be flipped? Thanks David
<span style="vertical-align: top">Some text</span>
If you can do it with HTML, you almost always can do it in the wiki. If you can't do it in HTML, you probably can't do it in the wiki.
MediaWiki doesn't automatically flip images.
I assume the OP wanted to rotate text so that it's baseline was vertical instead of horizontal, rather than change the vertical alignment within boxes. If that's the case, then the answer is "sort of." CSS 3.0 defines Rotating Boxes but it will be a while before the spec is even finished, much less supported widely.
http://www.w3.org/TR/css3-box/#rotating
If you only care about IE (you should care about other browsers, of course), you can do something like this:
<div style="writing-mode: tb-rl">Rotated Text (IE only)</div>
Or, if you really want to get fancy, you could write a script (or search the web for one, I suspect they exist) that would take text as input and produce an image with the text rotated in pretty much any way you want. Integrating that with MediaWiki is left as an exercise for the reader.
Platonides wrote:
<span style="vertical-align: top">Some text</span>
If you can do it with HTML, you almost always can do it in the wiki. If you can't do it in HTML, you probably can't do it in the wiki.
Annoyingly, HTML's align="top" and CSS's "vertical-align: top" aren't quite the same thing and aren't guaranteed to give the same results. The former works well with text, the latter with images. Anything else seems to be a crap shoot.
Mike
mediawiki-l@lists.wikimedia.org