mediengestalter.info
FAQ :: Mitgliederliste :: MGi Team

Willkommen auf dem Portal für Mediengestalter

Aktuelles Datum und Uhrzeit: Do 25.04.2024 23:58 Benutzername: Passwort: Auto-Login

Thema: Firefox und NS7 stellen Tabelle zu hoch dar? vom 03.08.2004


Neues Thema eröffnen   Neue Antwort erstellen MGi Foren-Übersicht -> Allgemeines - Nonprint -> Firefox und NS7 stellen Tabelle zu hoch dar?
Autor Nachricht
HotSpot
Threadersteller

Dabei seit: 10.01.2004
Ort: -
Alter: -
Geschlecht: Männlich
Verfasst Di 03.08.2004 12:24
Titel

Firefox und NS7 stellen Tabelle zu hoch dar?

Antworten mit Zitat Zum Seitenanfang

Ich hab nen Code und der muss auch von der Struktur so sein.

Code:

<table width="960" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="1" bgcolor="black"><img src="l.gif" width="1" height="1"></td>
  <td width="700" bgcolor="black"><img src="l.gif" width="700" height="1"></td>
  <td width="258" bgcolor="black"><img src="l.gif" width="258" height="1"></td>
  <td width="1" bgcolor="black"><img src="l.gif" width="1" height="1"></td>
 </tr>
</table>


Warum gibts in NS7 und Mozilla/Firefox hier keine 1px hohe Linie?
  View user's profile Private Nachricht senden
burnout

Dabei seit: 31.01.2002
Ort: Osnabrücker Land
Alter: 44
Geschlecht: Männlich
Verfasst Di 03.08.2004 12:32
Titel

Antworten mit Zitat Zum Seitenanfang

mein firefox tut's Au weia!
  View user's profile Private Nachricht senden Website dieses Benutzers besuchen
Anzeige
Anzeige
HotSpot
Threadersteller

Dabei seit: 10.01.2004
Ort: -
Alter: -
Geschlecht: Männlich
Verfasst Di 03.08.2004 12:37
Titel

Antworten mit Zitat Zum Seitenanfang

Kannst du mal folgenden Code testen? die Datei "l.gif" ist ein transparentes 1x1 Pixel grosses Gif. Kann nichts hochladen von hier deshalb muss ich den Code posten.

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/Strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>titel<title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>

<table width="960" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="1" class="col1"><img src="/l.gif" width="1" height="1"></td>
  <td width="700" class="col1"><img src="/l.gif" width="700" height="1"></td>
  <td width="258" class="col1"><img src="/l.gif" width="258" height="1"></td>
  <td width="1" class="col1"><img src="/l.gif" width="1" height="1"></td>
 </tr>
 <tr>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
  <td width="700"><img src="logo.gif"></td>
  <td width="258" class="text1">Suchen:</td>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
 <tr>
  <td colspan="4" width="960" class="col1"><img src="/l.gif" width="1" height="1"></td>
 </tr>
</table>

<table width="960" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
  <td width="958" align="left" class="col2">Sport</td>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
 <tr>
  <td colspan="3" width="960" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
</table>

<table width="960" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
  <td width="700" class="col3" align="left"><img src="l.gif" width="1" height="1"></td>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
  <td width="257" class="col3" align="left">Sport</td>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
 <tr>
  <td colspan="5" width="960" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
</table>

<table width="960" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
  <td width="479" class="col4" align="left">Wirtschaft</td>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
  <td width="478" class="col5" align="left">Kultur</td>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
 <tr>
  <td colspan="5" width="960" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
 <tr>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
  <td width="479" class="col3" align="left">Wirtschaft</td>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
  <td width="478" class="col3" align="left">Kultur</td>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
 <tr>
  <td colspan="5" width="960" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
</table>

<table width="960" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
  <td width="958" class="col3" align="center">Keyword1 | Keyword2</td>
  <td width="1" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
 <tr>
  <td colspan="3" width="960" class="col1"><img src="l.gif" width="1" height="1"></td>
 </tr>
