php.de

Zurück   php.de > Webentwicklung > HTML, Usability und Barrierefreiheit

HTML, Usability und Barrierefreiheit Themen rund um Textauszeichnung, Formatierung, Barrierefreiheit und Usability.

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 15.09.2004, 21:23  
Gast
 
Beiträge: n/a
Standard Problem mit table-layout:fixed

Hallo!
Ich habe folgendes Problem:
Ich will eine Tabelle mit mehreren Spalten machen, die sich aber nicht vergrößern, falls der Text mal länger sein sollte. Er soll also einfach abgeschnitten werden. Ich habe mal bei Selfhtml nachgeguckt und folgendes gefunden:

Code:
<html><head><title>table-layout</title>
</head><body bgcolor="FFFFFF" text="#000000">

<table border="1" style="table-layout:fixed">
<colgroup span="3" style=""></colgroup>
<tr>
<td style="width:100px">123456789012345678901234567890123456789012345678901234567890</td>
<td style="width:200px">123456789012345678901234567890123456789012345678901234567890</td>
<td style="width:300px">123456789012345678901234567890123456789012345678901234567890</td>
</tr>
</table>

</body></html>
Das funktioniert auch. Doch wenn nich noch ein
Code:
<tr>
<td colspan="3">
</td>
</tr>
einfüge, geht das nicht mehr . Sprich das hier geht nicht:
Code:
<html>
<body>

<table border="1" style="table-layout:fixed">
	<tr>
		<td colspan="3">
		</td>
	</tr>
	<tr>
		<td style="width:100px">123456789012345678901234567890123456789012345678901234567890</td>
		<td style="width:200px">123456789012345678901234567890123456789012345678901234567890</td>
		<td style="width:300px">123456789012345678901234567890123456789012345678901234567890</td>
	</tr>
</table>

</body></html>
Ich will weiterhin, dass die Spalten nicht größer werden... Aber sie werden es!?! Warum?!?
Hat einer eine Idee bzw. Lösung für das Problem?!
  Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 15.09.2004, 22:01  
Gast
 
Beiträge: n/a
Standard

Ich hab mit dem Attribut selber schon rumprobiert aber der Firefox interpreiert es gar nicht!

Falls du es doch machen willst, versuchs mal damit:

Code:
      <td style="width:302px" colspan="3"> 
      </td>
  Mit Zitat antworten
Alt 15.09.2004, 22:07  
Gast
 
Beiträge: n/a
Standard

hm...
ja, das geht auch nicht so richtig... die anderen spalten werden dann alle gleich groß, obwohl sie das nicht sollten
  Mit Zitat antworten
Alt 15.09.2004, 23:16  
Erfahrener Benutzer
 
Registriert seit: 14.12.2003
Beiträge: 211
pit62
Standard

dafür gibt es overflow:hidden
Ich hoffe es hilft !
MfG

<html>
<body><table border="1" style="table-layout:fixed">
<tr>
<td><div style="width:100px; overflow: hidden">123456789012345678901234567890123456789012 345678901234567890</div>
<td><div style="width:200px; overflow: hidden">123456789012345678901234567890123456789012 345678901234567890</div>
<td><div style="width:300px; overflow: hidden">123456789012345678901234567890123456789012 345678901234567890</div></td>
</tr>
</table>
</body></html>
pit62 ist offline   Mit Zitat antworten
Alt 16.09.2004, 22:35  
Gast
 
Beiträge: n/a
Standard

jo danke !
  Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[Erledigt] Galerie Problem... coraplanet PHP Tipps 2008 4 06.06.2008 13:42
Import von innoDB-Tabellen, #1005 - Can't create table Zergling-new Datenbanken 0 30.07.2007 10:49
MATCH .... AGAINST ... Problem Denise Datenbanken 4 21.03.2007 20:05
Parsen von Delimitern Basti Tutorials 0 30.09.2006 21:24
datensätze defekt oder problem mit dem einlesen? Ministry Datenbanken 4 06.07.2006 18:42
problem!!! PHP Tipps 2006 6 08.02.2006 11:06
[Erledigt] wieder ein Problem bei phpmailer und smtp PHP Tipps 2006 24 07.02.2006 01:07
[Erledigt] Problem mit mySQL Datenbanken 7 27.09.2005 12:06
Problem bei der PDF Generierung HTML2PDF von rustyparts.com joni1980 PHP-Fortgeschrittene 2 23.09.2005 16:15
[Erledigt] Problem mit Backslash Patrick Schwarz PHP Tipps 2005-2 5 26.07.2005 09:54
CREAT TABLE problem PHP Tipps 2004 1 28.10.2004 01:45
[Erledigt] InnoDB Problem oder Syntaxfehler? Datenbanken 2 27.10.2004 16:44
Problem mit alter JavaScript-Funktion woods PHP Tipps 2004 1 13.08.2004 13:34
[Erledigt] table problem HTML, Usability und Barrierefreiheit 3 10.06.2004 20:16

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
table-layout fixed firefox, table-layout:fixed firefox, html2pdf colgroup, table layout fixed funktioniert nicht, php table, table-layout fixed overflow, table layout fixed overflow, table layout fixed colspan, php table fixed, table-layout fixed does not work, html table layout fixed firefox, table layout fixed problem, html table-layout fixed geht nicht, table-layout:fixed colspan, table-layout fixed geht nicht, html2pdf colspan tabellenbreite, table-layout fixed not working, php table layout fixed, html table-layout:fixed, table-layout:fixed overflow

Alle Zeitangaben in WEZ +2. Es ist jetzt 08:04 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.