Template:ColsStart: Difference between revisions

From The Fifth City Wiki
actually use flexbox instead
m Fix headers on first line not rendering
Line 5: Line 5:
                 style = "flex-basis: {{{width1}}};"
                 style = "flex-basis: {{{width1}}};"
             }}
             }}
         >{{{col1}}}</div>|
         >
{{{col1}}}
        </div>|
     }}<!--
     }}<!--
  -->{{#if:{{{col2|}}}
  -->{{#if:{{{col2|}}}
Line 12: Line 14:
                 style = "flex-basis: {{{width2}}};"
                 style = "flex-basis: {{{width2}}};"
             }}
             }}
         >{{{col2}}}</div>|
         >
{{{col2}}}
        </div>|
     }}<!--
     }}<!--
  -->{{#if:{{{col3|}}}
  -->{{#if:{{{col3|}}}
Line 19: Line 23:
                 style = "flex-basis: {{{width3}}};"
                 style = "flex-basis: {{{width3}}};"
             }}
             }}
         >{{{col3}}}</div>|
         >
{{{col3}}}
        </div>|
     }}<!--
     }}<!--
  -->{{#if:{{{col4|}}}
  -->{{#if:{{{col4|}}}
Line 26: Line 32:
                 style = "flex-basis: {{{width4}}};"
                 style = "flex-basis: {{{width4}}};"
             }}
             }}
         >{{{col4}}}</div>|
         >
{{{col4}}}
        </div>|
     }}
     }}
     </div>
     </div>
</div>
</div>

Revision as of 22:42, 21 June 2025