Difference between revisions of "Template:SpeciesStatBar"

From Cassette Beasts
Line 1: Line 1:
 
<div style="padding: 0.5em">
 
<div style="padding: 0.5em">
<div style="background: #000; width: 400px; height: 30px"><div style="text-align: center; color: #fff; font-weight: bold; top: 0; position: relative; width: 100%; height: 100%; vertical-align: middle; float: left; font-size: 20px">{{{value|0}}}</div><div style="background: #3fbb9f; width: {{#expr: ({{{value|50}}}*400/{{{max_value|200}}})}}px; height: 100%"></div></div>
+
<div style="background: #000; width: 100%; max-width: 400px; height: 30px"><div style="text-align: center; color: #fff; font-weight: bold; top: 0; position: relative; width: 100%; height: 100%; vertical-align: middle; float: left; font-size: 20px">{{{value|0}}}</div><div style="background: #3fbb9f; width: {{#expr: ({{{value|50}}}*100/{{{max_value|200}}})}}%; height: 100%"></div></div>
 
</div>
 
</div>

Revision as of 19:49, 24 May 2022

0