HTML:
<table width="<TMPL_VAR NAME=proz_thirty>%" border="0" cellspacing="0" cellpadding="0" style=" font-weight:bold; color:#FFFFFF; font-size:10px; margin:0px 10px 0px 90px;">
<tr>
<td width="17" background="../gfx/history/o_balken_text.gif" bgcolor="#990000"><span class="history_b1"><img src="../gfx/history/o_balken_start.gif" alt="" width="17" height="20" style="float:left"></span></td>
<td background="../gfx/history/o_balken_text.gif" style="padding-left:3px"><TMPL_VAR NAME=count_thirty></td>
<td background="../gfx/history/o_balken_text.gif"><div align="right"><span style=" background-color:#CCCC33; min-width:10px; width:<TMPL_VAR NAME=proz_thirty>%; height:20px; background-image:url(../gfx/history/o_balken_text.gif); text-align:right"><img src="../gfx/history/o_balken_end.gif" alt="" width="8" height="20"></span></div></td>
</tr>
</table>
Hi,
ich weiß: dass <TMPL_VAR NAME=proz_thirty> eine bestimmte Prozentzahl ausgibt, soweit funktioniert dass auch, dass ausgeben "missbrauche" ich und füge es im "width attribut" ein damit ich dass ganze grafisch darstellen kann. ich hoffe der Code ist verständlich.
ich habe folgendes Problem:
dadurch dass immer von 100% ausgegangen wird, dass Ganze aber eine Tabelle wird welche hauptsächlich zwischen 1% und 50% laufen wird.
Somit sieht dass alles immer recht seltsam aus weil die Ganze Breite gebraucht wird, also 100% aber die Breite des Grafischen Balkens maximal 50% beträgt.
ich habe folgende Wissenlücke:
wie mache ich da eine Rechenaufgabe in PHP draus?
also sowas:
<table width="(<TMPL_VAR NAME=proz_thirty>x(mal)2(beliebiger faktor))%" border="0" ...
versteht Ihr? sodass wenn es in Wirklichkeit 30% Breite von 100% sind es optisch so aussieht als wären es 60% damit die Tabelle nicht so leer aussieht.
hoffe mir kann jemand helfen! werde euch auch schnell eure Fragen beantworten freue mich echt auf Hilfe.
Zuletzt bearbeitet: