Ich find den Fehler nicht! Kleines HTML Prolem

Yodaya

Mitglied
Hallo,

ich habe für meine Seite ein Template gebaut. Im IE 6.0 ist alles in Ordnung erstaunlicherweise.

Aber in Firefox ist oben ein kleiner weißer Streifen und den bekomme ich einfach nicht weg!

Kann mir jemand sagen wo der Fehler liegt?

Ist bestimmt super easy aber....


Danke

Gruss

Yodaya
 
Hallo,

gut Idee! Das müsste eigentlich die entscheidenden Code Zeile sein:

CODE <body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" valign="top" align="left">
<tr>
<td align="left" valign="top"><table width="100%" height="132" border="0" cellpadding="0" cellspacing="0">
<tr>



Gruss

Yodaya
 
Wieso postest du nicht den ganzen HTML-Code?

Vielleicht liegts am height="132"
 
Ok.

wollte das nicht, da der code ziemlich lange ist.

CODE

<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<!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(); } ?>
<?php mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php echo '<link rel="stylesheet" href="templates/Mein Template_02/css/template_css.css" type="text/css">'; ?>
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
<style type="text/css">
<!--
.Stil1 {font-family: Arial, Helvetica, sans-serif}
.Stil2 {font-size: 12px}
-->
</style>
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" valign="top" align="left">
<tr>
<td align="left" valign="top"><table width="100%" height="132" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="7%" height="132" align="left" valign="top" background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Header_neu.png"> </td>
<td width="43%" height="132" align="left" valign="top" background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Header_neu.png"><img src="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Logo.png" border="0" width="399" height="132" /></td>
<td width="50%" height="132" align="left" valign="top" background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Header_neu.png"><p> </p>
<table width="468" border="0" align="center">
<tr>
<td><?php mosLoadModules( 'banner', -1 ); ?></td>
</tr>
</table> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="45"><img src="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Visualblue_09.png" border="0" width="85" height="45"></td>
<td background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Visualblue_11.png"><?php
global $database, $my;

# Vertical Menu V2.1 - by Arthur Konze - www.mamboportal.com modified by Wee Keat - Visualdensity.com using Cyberdine's code
$database->setQuery("SELECT id, name, link, type FROM #__menu WHERE menutype='mainmenu' AND parent='0' AND access<='$gid' AND sublevel='0' AND published='1' AND type<>'separator' ORDER BY ordering");
$rows = $database->loadObjectList();
$num_rows = count($rows);
$tab_width = floor(100 / $num_rows);
foreach($rows as $row) {

$mymenulink = $row->link;
if ($row->type != "url") {
$mymenulink .= "&Itemid=$row->id";
}

echo "<td width='$tab_width%' align='center' background='$mosConfig_live_site/templates/Mein Template_02/images/Visualblue_11.png'><a class='buttonbar' href='$mymenulink'>$row->name</a></td>";
echo "<td width='4'><img src='$mosConfig_live_site/templates/Mein Template_02/images/Visualblue_13.png' border='0' /></td>";
}
?>
</td>
</tr>
<?php

$Itemid = mosgetParam( $_REQUEST, 'Itemid', 0 );
$openid = $Itemid;

