Autor |
Nachricht |
HotSpot
Threadersteller
Dabei seit: 10.01.2004
Ort: -
Alter: -
Geschlecht:
|
Verfasst Di 03.08.2004 11:24
Titel Firefox und NS7 stellen Tabelle zu hoch dar? |
 |
|
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?
|
|
|
|
 |
burnout
Dabei seit: 31.01.2002
Ort: Osnabrücker Land
Alter: 43
Geschlecht:
|
Verfasst Di 03.08.2004 11:32
Titel
|
 |
|
mein firefox tut's
|
|
|
|
 |
Anzeige
|
|
 |
HotSpot
Threadersteller
Dabei seit: 10.01.2004
Ort: -
Alter: -
Geschlecht:
|
Verfasst Di 03.08.2004 11:37
Titel
|
 |
|
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 11:38, insgesamt 1-mal bearbeitet
|
|
|
|
 |
burnout
Dabei seit: 31.01.2002
Ort: Osnabrücker Land
Alter: 43
Geschlecht:
|
Verfasst Di 03.08.2004 11:55
Titel
|
 |
|
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 11:58, insgesamt 1-mal bearbeitet
|
|
|
|
 |
HotSpot
Threadersteller
Dabei seit: 10.01.2004
Ort: -
Alter: -
Geschlecht:
|
Verfasst Di 03.08.2004 12:32
Titel
|
 |
|
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.
|
|
|
|
 |
beeviZ
Dabei seit: 30.09.2002
Ort: -
Alter: -
Geschlecht:
|
Verfasst Di 03.08.2004 12:38
Titel
|
 |
|
dann musst du aber html4.01 im doctype angeben, nicht xhtml1 strict
|
|
|
|
 |
HotSpot
Threadersteller
Dabei seit: 10.01.2004
Ort: -
Alter: -
Geschlecht:
|
Verfasst Di 03.08.2004 13:48
Titel
|
 |
|
@ beeviZ:
Hat Burnout doch schon gesagt, das sind so Dinge die übersieht man leicht wenn man im Code rumsucht.
|
|
|
|
 |
|
|
 |
Ähnliche Themen |
Input Feld auf 100% stellen - Wie klappts im Firefox?
Tabelle Problem / ie und firefox
Problem mit Tabelle im Firefox
Tabelle in IE anders als im FIREFOX
HTML Tabelle - verschiebt sich im Firefox
Firefox macht padding in Tabelle trotz cellpadding="0&q
|
 |