zurück zur Startseite
  


Zurück XHTMLforum > (X)HTML und CSS > CSS
Seite neu laden Anzeigefehler "margin" in IE7

Antwort
 
LinkBack Themen-Optionen Ansicht
  #1 (permalink)  
Alt 21.11.2007, 22:46
Neuer Benutzer
neuer user
Thread-Ersteller
 
Registriert seit: 20.11.2007
Beiträge: 3
Rezneuk befindet sich auf einem aufstrebenden Ast
Standard Anzeigefehler "margin" in IE7

Hallo zusammen!

Ich bin mich aus Langeweile etwas mit CSS am befassen und hab mir einfach mal ein simples Layout erstellt. Hab am Montag erst angefangen.

Im Firefox wird alles korrekt dargestellt, der IE7 stellt nur eine Seite falsch dar. Obwohl alle Seiten das gleiche CSS-Sheet benutzen.

Ich habe für den Bereich mit Inhalt den Abstand von oben mit 130px angegeben. Bei dieser einen Seite ignoriert IE die Angabe und zeigt den Inhalt direkt am oberen Rand.

CSS und XHTML transitional sind validiert.

Hier mal mein CSS:

Code:
html {background:#E0DFE3;}

body {margin:0; padding:0 10px 0 10px; border:0; height:100%; background:rgb(224,223,227);}
body select, textarea, .input {FONT-SIZE: 12px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; COLOR: #000000; BACKGROUND-COLOR: #E0DFE3}
body a:link, body a:visited, body a:active {color: #000000; text-decoration: underline;}
body a:hover {color: #000000; text-decoration: none;}
body {font-family: tahoma,helvetica; font-size:16px;}

.tablehead a:link, .tablehead a:visited, .tablehead a:active {color: #000000; text-decoration: underline;}
.tablehead a:hover { color: #000000; text-decoration: none; }
.clear {clear:both;}
p:first-letter {font-weight:bold; font-size:30px; color:#000;}

#page {margin:130px 0 50px 180px; display:block; width:500px; border:1px solid #000; background:#fff; padding:10px;}
#page a {text-decoration:underline; color:#000;}
#page a:hover {text-decoration:none; color:#000;}
#page p {font-size:25px; text-decoration:underline; color:#000;}
#page .right {font-size:30px; float:right;}
#page .img {margin-right:5px; margin-bottom:5px; float:right;}

#menu {display:block; top:30px; left:25px; width:150px; position:fixed; border:1px solid #000; padding:10px; text-align:center; font-weight:bold; color:#000; background:url(grid.gif);}
* html #menu {position:absolute;}
#menu a:visited, #menu a {display:block; width:140px; height:20px; margin:0 auto; border-top:1px solid #FFF; border-right:1px solid #000; border-bottom:1px solid #000; border-left:1px solid #FFF; text-align:center; text-decoration:none; line-height:20px; color:#000;}
#menu a:hover {background:#FFF; color:#000;}

#footer {display:block; bottom:30px; left:25px; width:150px; position:fixed; border:1px solid #000; padding:5px 10px; text-align:center; font-weight:bold; color:#000; background:url(grid.gif);}
* html #footer {position:absolute;}
#footer a {text-decoration:none; color:#000;}
#footer {font-family: tahoma,helvetica; font-size:10px;}

#bild {display:block; top:50px; right:20px; position:fixed; }
* html #bild {position:absolute;}
#bild img {border: 0;}

#w3 {display:block; bottom:10px; right:20px; position:fixed; }
* html #w3 {position:absolute;}
#w3 img {border: 0;}

#w3css {display:block; bottom:51px; right:20px; position:fixed; }
* html #w3css {position:absolute;}
#w3css img {border: 0;}

#fixpic {display:block; width:108px; height:145px; position:fixed; bottom:0; left:0;}
* html #fixpic {position:absolute;}
Die Seite ist unter http://mätti.de ( oder ::mätti.de - experimental v0.1:: ) zu erreichen.

Die "falsche" Seite ist das Gästebuch. Ich finde den Fehler einfach nicht, vielleicht habe ich mittlerweile auch schon zu lange in den Code gestarrt.

Kann mir bitte mal jemand einen Tipp geben? Muss ja nicht gleich die Lösung auf einem Silbertablett sein, ein kleiner Hinweis würde mir schon reichen.

Vielen Dank!
Mit Zitat antworten
Sponsored Links
  #2 (permalink)  
Alt 22.11.2007, 00:25
Benutzerbild von Geronimo
Erfahrener Benutzer
XHTMLforum-Kenner
 
Registriert seit: 14.06.2004
Beiträge: 2.641
Geronimo sorgt für eine eindrucksvolle AtmosphäreGeronimo sorgt für eine eindrucksvolle Atmosphäre
Standard

Zitat:
Zitat von Rezneuk Beitrag anzeigen
Die "falsche" Seite ist das Gästebuch. Ich finde den Fehler einfach nicht, vielleicht habe ich mittlerweile auch schon zu lange in den Code gestarrt.
Der Quelltext des Gästebuchs enthält Fehler, das veranlasst den IE höchstwahrscheinlich dazu in den Quirksmodus zu wechseln.
Mit Zitat antworten
Sponsored Links
Antwort

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre 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 aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Anzeigefehler im FF2, im IE7 alles i.O. (floatfehler?) Alexanderrrrrr CSS 4 14.05.2008 20:29
IE7 fixing - expandable menu matsie CSS 6 10.04.2008 15:55
CSS-basiertes Menü fehlerhaft im IE7 otomo CSS 0 16.10.2007 16:56
Pagezoom und IE7 paracelsus CSS 24 17.08.2007 11:36
Problem mit Dastellung in IE7 und FF ConiKost CSS 1 05.07.2006 12:59


Alle Zeitangaben in WEZ +2. Es ist jetzt 11:42 Uhr.