if($openid) {

$database->setQuery( "SELECT * FROM #__menu WHERE menutype='mainmenu' AND published=1 AND access <= $my->gid AND parent = $openid ORDER BY ordering, sublevel");

$subs = $database->loadObjectList();
echo $database->getErrorMsg();

if(count($subs) > 0) {

$numsubs = count($subs);
$subtab_width = floor(100 / $numsubs);

?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7%"><img src="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Visualblue_38.png" border="0" width="84" height="23" /></td>
<td background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Visualblue_39.png"><?php

foreach($subs as $sub) {
$mysubmenulink = $sub->link;
if ($sub->type != "url") {
$mysubmenulink .= "&Itemid=$openid";
}
echo "<td width='$subtab_width%' align='center' background='$mosConfig_live_site/templates/Mein Template_02/images/Visualblue_39.png'><a href=\"$mysubmenulink\" class=\"buttonbar\">$sub->name</a></td>";
echo "<td width='2'><img src='$mosConfig_live_site/templates/Mein Template_02/images/Visualblue_41.png' border='0' /></td>";

};

?>
</td>
</tr>
</table>
<?php
};
};
?>
</table>
<table width="100%">
<tr>
<td width="3%" rowspan="5" align="left" valign="top"><p> </p>
<p>  </p></td>
<td width="81%"><table width="97%" border="0" align="center">
<tr>
<td><?php mosLoadModules ( 'user3' ); ?></td>
</tr>
</table></td>
<td width="16%"><?php mosLoadModules ( 'right' ); ?></td>
</tr>
<tr>
<td><div align="center">
<table width="97%" border="0">
<tr>
<td><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "000033";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></td>
</tr>
</table>
</div></td>
<td rowspan="4" align="left" valign="middle"><script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "0066FF";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 </td>
</tr>
<tr>
<td align="left" valign="top"><table width="95%" border="0" align="center">
<tr>
<td><?php mosMainBody(); ?></td>
</tr>
</table>
<div align="left"></div></td>
</tr>
<tr>
<td><div align="center"><span class="Stil2"><a href="http://www.zanox-affiliate.de/" class="Stil1">Kostenlos! Holen Sie sich 3 Ausgaben der Zeitschrift "brand eins", dem etwas anderen Wirtschaftsmagazin</a> </span></div></td>
</tr>
<tr>
<td align="left" valign="top"><?php mosLoadModules ( 'user1' ); ?>  </td>
</tr>
<tr>
<td> </td>
<td>
</p>
</td>
</tr>
</table>