</table>

</body>
</html>


Die CSS:
Code:

td.col1 {
 background: #000000;
}

td.col2 {
 background: #0000CC;
 font-family: verdana,arial;
 color: #FFFFFF;
 font-size: small;
 font-weight: bold;
 padding: 3px;
}

td.col3 {
 background: #FFFFFF;
 font-family: verdana,arial;
 font-size: small;
 padding: 3px;
}

td.col4 {
 background: #FFCC00;
 font-family: verdana,arial;
 font-size: small;
 font-weight: bold;
 padding: 3px;
}

td.col5 {
 background: #CCCC99;
 font-family: verdana,arial;
 font-size: small;
 font-weight: bold;
 padding: 3px;
}

td.col6 {
 background: #FFCC00;
 font-family: verdana,arial;
 font-size: small;
 padding: 3px;
 text-decoration: underline;
}

td.col7 {
 background: #CCCC99;
 font-family: verdana,arial;
 font-size: small;
 padding: 3px;
 text-decoration: underline;
}

td.text1 {
 font-family: verdana,arial;
 font-size: small;
}

p.bold {
 font-weight: bold;
 text-decoration:underline;
}


Zuletzt bearbeitet von HotSpot am Di 03.08.2004 12:38, insgesamt 1-mal bearbeitet
  View user's profile Private Nachricht senden
burnout

Dabei seit: 31.01.2002
Ort: Osnabrücker Land
Alter: 44
Geschlecht: Männlich
Verfasst Di 03.08.2004 12:55
Titel

Antworten mit Zitat Zum Seitenanfang

japp, so sind die striche nicht da...

aber ich glaub du hast xhtml 1.0 strict nicht ganz verstanden oder?
da solltest du eigentlich keine tabellen mehr zum layouten benutzen.
wenn du html 4.01 als doctype nimmst, klappts.


Zuletzt bearbeitet von burnout am Di 03.08.2004 12:58, insgesamt 1-mal bearbeitet
  View user's profile Private Nachricht senden Website dieses Benutzers besuchen
HotSpot
Threadersteller

Dabei seit: 10.01.2004
Ort: -
Alter: -
Geschlecht: Männlich
Verfasst Di 03.08.2004 13:32
Titel

Antworten mit Zitat Zum Seitenanfang

Danke burnout, ich bin halt noch nicht so fit in den Sachen, das hat das Problem behoben.

Habe nur deshalb mit Tabellen gelayoutet weil es im NS4 nicht anders geht. Ausserdem war das meine Aufgabe von meinem Ausbilder. *zwinker*
  View user's profile Private Nachricht senden
beeviZ

Dabei seit: 30.09.2002
Ort: -
Alter: -
Geschlecht: Männlich
Verfasst Di 03.08.2004 13:38
Titel

Antworten mit Zitat Zum Seitenanfang

dann musst du aber html4.01 im doctype angeben, nicht xhtml1 strict *zwinker*
  View user's profile Private Nachricht senden
HotSpot
Threadersteller

Dabei seit: 10.01.2004
Ort: -
Alter: -
Geschlecht: Männlich
Verfasst Di 03.08.2004 14:48
Titel

Antworten mit Zitat Zum Seitenanfang

@ beeviZ:
Hat Burnout doch schon gesagt, das sind so Dinge die übersieht man leicht wenn man im Code rumsucht.
  View user's profile Private Nachricht senden
 
Ähnliche Themen Input Feld auf 100% stellen - Wie klappts im Firefox?
Tabelle in IE anders als im FIREFOX
Tabelle Problem / ie und firefox
Problem mit Tabelle im Firefox
HTML Tabelle - verschiebt sich im Firefox
Firefox macht padding in Tabelle trotz cellpadding="0&q
Neues Thema eröffnen   Neue Antwort erstellen
MGi Foren-Übersicht -> Allgemeines - Nonprint


Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst an Umfragen in diesem Forum nicht mitmachen.