mysqldumper
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 21.08.2003, 18:05   #1
TP-Senior
 
Registriert seit: May 2003
General Hammond macht alles soweit korrekt
Question

Netscape Floating Problem


Guten Tag,

NN 7 stellt diese Seite nicht richtig dar:
Klick mich

Wie könnte ich das Problem lösen?

Sourcecode

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Vier Spalten</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

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

<body>
<div id="Center">
<div id="Header"></div>
<div id="Indexpic01"><img src="bilder/img_01.jpg"></div>
<div id="Indexpic02"><img src="bilder/img_02.jpg"></div>
<div id="Indexpic02"><img src="bilder/img_02.jpg"></div>
<div id="Indexcontent">
<h1>Überschrift</h1>
Dies ist eine Mustertext
</div>
<div id="Indexnavi"></div>
</div>
</body>
</html>

-----------------------------------------------------------------------------

stylesheet

body {
background-color: White;
color: Black;
font-family: Arial, Verdana, Geneva, Helvetica, sans-serif;
margin: 10px 0 0 0;
text-align: center;
}

H1 {
font-size: 130%;
color: #777777;
font-weight: bold;
background-color: transparent;
margin: 0;
}

#Center {
position: relative;
width: 800px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
text-align: left;
}

#Header {
position: relative;
background-color: Aqua;
width: 800px;
height: 100px;
}

#Indexpic01 {
position: relative;
width: 320px;
height: 300px;
margin-top: 10px;
float: left;
}

#Indexpic02 {
position: relative;
width: 160px;
height: 300px;
margin-top: 10px;
margin-left: 5px;
float: left;
}


#Indexcontent {
position: relative;
width: 145px;
height: 300px;
margin-top: 10px;
margin-left: 5px;
float: right;
background-color: #999999;
padding: 3px;
color: #FFFFFF;
font-size: 85%;
}

#Indexnavi {
position: relative;
width: 800px;
height: 40px;
margin-top: 10px;
margin-bottom: 30px;
background-color: Lime;
font-size: 90%;
float: left;
/*background-image: url(../grafik/objekte/footer.jpg);
background-repeat: repeat-x;*/
}
General Hammond ist offline   Mit Zitat antworten


Alt 21.08.2003, 18:15   #2
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
ich bin grad dabei, mir das anzuschaun!

was mir mal auffällt:

- warum html 4?
- indexpic2: container 160px breit, pic3 cont. 145px breit, obwohl beide bilder je 160 breit sind?!?!?!?!
prefix ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:22   #3
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
alles blödsinn, jetzt seh ich es erst!!!!

du wendest ja die id #Indexpic02 zweimal an!!!!!!!!!

mach eine klasse draus
prefix ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:22   #4
TP-Senior
 
Registriert seit: May 2003
General Hammond macht alles soweit korrekt
Hallöchen Prefix,

Na HTML 4 weil ich nicht weiß welches am geeignetsten ist ;-)

und die 145er breite des DIV's bezieht sich auf den ganz rechten...

für die 2 gleichen Bilder habe ich auch 2 mal die gleich DIV-ID verwendet, ist doch sinn und zweck vom Layer-Style auslagern, oder?
General Hammond ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:24   #5
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
aber niemals eine ID mehrmals anwenden!!!

ids sind einzigartig
prefix ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:26   #6
TP-Senior
 
Registriert seit: May 2003
General Hammond macht alles soweit korrekt
okay, das gleiche Problem besteht aber wenn ich eine 3. ID implementiere...
General Hammond ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:27   #7
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
xhtml-variante mit klassen

nochmal *hehe*: du darfst eine id pro dokument nur einmal anwenden!!!!!
prefix ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:31   #8
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
ausserdem, jetzt rechne ich mal auf die breite von 800px auf:

- .Indexpic01: 320px
- .Indexpic02: 160px x 2 = 320px

zwischensumme: 640px

- #Indexcontent: 145px

zwischensumme: 785

abstände dazu:

3x5px = 15px

gesamt: 800px

bin jetzt noch nicht draufgekommen, warum nn7 den re. container unterhalb positioniert, wenn dieser 145px breit ist - meine lösung ist jetzt mal mit 139px, fehlen also 6px!

mal suchen...
prefix ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:33   #9
TP-Senior
 
Registriert seit: May 2003
General Hammond macht alles soweit korrekt
Okay, sag mir mal, wann arbeitet man mit ID's und wann mit Klassen?

Und was bedeutet dies im Code:
<!-- ZoneLabs Privacy Insertion -->
<script language='javascript' src='http://127.0.0.1:3004/js.cgi?pcaw&r=15890'></script>

und das:

<!-- ZoneLabs Popup Blocking Insertion -->
<script language='javascript'>postamble();</script>
General Hammond ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:35   #10
TP-Senior
 
Registriert seit: May 2003
General Hammond macht alles soweit korrekt
könnte man den rechten container ohne breitenangabe lassen?
General Hammond ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:36   #11
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
mom!

die 6px hab ich auch schon! die waren als padding bei #Indexcontent definiert (also padding: 3px).

hmm, ich überleg noch, warum grad der nn das an sich falsch interpretiert (so wie es jetzt mal aussieht), also auf die schnelle würd ich folgende lösung vorschlagen:

Code:
#Indexcontent {
/*position: relative;*/
width: 145px;
height: 300px;
margin-top: 10px;
margin-left: 5px;
float: right;
background-color: #999999;
padding: 3px;
color: #FFFFFF;
font-size: 85%;
}

html>body #Indexcontent {
	width: 139px;
}
child-selektor anwenden für moz-browser
prefix ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:37   #12
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
@ohne breite: versuch es

try and error!
prefix ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:38   #13
TP-Senior
 
Registriert seit: May 2003
General Hammond macht alles soweit korrekt
ach jetzt wo du es sagst/schreibst, das Padding macht genau 6px aus wenn man das auskommentiert gehts, aber es schaut blöde aus, wenn der Text an der Kante klebt
General Hammond ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:39   #14
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
deswegen der child-selektor oben (ein paar einträge vor deinem)
prefix ist offline   Mit Zitat antworten
Alt 21.08.2003, 18:46   #15
TP-Senior
 
Registriert seit: May 2003
General Hammond macht alles soweit korrekt
okay ich hab das Probiert, nur werden jetzt zu dem Rechten Layer 3px in seinen ausmaßen dazuaddiert, d.h. er wird länger, wieso?

Es müß doch möglich sein wenigstens ein Padding - Left zu setzen *grübel*
General Hammond ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > HTML Puristen
Netscape Floating Problem Netscape Floating Problem
« Textarea: Wie einzugebende Zeichen begrenzen??? | "mailto" »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 13:39 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67