Spaltenbreite bleibt einfach ned konstant (HTML)

Seite 1 von 1 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/spaltenbreite_bleibt_einfach_ned_konstant_html_138794/page_1 - zur Vollversion wechseln!


semteX schrieb am 13.03.2005 um 22:58

i verstehs ned.

die spaltenbreite verändert sich immer (minimal)... mich störts ziemlich :/

ie geht, ff zickt.

http://www.sbg.at/zivi/zivis.php

der php code:

Code: PHP
<?php

// Zip

if($_GET["a"]="show") {
		$zidi=$zivi->getzividetails($_GET["zivi"]);
		echo "<table border='0' class='backg2' cellpadding='1' cellspacing='1' width='400'>
		<tr>
			<td class='hb1' width='150'><div class='data'>Name:</div></td>
			<td width='250'><div class='text'>".$zidi[0]."</div></td>
		</tr>
		<tr>
			<td class='hb2' width='150'><div class='data'>Adresse:</div></td>
			<td width='250'><div class='text'>".$zidi[1]."</div></td>
		</tr>
		<tr>
			<td class='hb1' width='150'><div class='data'>Telnr:</div></td>
			<td width='250'><div class='text'>".$zidi[2]."</div></td>
		</tr>
		<tr>
			<td class='hb2' width='150'><div class='data'>Mail:</div></td>
			<td width='250'><div class='text'>".$zidi[3]."</div></td>
		</tr>
		</table>";
	} else {
		echo "<div class='text'>Oben einen Zivi auswählen</div>";
// Zip
?>

HTML Source:

Code: PHP
<html>
<head>
<title>RK Zell am See Dienstabrechnung (c) by Zivi of the year!</title>
<link href='style.css' rel='stylesheet' type='text/css'>
</head>
<body><table border='0' width='400' cellpadding='1' cellspacing='1'>
<tr>
	<td><a href='/zivi/zivis.php?a=show&zivi=Test1'>Test1</a> - <a href='/zivi/zivis.php?a=show&zivi=Test2'>Test2</a> - <a href='/zivi/zivis.php?a=show&zivi=ZiviZiviZivi'>ZiviZiviZivi</a> - <a href='/zivi/zivis.php?a=show&zivi=kurzZivi'>kurzZivi</a> - </td>

</tr>
<tr>
	<td><table border='0' class='backg2' cellpadding='1' cellspacing='1' width='400'>
		<tr>
			<td class='hb1' width='150'><div class='data'>Name:</div></td>
			<td width='250'><div class='text'>ZiviZiviZivi</div></td>
		</tr>
		<tr>
			<td class='hb2' width='150'><div class='data'>Adresse:</div></td>

			<td width='250'><div class='text'>Zivikaff3, 3444 Zivihausen</div></td>
		</tr>
		<tr>
			<td class='hb1' width='150'><div class='data'>Telnr:</div></td>
			<td width='250'><div class='text'> 2333 45525555</div></td>
		</tr>
		<tr>

			<td class='hb2' width='150'><div class='data'>Mail:</div></td>
			<td width='250'><div class='text'>Zivi_zivi@gmx.at
</div></td>
		</tr>
		</table></td>
</tr>
</table><h3>Page rendered in 0.28 msecs</h3></body>
</html>

mit was hängt das bitte zusammen? ich checks ned


gerhardtt schrieb am 13.03.2005 um 23:46

edit:blödsinn....... kann dir nicht helfen...


watchout schrieb am 13.03.2005 um 23:46

naja, klar das da was net funkt wenn du schonmal widersprüchliche breitenangaben gibst:

150+250+3*1=400 (?)

am einfachsten wirds wohl sein der 2. spalte keine breite zuzuweisen - oder der gesamten table...

aber generell arbeitet man bei tables eher mit "th" - einmal definieren und fertig. da kann auch weniger schief gehen...


semteX schrieb am 14.03.2005 um 22:18

hm true der border kommt ja auch noch dazu. thx




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025