Antworten auf deine Fragen:
Neues Thema erstellen

Antworten zum Thema „Kleiner Rand bei Inet Explorer“

d3221

Aktives Mitglied

Hey.. ich hab folgendes Problem (ich glaub es liegt an der Tabelle deswegen postichs hier in HTML). Immer zwischen meiner Navigation und meinem Contentbereich ist beim Internet Explorer ein kleiner (ca. 2-4px) Rand... bei Firefox aber nicht.... ._. muss man bei IE auf eine bestimmte formatierung der tabelle achten? wenn ja welche? wiel bei firefox hab ich mit dem design/code/temp (wie auch immer =D) keine problem... da sieht alles so aus wies aussehn soll...

PHP:
//index.php

<?php

$page = $_GET['site'];

include'navigation.inc';


if (empty($page)) {

	echo "<tr>
		<td colspan='6'>
              <img src='nc/start_screen.gif' width='800' height='350' alt=''>
       </td>
	      </tr>";
	}


elseif ($page == "profil") {

	echo "<tr>
		<td colspan='6'>
			<img src='nc/profil_screen.gif' width='800' height='350' alt=''>
		</td>
	</tr>";
	}


elseif ($page == "refs") {

	echo "<tr>
		<td colspan='6'>
			<img src='nc/ref_screen.gif' width='800' height='350' alt=''>
		</td>
	</tr>";
	}
 
S

serverhombre

Guest

AW: Kleiner Rand bei Inet Explorer

Hallo, also weitere Info's fehlen. :rolleyes:
Wie ist die Navigation aufgebaut, Code??.
Wie wird formatiert Tabellen gibts noch irgendwo css?.
Ist die Seite online ? wenn ja bitte link posten bzw. Screenshot damit man den Fehler sehen kann !:hmpf:
 

Herr_D

offline

AW: Kleiner Rand bei Inet Explorer

Nimm mal die Leerzeichen raus...


nicht

Code:
<td>
inhalt
</td>
sondern

Code:
<td>inhalt</td>



so'n schicker eingerückter Code mag ja fein anzusehen sein, bringt aber rein gar nix außer Dateivergrößerung und ungewollte Leerzeichen, die (vor allem im IE) Anzeigefehler machen (können).
 

sokie

Mod | Web

AW: Kleiner Rand bei Inet Explorer

es kann auch nicht schaden im einleitenden tag der Tabelle das cellpadding und cellspacing auf 0 zu setzen:
Code:
<table cellspacing="0" cellpadding="0" .... >
diese Werte sind sonst auch eher der interpretation der Browser unterworfen.
 

d3221

Aktives Mitglied

AW: Kleiner Rand bei Inet Explorer

Also die kompletten Dateien:

index.php
PHP:
<?php

$page = $_GET['site'];

include'navigation.inc';


if (empty($page)) {

	echo "<tr>
		<td colspan='6'><img src='nc/start_screen.gif' width='800' height='350' alt=''></td>
	      </tr>";
	}


elseif ($page == "profil") {

	echo "<tr>
		<td colspan='6'><img src='nc/profil_screen.gif' width='800' height='350' alt=''></td>
	</tr>";
	}


elseif ($page == "refs") {

	echo "<tr>
		<td colspan='6'><img src='nc/ref_screen.gif' width='800' height='350' alt=''></td>
	</tr>";
	}


elseif ($page == "contact") {

	echo "<tr>
		<td colspan='6'><img src='nc/contact_screen.gif' width='800' height='350' alt=''>

		<div style='z-layer: 1; position: absolute; left: 24%; top: 53%;'>";

	$font = "<font face='sans-serif'><font color='#FFFFFF'><font size='2'>";
	$font2 = "</font></font></font>";


		if (!isset($_REQUEST['submitcontact'])) {		
		
		echo "<form method='post' action='index.php?site=contact'>
			
			<table cellpadding='0' cellspacing='5' style= 'text-align:left;'>
			 <tr>
			  <td>$font Firmenname:</td><td><input type='text' name='company' value='' style=\"background-image:url('nc/input.gif')\";></td>
			 </tr>
			 <tr>
			  <td>$font Ihr Name:</td><td> <input type='text' name='name' value='' style=\"background-image:url('nc/input.gif')\"></td>
			 </tr>
			 <tr>
			  <td>$font Homepage:</td><td> <input type='text' name='web' value='' style=\"background-image:url('nc/input.gif')\"></td>
			 </tr>
			 <tr>
			  <td>$font Nachricht:</td><td> <textarea  rows='3' cols='30' name='text' wrap='hard'  style=\"background-image:url('nc/textarea.gif')\"></textarea></td>
			 </tr>
			 <tr>
			  <td><br><input type='image' src='images/send.png' onfocus='blur()' name='submitcontact' value='Abschicken'></td>
			 </tr>
			</table>";
		}

		else {

		  $company = $_POST['company'];
		  $name = $_POST['name'];
		  $web = $_POST['web'];
		  $text = $_POST['text'];

			if (empty($company) OR empty($name) OR empty($web) OR empty($text)) {
				echo "$font <br><b>Angaben unvollständig.</b> <br>Bitte füllen Sie alle Angaben aus.<br><br> 
				      <a href='index.php?site=contact' target='_self'>Zurück</a>";
			}

		   else {

		     echo "$font Angaben vollständig (eMail an mich schicken!)";

		   }
		

		}


	echo "	</div>
		</td>

	</tr>";
	}


