Vorlage:Dia: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 23: | Zeile 23: | ||
Standardweite, rw | Standardweite, rw | ||
− | -->{{#vardefine:rw| | + | -->{{#vardefine:rw|{{{rw|500}}}}}<!-- |
− | Standardhöhe, rh (padding-top) | + | Standardhöhe, rh |
+ | (padding-top: Umrechnung von px in % der Weite) | ||
− | -->{{#vardefine: | + | -->{{#vardefine:rh| 0}}<!-- |
− | -->{{#vardefine: | + | -->{{#vardefine:rh |
− | | {{#ifeq: {{{rh|}}} | auto | | + | | {{#ifeq: {{{rh|}}} | auto | <!--do nothing--> |
− | | {{#expr: {{{rh|}}}/{{#var:rw}}*100}}% | + | | padding-top:{{#expr: {{{rh|}}}/{{#var:rw}}*100}}% |
}} | }} | ||
}}<!-- | }}<!-- | ||
Zeile 38: | Zeile 39: | ||
-->{{#vardefine:margin| margin-}}<!-- | -->{{#vardefine:margin| margin-}}<!-- | ||
-->{{#vardefine:pos_innen| static}}<!-- | -->{{#vardefine:pos_innen| static}}<!-- | ||
− | -->{{# | + | -->{{#if: {{#var:rh}}|{{#vardefine:margin|}}{{#vardefine:pos_innen| absolute}} }}<!-- |
Abstände | Abstände | ||
Zeile 56: | Zeile 57: | ||
--><div id='{{#var:id}}' class='imgBorder diax2'><!-- | --><div id='{{#var:id}}' class='imgBorder diax2'><!-- | ||
− | --><div class='aussen' style=' | + | --><div class='aussen' style='{{#var:rh}}'><!-- |
− | |||
− | '><!-- | ||
--><div class='innen' style=' | --><div class='innen' style=' | ||
position:{{#var:pos_innen}}; | position:{{#var:pos_innen}}; |