BBCode "Table": Innenabstand in der Zelle

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Benutzeravatar
TeddyKlaus
Mitglied
Beiträge: 86
Registriert: 08.09.2005 18:44
Wohnort: Emsdetten
Kontaktdaten:

BBCode "Table": Innenabstand in der Zelle

Beitrag von TeddyKlaus »

Hallo,

ich habe in unser Forum den bbcode "table" (Autor: slapshot / Version 1.31) eingebaut - Schon vor Jahren ...

Ich finde es "schade", dass der Zellinhalt direkt an die Zellenumrandung anschließt. Ändere ich in der bbcode.tpl den Wert für cellpadding z.B. auf 10, dann habe ich diesen Abstand an allen vier Seiten der Zelle.

Bisher habe ich immer links und rechts vom Text (Zelleninhalt) ein ALT-255 als geschütztes Leerzeichen eingefügt. Gibt es die Möglichkeit, z.B. mit "padding-left / padding-right" da irgendwas zu machen oder weiss jemand, an welcher Stelle ich vielleicht direkt im template das geschützte Leerzeichen schon "voreingeben" kann?

Vielen Dank

Gruß
Klaus

Code: Alles auswählen

<!-- BEGIN table_open --><table align="top" cellpadding="2" cellspacing="0" class="postbody" border="1" bgcolor="transparent"><!-- END table_open --> 
<!-- BEGIN table_close --></td></tr></table><!-- END table_close --> 
<!-- BEGIN table_color --><table align="top" cellpadding="2" cellspacing="0" class="postbody" bgcolor="{TABCOLOR}" border="1"><!-- END table_color --> 
<!-- BEGIN table_size --><table align="top" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF" style="font-size: {TABSIZE}px" border="1"><!-- END table_size --> 
<!-- BEGIN table_cs --><table align="top" cellpadding="2" cellspacing="0" bgcolor="{TABCSCOLOR}" style="font-size: {TABCSSIZE}px" border="1"><!-- END table_cs --> 
<!-- BEGIN table_mainrow --></td></tr><tr><td style="font-weight: bold; text-align: center;"><!-- END table_mainrow -->
<!-- BEGIN table_mainrow_color --></td></tr><tr bgcolor="{TABMRCOLOR}"><td style="font-weight: bold; text-align: center;"><!-- END table_mainrow_color -->
<!-- BEGIN table_mainrow_size --></td></tr><tr style="font-size: {TABMRSIZE}px;"><td style="font-weight: bold; text-align: center;"><!-- END table_mainrow_size -->
<!-- BEGIN table_mainrow_cs --></td></tr><tr bgcolor="{TABMRCSCOLOR}" style="font-size: {TABMRCSSIZE}px"><td style="font-weight: bold; text-align: center;"><!-- END table_mainrow_cs -->
<!-- BEGIN table_maincol --></td><td style="font-weight: bold; text-align: center;"><!-- END table_maincol -->
<!-- BEGIN table_maincol_color --></td><td bgcolor="{TABMCCOLOR}" style="font-weight: bold; text-align: center;"><!-- END table_maincol_color -->
<!-- BEGIN table_maincol_size --></td><td style="font-size: {TABMCSIZE}px; font-weight: bold; text-align: center;"><!-- END table_maincol_size -->
<!-- BEGIN table_maincol_cs --></td><td bgcolor="{TABMCCSCOLOR}" style="font-size: {TABMCCSSIZE}px; font-weight: bold; text-align: center;"><!-- END table_maincol_cs --><!-- BEGIN table_row --></td></tr><tr><td><!-- END table_row --> 
<!-- BEGIN table_row_color --></td></tr><tr bgcolor="{TABRCOLOR}"><td><!-- END table_row_color --> 
<!-- BEGIN table_row_size --></td></tr><tr style="font-size: {TABRSIZE}px"><td><!-- END table_row_size --> 
<!-- BEGIN table_row_cs --></td></tr><tr bgcolor="{TABRCSCOLOR}" style="font-size: {TABRCSSIZE}px"><td><!-- END table_row_cs --> 
<!-- BEGIN table_col --></td><td><!-- END table_col --> 
<!-- BEGIN table_col_color --></td><td bgcolor="{TABCCOLOR}"><!-- END table_col_color --> 
<!-- BEGIN table_col_size --></td><td style="font-size: {TABCSIZE}px"><!-- END table_col_size --> 
<!-- BEGIN table_col_cs --></td><td bgcolor="{TABCCSCOLOR}" style="font-size: {TABCCSSIZE}px"><!-- END table_col_cs --> 
Antworten

Zurück zu „phpBB 2.0: Mod Support“