Template:Composition bar: Difference between revisions

From PoliticalSG
No edit summary
No edit summary
Line 1: Line 1:
<div style="width: 100%; background-color: #e6e6e6; border: 1px solid #ccc; height: 20px;  position: relative; box-sizing: border-box; overflow: hidden;">
<div style="width: 100%; background-color: #e6e6e6; border: 1px solid #ccc; height: 20px;  position: relative; box-sizing: border-box; overflow: hidden;">
<span style="position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 12px; color: #000; white-space: nowrap;">{{{1}}}%</span>
<span style="position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 12px; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; white-space: nowrap;">{{{1}}}%</span>
   <div style="width: {{{1}}}%; background-color: {{#switch: {{{party|}}}
   <div style="width: {{{1}}}%; background-color: {{#switch: {{{party|}}}
     | PAP = #2b58ab
     | PAP = #2b58ab

Revision as of 07:51, 21 June 2026

{{{1}}}%