Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo habe folgendes Problem.

ich habe ein echo in dem ich die werte aus Variablen in einer tabelle ausgebe.

ich möchte jetzt das die Ausgabe folgendermassen formatiert ist.

(grösse 10pt schriftart verdana und zentriert)

das ist mein echo:


echo "<tr><td$zeile[name]</td><td>$zeile[groesse] bytes</td><td><a href=\"".$zeile['link']."\" target=\"_blank\">Download</a></td></tr>";

kann mir da jemand sagen wie ich das mache???

DANKE schonmal!

Du fügst einfach den HTML Tag font ein.

Ähm, mit <font> kann man nicht wirklich eine feste Größe einstellen, es sei denn man macht es mit inline-Styles, was aber eine Zweckentfremdung des font-Tags wäre.

Ich will jetzt hier keine große Diskussion anzetteln, aber echo bzw. print/printf ist nicht dazu da, HTML-Code auszugeben, da PHP nur eine Ergänzung zu HTML darstellt und es nicht gewissermaßen ersetzt.

Eine Lösung des Problems ist diese:

<tr style="font-size: 10pt; font-family: Verdana; text-align: center;">

 <td><?php echo ...; ?></td>

</tr>

Ähm, mit <font> kann man nicht wirklich eine feste Größe einstellen, es sei denn man macht es mit inline-Styles, was aber eine Zweckentfremdung des font-Tags wäre.

Ich will jetzt hier keine große Diskussion anzetteln, aber echo bzw. print/printf ist nicht dazu da, HTML-Code auszugeben, da PHP nur eine Ergänzung zu HTML darstellt und es nicht gewissermaßen ersetzt.

Eine Lösung des Problems ist diese:

<tr style="font-size: 10pt; font-family: Verdana; text-align: center;">

 <td><?php echo ...; ?></td>

</tr>

bin der gleichen Meinung.... einfach CSS verwenden und gut...

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.