html height und width Problem

Status
Nicht offen für weitere Antworten.

Brauni

Erfahrenes Mitglied
servus

bin gerade dabei eine Homepage zu programieren mit html und css. Bis jetzt klappte alles bestens. Ich sitze jetzt schon gut 2 Stunden an einem Problem.
Am besten Ihr seht euch den Screenshot an --> Screenshot
Ich habe keine Ahnung, wie sich dieser eine Pixel als Abstand eingeschlichten hat. Im Firefox passt alles. Im IE (Screenshot im Anhang) nicht.

Hier der HTML Code:

<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<?php if ( $my->id ) initEditor(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>

<?php echo "<meta name=\"author\" content=\"www.2lounge.de\" />" ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?>

<link href="css/template_css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="760" height="520" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="15" colspan="4">&nbsp;</td>
</tr>
<tr>
<td height="15" colspan="4">&nbsp;</td>
</tr>
<tr>
<td colspan="4" width="760" height="5"><img src="templates/braunitest4/images/schatten_oben.gif" width="760" height="5"/></td>
</tr>
<tr>
<tr>
<td valign="top" width="5" height="420" rowspan="3" background="templates/braunitest4/images/schatten_links.gif"><img src="templates/braunitest4/images/schatten_links.gif" width="5" height="430"/></td>
<td width="171" height="100" bgcolor="#FFFFE6" ><img src="templates/braunitest4/images/logo_klein.gif" width="160" height="25" hspace="5" vspace="0" /></td>
<td width="579" height="100" bgcolor="#73AF55"></td>
<td valign="top" width="5" height="420" rowspan="3" background="templates/braunitest4/images/schatten_rechts.gif"><img src="templates/braunitest4/images/schatten_rechts.gif" width="5" height="430"/></td>
</tr>
<tr>
<td height="320" width="171" rowspan="2" bgcolor="#FFFFE6" valign="top"><?php mosLoadModules ( 'left' ); ?>
</td>
<td height="20" width="579" bgcolor="#FFFFE6" valign="top"><?php mosPathWay(); ?>
</td>
</tr>
<tr>
<td height="300" width="579" bgcolor="#ECDEBB" valign="top"><?php mosMainBody(); ?></td>
</tr>
<tr>
<td height="5" width="760" colspan="4"><img src="templates/braunitest4/images/schatten_unten.gif" width="760" height="5"/></td>
</tr>
<tr align="center">
<td colspan="4" width="760" height="70">
</td>
</tr>
</table>
</body>
</html>

Ich hoffe einer von euch kann mir weiter helfen. Ich bin schon am verzweifeln! :(

greets aus wien
brauni
 

Anhänge

  • a.jpg
    a.jpg
    16,6 KB · Aufrufe: 124
Entferne mal das <tr> aus dem Source:

Code:
<?php

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<?php if ( $my->id ) initEditor(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>

<?php echo "<meta name=\"author\" content=\"www.2lounge.de\" />" ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?>

<link href="css/template_css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="760" height="520" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="15" colspan="4">&nbsp;</td>
</tr>
<tr>
<td height="15" colspan="4">&nbsp;</td>
</tr>
<tr>
<td colspan="4" width="760" height="5"><img src="templates/braunitest4/images/schatten_oben.gif" width="760" height="5"/></td>
</tr>
<tr>
<tr>
<td valign="top" width="5" height="420" rowspan="3" background="templates/braunitest4/images/schatten_links.gif"><img src="templates/braunitest4/images/schatten_links.gif" width="5" height="430"/></td>
<td width="171" height="100" bgcolor="#FFFFE6" ><img src="templates/braunitest4/images/logo_klein.gif" width="160" height="25" hspace="5" vspace="0" /></td>
<td width="579" height="100" bgcolor="#73AF55"></td>
<td valign="top" width="5" height="420" rowspan="3" background="templates/braunitest4/images/schatten_rechts.gif"><img src="templates/braunitest4/images/schatten_rechts.gif" width="5" height="430"/></td>
</tr>
<tr>
<td height="320" width="171" rowspan="2" bgcolor="#FFFFE6" valign="top"><?php mosLoadModules ( 'left' ); ?>
</td>
<td height="20" width="579" bgcolor="#FFFFE6" valign="top"><?php mosPathWay(); ?>
</td>
</tr>
<tr>
<td height="300" width="579" bgcolor="#ECDEBB" valign="top"><?php mosMainBody(); ?></td>
</tr>
<tr>
<td height="5" width="760" colspan="4"><img src="templates/braunitest4/images/schatten_unten.gif" width="760" height="5"/></td>
</tr>
<tr align="center">
<td colspan="4" width="760" height="70"> 
</td>
</tr>
</table>
</body>
</html>
 
Status
Nicht offen für weitere Antworten.
Zurück