include'foot.inc';

?>


navigation.php:
PHP:
<html>
<head>
<title>Blubb</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

</head>
<body bgcolor='#0A0A0A' leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<center>
<br><br><br><br>


<table id='Tabelle_01' width='800' height='600' border='0' cellpadding='0' cellspacing='0'>
	<tr>
		<td colspan='6'>

	<?php
	  include'header.php';
	?>
	
	</td>
	</tr>
	<tr>
		<td>
			<img src='nc/index_02.gif' width='25' height='52' alt='' border='0'>
		</td>

<?php

$status == $_GET['site'];

if (empty($page)) {

echo "
		<td>
			<img src='nc/active/start.gif' width='100' height='52' alt='' border='0'>
		</td>
		<td>"; 

include'mo/profil.inc'; 

echo "		</td>

		<td>"; 

include'mo/ref.inc'; 

echo "		</td>

		<td>";

include'mo/kontakt.inc'; 

echo "		</td>

		<td>
			<img src='nc/index_07.gif' width='325' height='52' alt='' border='0'>
		</td>
	</tr>";

}



elseif ($page == "profil") {


echo "
		<td>";

include'mo/start.inc';

echo "		</td>
		<td>

			<img src='nc/active/profil.gif' width='100' height='52' alt='' border='0'></a>
		</td>

		<td>";

include'mo/ref.inc';

echo "		</td>

		<td>";

include'mo/kontakt.inc';


echo "		</td>

		<td>
			<img src='nc/index_07.gif' width='325' height='52' alt='' border='0'>
		</td>
	</tr>";

}



elseif ($page == "refs") {


echo "		<td>";

include'mo/start.inc';

echo "		</td>
		<td>";

include'mo/profil.inc';

echo "		</td>
		<td>
			<img src='nc/active/ref.gif' width='150' height='52' alt='' border='0'>
		</td>
		<td>";

include'mo/kontakt.inc';

echo "		</td>

		<td>
			<img src='nc/index_07.gif' width='325' height='52' alt='' border='0'>
		</td> 



	</tr>";

}


elseif ($page == "contact") {


echo "		<td>";


include'mo/start.inc';
		
echo "		</td>
		<td>";

include'mo/profil.inc';

echo "		</td>
		<td>";

include'mo/ref.inc';

echo "		</td>
		<td>

			<img src='nc/active/kontakt.gif' width='100' height='52' alt='' border='0'>
		</td>

		<td>
			<img src='nc/index_07.gif' width='325' height='52' alt='' border='0'>
		</td>
	</tr>";

}


?>

Und neues Problem: Alle Mouseovers funkionieren aber nur nich der von "Kontakt" >_< also der letze....


edit // Kann geschlossen werden! Habs neu gecoded alles jetz funktioniert alles
 
Zuletzt bearbeitet:
Bilder bitte hier hochladen und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Antworten auf deine Fragen:
Neues Thema erstellen

Willkommen auf PSD-Tutorials.de

In unseren Foren vernetzt du dich mit anderen Personen, um dich rund um die Themen Fotografie, Grafik, Gestaltung, Bildbearbeitung und 3D auszutauschen. Außerdem schalten wir für dich regelmäßig kostenlose Inhalte frei. Liebe Grüße senden dir die PSD-Gründer Stefan und Matthias Petri aus Waren an der Müritz. Hier erfährst du mehr über uns.

Stefan und Matthias Petri von PSD-Tutorials.de

Nächster neuer Gratisinhalt

03
Stunden
:
:
25
Minuten
:
:
19
Sekunden

Neueste Themen & Antworten

Flatrate für Tutorials, Assets, Vorlagen

Zurzeit aktive Besucher

Statistik des Forums

Themen
175.189
Beiträge
2.582.077
Mitglieder
67.259
Neuestes Mitglied
SaschMasch1312
Oben