Topic on Project:Support desk

left, center and right for words

6
188.141.46.29 (talkcontribs)

I know how to use this commands for images or a galery, but I want to know hjow to use it for words. for exemple:


test 01 << want it at the right

test 02 << want it at the center

test 03 << want it at the left


And the most important, the can't be one under other, then it would be like this?:

teste 01 test 02 test 03

Can someone help? I looked on mediawiki formatting and I didn't find nothing..

AKlapper (WMF) (talkcontribs)

May I ask "why"?

Ciencia Al Poder (talkcontribs)
Temptuousinsolence (talkcontribs)
Mglaser (talkcontribs)

You could also use divs with styles:

<div style='text-align: right;'>I am right aligned</div>
<div style='text-align: center;'>I am centered</div>
<div style='text-align: left;'>I am left aligned</div>

Proof of concept:

I am right aligned
I am centered
I am left aligned
Mglaser (talkcontribs)

Ah, sorry, I didn't see they need to be in the same line. In this case, CSS is possible but it gets a bit more complicated:

<div style='text-align: left;float:left;width:33%;'>I am left aligned</div>
<div style='text-align: center;float:left;width:33%;'>I am centered</div>
<div style='text-align: right;float:left;width:33%;'>I am right aligned</div>
I am left aligned
I am centered
I am right aligned