<?PHP if(file_exists($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php"))
{
require_once($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php");
}?></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p>  </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>




....sieht jetz scheinbar aus wie Kraut und Rüben hmmmmmmmm


Gruss

Yodaya
 
Probiers mal mit dem Code:
CODE <?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<!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(); } ?>
<?php mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php echo '<link rel="stylesheet" href="templates/Mein Template_02/css/template_css.css" type="text/css">'; ?>
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
<style type="text/css">
<!--
.Stil1 {font-family: Arial, Helvetica, sans-serif}
.Stil2 {font-size: 12px}
-->
</style>
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" valign="top" align="left">
<tr>
<td align="left" valign="top"><table width="100%" height="132" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="7%" height="132" align="left" valign="top" background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Header_neu.png"> </td>
<td width="43%" height="132" align="left" valign="top" background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Header_neu.png"><img src="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Logo.png" border="0" width="399" height="132" /></td>
<td width="50%" height="132" align="left" valign="top" background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Header_neu.png"><p> </p>
<table width="468" border="0" align="center">
<tr>
<td><?php mosLoadModules( 'banner', -1 ); ?></td>
</tr>
</table> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="45"><img src="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Visualblue_09.png" border="0" width="85" height="45"></td>
<td background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Visualblue_11.png"><?php
global $database, $my;

# Vertical Menu V2.1 - by Arthur Konze - www.mamboportal.com modified by Wee Keat - Visualdensity.com using Cyberdine's code
$database->setQuery("SELECT id, name, link, type FROM #__menu WHERE menutype='mainmenu' AND parent='0' AND access<='$gid' AND sublevel='0' AND published='1' AND type<>'separator' ORDER BY ordering");
$rows = $database->loadObjectList();
$num_rows = count($rows);
$tab_width = floor(100 / $num_rows);
foreach($rows as $row) {

$mymenulink = $row->link;
if ($row->type != "url") {
$mymenulink .= "&Itemid=$row->id";
}

echo "<td width='$tab_width%' align='center' background='$mosConfig_live_site/templates/Mein Template_02/images/Visualblue_11.png'><a class='buttonbar' href='$mymenulink'>$row->name</a></td>";
echo "<td width='4'><img src='$mosConfig_live_site/templates/Mein Template_02/images/Visualblue_13.png' border='0' /></td>";
}
?>
</td>
</tr>
<?php

$Itemid = mosgetParam( $_REQUEST, 'Itemid', 0 );
$openid = $Itemid;

if($openid) {

$database->setQuery( "SELECT * FROM #__menu WHERE menutype='mainmenu' AND published=1 AND access <= $my->gid AND parent = $openid ORDER BY ordering, sublevel");

$subs = $database->loadObjectList();
echo $database->getErrorMsg();

if(count($subs) > 0) {

$numsubs = count($subs);
$subtab_width = floor(100 / $numsubs);

?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7%"><img src="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Visualblue_38.png" border="0" width="84" height="23" /></td>
<td background="<?php echo $mosConfig_live_site;?>/templates/Mein Template_02/images/Visualblue_39.png"><?php

foreach($subs as $sub) {
$mysubmenulink = $sub->link;
if ($sub->type != "url") {
$mysubmenulink .= "&Itemid=$openid";
}
echo "<td width='$subtab_width%' align='center' background='$mosConfig_live_site/templates/Mein Template_02/images/Visualblue_39.png'><a href=\"$mysubmenulink\" class=\"buttonbar\">$sub->name</a></td>";
echo "<td width='2'><img src='$mosConfig_live_site/templates/Mein Template_02/images/Visualblue_41.png' border='0' /></td>";

};

?>
</td>
</tr>
</table>
<?php
};
};
?>
</table>
<table width="100%">
<tr>
<td width="3%" rowspan="5" align="left" valign="top"><p> </p>
<p>  </p></td>
<td width="81%"><table width="97%" border="0" align="center">
<tr>
<td><?php mosLoadModules ( 'user3' ); ?></td>
</tr>
</table></td>
<td width="16%"><?php mosLoadModules ( 'right' ); ?></td>
</tr>
<tr>
<td><div align="center">
<table width="97%" border="0">
<tr>
<td><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "000033";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></td>
</tr>
</table>
</div></td>
<td rowspan="4" align="left" valign="middle"><script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "0066FF";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 </td>
</tr>
<tr>
<td align="left" valign="top"><table width="95%" border="0" align="center">
<tr>
<td><?php mosMainBody(); ?></td>
</tr>
</table>
<div align="left"></div></td>
</tr>
<tr>
<td><div align="center"><span class="Stil2"><a href="http://www.zanox-affiliate.de/" class="Stil1">Kostenlos! Holen Sie sich 3 Ausgaben der Zeitschrift "brand eins", dem etwas anderen Wirtschaftsmagazin</a> </span></div></td>
</tr>
<tr>
<td align="left" valign="top"><?php mosLoadModules ( 'user1' ); ?>  </td>
</tr>
<tr>
<td> </td>
<td>
</p>
</td>
</tr>
</table>

<?PHP if(file_exists($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php"))
{
require_once($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php");
}?></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

 
Hey Florian,

danke für Deine Hillfe.
Könntest du mir noch sagen, was du jetzt verändert hast?

Gruss

Yodaya
 
Ich hab folgendes
CODE      <p> </p>
    <p> </p>
    <p> </p>
    <p>       </p>
    <p> </p>
  <p> </p>
  <p> </p></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>

zu

CODE <td>
</tr>
</table>


ersetzt.

Komisch das da der Firefox Probleme hat.

MFG
Florian
 
Hallo,

ich habs geschaftt!

CODE <p> </p>


Das wars oder? Ist überflüssig oder?


Danke!

Gruss

Yodaya
 
Na da haben sich unsere Posts aber überschnitten.....
biggrin.gif


Ja hat mich auch gewundert, dass Firefox Probleme damit hatte, da der Browser doch eigentlich Fehlertoleratner ist oder?

Egal, hauptsache es läuft jetz.


Gruss

Yodaya
 
Zurück
Oben