Difference between revisions of "Template:Positioned Text"

From Second Life Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="color: {{{color|black}}}; background-color: #eee; opacity:0.5; position: absolute; top: {{{y|0}}}px; left: {{{x|0}}}px; width: 270px; font-size: {{{size|10}}}pt; padding: 10px 5px 10px 10px; width: {{{width|auto}}}; border-radius: 6px;">{{{text}}}
<div style="color: {{{color|black}}}; background-color: #eee; opacity:0.7; position: absolute; top: {{{y|0}}}px; left: {{{x|0}}}px; width: 270px; font-size: {{{size|16}}}pt; padding: 10px 5px 10px 10px; width: {{{width|auto}}}; border-radius: 6px; position: absolute;">{{{text}}}</div><noinclude>
</div><noinclude>
Parameters:
Parameters:
* x - number of pixels from the left side
* x - number of pixels from the left side
Line 7: Line 6:
* color - color of text (default is white)
* color - color of text (default is white)


== Example ==
Example:
<div style="background-color: blue; width: 600px;">
<div style="background-color: lightblue; width: 600px; padding: 15px;">
{{Positioned Text|text=Test|x=500|y=500}}
{{Positioned Text|text=This is a test|x=500|y=100}}
</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 23:49, 11 July 2011

{{{text}}}

Parameters:

  • x - number of pixels from the left side
  • y - number of pixels from the top
  • size - point size of text (default is 10pt)
  • color - color of text (default is white)

Example:

This is a test