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.

[CSS] Überlangen ColumnText abschneiden

Empfohlene Antworten

Veröffentlicht

Guten Morgen,

Folgende Problemstellung:

Ich habe eine Tabelle mit fester Breitenangabe für die einzelnen Columns mit fester Breitenangabe. Table-Layout habe ich auf fix gesetzt.

Mein HTML-Code sieht also folgendermaßen aus:


<table style="margin-bottom:20px;table-layout:fixed">
<colgroup>
<col width="15px"></col>
<col width="50px"></col>

<col width="250px"></col>
<col span="2"></col>
<col width="80px"></col>
</colgroup>

<tr>
<td>1</td>

<td class="center"> 2701</td>
<td style="overflow:hidden">  langer Text mit allen Leerzeichen als ' ' escaped</td>
<td class="right">0,00 </td>
<td class="right">0,00 </td>

<td class="center">öffnen</td>
</tr>

.
.
.
[/PHP]

Warum wird mir <TD> mit dem langen Text im IE umgebrochen? Der firefox macht schneidet mir den Text, am Column-Ende richtig ab.

gruss

markus

  • Autor

Habe bisher keine Löung für den IE mittels CSS gefunden und das Problem nun mit PHP erschlagen, indem ich die Länge des Textes abfrage und diesen bei einer gewissen Länge (die sicher unterhalb der Breite der Column liegt) abschneide.

Eine bessere Lösung ist mir dazu nicht eingefallen.

gruss

markus

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.