Template:Frame: Difference between revisions

(adding float option)
Line 39: Line 39:


===Floating the frame so that text goes to the left or right of it===
===Floating the frame so that text goes to the left or right of it===
{{Frame|Rahman.jpg|FLOAT=right}}
By default, the frame will be centered and any text after it will appear below it. But what if you want the framed picture to be to the right or left of the text in your page? Just add a FLOAT= variable with left or right specified.
By default, the frame will be centered and any text after it will appear below it. But what if you want the framed picture to be to the right or left of the text in your page? Just add a FLOAT= variable with left or right specified.


<pre>{{Frame|Rahman.jpg|FLOAT=right}}</pre>
<pre>{{Frame|Rahman.jpg|FLOAT=right}}</pre>
{{Frame|Rahman.jpg|FLOAT=right}}


You can see how now the image is to the right of this text rather than above it.
You can see how now the image is to the right of this text rather than above it.