WinFuture-Forum.de: [css&html] Darstellungsunterscheid Ie Und Firefox - WinFuture-Forum.de

Zum Inhalt wechseln

Nachrichten zum Thema: Entwicklung
Seite 1 von 1

[css&html] Darstellungsunterscheid Ie Und Firefox


#1 _MarvinM_

  • Gruppe: Gäste

geschrieben 26. Oktober 2006 - 15:20

Hallo zusammen!

Folgendes Problem (ich weis: ein altbekanntes...):

Meine Homepage (http://marvin.horrem-networkz.de) wird im Firefox so dargestellt wie sie soll, auch die Vorlage nach der ich die Seite gemacht habe (http://www.oswd.org/.../2993/Revival2/) wird ordentlich angezeigt.
Das geht auch alles, solange man nicht den Internet Explorer benutzt...

Dort wird die Vorlage (fast) richtig angezeigt, aber meine Homepage nun doch "etwas" merkwürdig in der Navigation.

Opera zeigt das selbe an wie Firefox.

Nun meine Frage: Was (und wo) muss ich ändern, damit auch der Internet Explorer das richtig anzeigt?

Ich hab die HTML-Codes der Navigation (EDIT: also in Vorlage und Homepage) mal verglichen, konnte aber keine Unterschiede feststellen...
Der HTML Code is xHTML Valid, die CSS Datei auch.

Danke schonmal für eure Hilfe!

/* Revival.1 */

* {
  padding : 0;
  margin : 0;
}

html, body {
  height : 100%;
}

body {
  text-align : left;
  margin : 0 auto;
  padding : 0;
  color : #000;
  font-style : normal;
  font-variant : normal;
  font-weight : normal;
  font-size : 10px;
  font-family : Verdana, Tahoma, Arial, sans-serif;
  background : #fff;
  background : #f0f6df;
}

#page {
  width : 810px;
  margin : 0 auto;
  height : 100%;
}

#header {
  width : 810px;
  height : 120px;
  margin : 0 auto;
  background : url('images/header.gif') no-repeat;
  padding : 0;
}

#content {
  background : url('images/content_bg.gif') repeat-y;
  height : 100%;
  padding : 5px 20px 0;
}

/**************************** menu ****************************/

#nav_top {
  background : url('images/nav_top.gif') no-repeat;
  width : 225px;
  height : 28px;
}

#nav_btm {
  background : url('images/nav_btm.gif') no-repeat;
  width : 225px;
  height : 28px;
}

#menu {
  float : left;
  width : 225px;
  color : #000;
  background : url('images/nav_mid.gif') repeat-y;
}

#menu ul {
  list-style : none;
  width : 218px;
  font-size : 12px;
  padding : 0 0 0 3px;
}

#menu li {
  list-style-type : none;
  background : url('images/bullet.gif') no-repeat 12px 6px;
  margin-bottom : 4px;
  border-bottom : 1px solid #c8e5c7;
  padding : 0;
}

#menu li:hover {
  background : #c8e5c7;
  margin-bottom : 4px;
}

#menu a {
  display : block;
  padding : 0 0 0 20px;
  color : #fff;
  text-decoration : none;
}

#menu a:hover {
  display : block;
  padding : 0 0 0 20px;
  color : #ffffff;
  text-decoration : none;
}

#info {
  float : right;
  background : url('images/content_mid.gif') repeat-y;
  width : 533px;
}

.post_top {
  background : url('images/content_top.gif') no-repeat;
  width : 533px;
  o height : 31px;
}

.post_btm {
  background : url('images/content_btm.gif') no-repeat;
  width : 533px;
  height : 31px;
}

.post {
  padding : 0 0 15px 25px;
}

img {
  border : 1px solid #fff;
  padding : 5px;
  margin : 3px;
}

a {
  color : #fff;
  text-decoration : none;
}

a:hover {
  color : #000;
  text-decoration : none;
}

h1 {
  color : #fff;
  font-weight : normal;
  font-size : 24px;
  padding : 40px 0 10px 40px;
}

h2 a {
  position : absolute;
  top : 32px;
  color : #666;
  font-size : 16px;
  margin : 0 0 0 575px;
  text-decoration : none;
}

h2 a:hover {
  o color : #999;
}

h3 {
  color : #fff;
  font-size : 12px;
  font-weight : bold;
  padding : 5px 0 5px 10px;
}

h4 {
  color : #fff;
  font-size : 20px;
  font-weight : normal;
}

h5 {
  color : #8d8d8d;
  font-size : 10px;
  font-weight : normal;
  padding : 5px;
}

h3 img {
  float : left;
}

/**************************** lists ****************************/

ul {
  list-style : none;
  padding : 0 0 0 3px;
}

li {
  list-style-type : none;
  background : url('images/bullet.gif') no-repeat 12px 6px;
  padding : 0 0 0 20px;
}

#menu a {
  display : block;
  padding : 0 0 0 20px;
  color : #fff;
  text-decoration : none;
}

#menu a:hover {
  display : block;
  padding : 0 0 0 20px;
  color : #333;
  text-decoration : none;
}
      
/**************************** footer ****************************/
      
      
#footer {
  text-align : center;
  padding : 40px;
  background : url('images/bottom.gif') no-repeat;
  height : 42px;
}

#footer a {
  o color : #000;
}

#footer a:hover {
  o color : #fff;
}

0

Anzeige



#2 Mitglied ist offline   Justus 

  • Gruppe: aktive Mitglieder
  • Beiträge: 3.055
  • Beigetreten: 12. März 02
  • Reputation: 0
  • Geschlecht:unbekannt

geschrieben 28. Oktober 2006 - 02:58

was passiert wenn du #menu li und/oder #menu li:hover display:block; gibst?


was anderes: gib mal dem

body{
text-align:center;
}

und

page {
text-align:left;
}

dann sollte die homepage auch im IE zentriert sein..

dein content bereich sprint bei mir raus, wenn man weitere leisten im browser an hat..
0

#3 _MarvinM_

  • Gruppe: Gäste

geschrieben 28. Oktober 2006 - 17:04

Danke für deine Antwort!

Das Zentrieren funktioniert auf diese Weise! Warum der IE die Seite falsch angezeigt hat weis ich nicht, aber es lies sich dadurch beheben, dass ich die relativen Bezüge in absolute umgewandelt habe.

Jetzt bleiben für mich noch zwei kleinere Sachen, wenn ihr da noch was wisst wäre das genial :-)

- Wie bringe ich dem Browser bei, dass er den weißen Container an die Textgröße anpassen soll (bei Firefox tut sich gar nix, bei Opera auch net und beim IE ist der Container viel zu lang)

- Wie sage ich dem IE, dass er den "ganzen" Link anklickbar machen soll, also, dass man nicht direkt auf dem Text klicken muss, sondern auch etwas daneben klicken kann (wie man ja in Firefox kann)


Mfg Marvin

PS: Was meinst du mit "andere Leisten im Browser"?
0

#4 Mitglied ist offline   NightTiger 

  • Gruppe: aktive Mitglieder
  • Beiträge: 693
  • Beigetreten: 19. März 06
  • Reputation: 0
  • Wohnort:Bern
  • Interessen:Webdesign -> (X)HTML, CSS, ein bisschen PHP und ein bisschen JavaScript ;))

geschrieben 28. Oktober 2006 - 17:18

Beitrag anzeigenZitat (MarvinM: 28.10.2006, 18:04)

- Wie bringe ich dem Browser bei, dass er den weißen Container an die Textgröße anpassen soll (bei Firefox tut sich gar nix, bei Opera auch net und beim IE ist der Container viel zu lang)


versuch mal mit

width: auto;
height: auto;


Beitrag anzeigenZitat (MarvinM: 28.10.2006, 18:04)

- Wie sage ich dem IE, dass er den "ganzen" Link anklickbar machen soll, also, dass man nicht direkt auf dem Text klicken muss, sondern auch etwas daneben klicken kann (wie man ja in Firefox kann)
Mfg Marvin


das geht soweit ich weiss nicht, da müsstest du ja im IE selbst code ändern..
0

#5 Mitglied ist offline   Justus 

  • Gruppe: aktive Mitglieder
  • Beiträge: 3.055
  • Beigetreten: 12. März 02
  • Reputation: 0
  • Geschlecht:unbekannt

geschrieben 28. Oktober 2006 - 17:43

doch geht, aber ich habe gerade keine zeit, versuchs später rauszufinden..

versuch kurz:
einen div bereich für einen punkt zu machen den dan mit dem a-tag zu umschließen
0

#6 _MarvinM_

  • Gruppe: Gäste

geschrieben 28. Oktober 2006 - 19:44

Also wenn ich heigth auf auto setzte, wird die Seite im IE richtig angezeigt, aber in Firefox nicht (hier schrumpft der Container auf minimalgröße).

Das mit den Links in div Tags probier ich jetzt mal aus.


Mfg Marvin
0

#7 Mitglied ist offline   Justus 

  • Gruppe: aktive Mitglieder
  • Beiträge: 3.055
  • Beigetreten: 12. März 02
  • Reputation: 0
  • Geschlecht:unbekannt

geschrieben 28. Oktober 2006 - 21:29

setz mal einen neuen wert:

min-height:auto;
0

#8 _MarvinM_

  • Gruppe: Gäste

geschrieben 28. Oktober 2006 - 22:05

ich hab jetzt mal min-height : auto; eingesetzt und ausprobiert und auch mal mit
min-height : 100%; herumprobiert, leider ohne Erfolg :-(

Hier nochmal das Style-Sheet wie es im Moment ist:

/* Revival.1 */

* {
  padding : 0;
  margin : 0;
}

html, body {
  height : 100%;
}

body {
  text-align : center;
  margin : 0 auto;
  padding : 0;
  color : #000;
  font-style : normal;
  font-variant : normal;
  font-weight : normal;
  font-size : 10px;
  font-family : Verdana, Tahoma, Arial, sans-serif;
  background : #fff;
  background : #f0f6df;
}

#page {
  width : 810px;
  margin : 0 auto;
  height : auto;
  text-align : left;
}

#header {
  width : 810px;
  height : 120px;
  margin : 0 auto;
  background : url('http://marvin.horrem-networkz.de/images/header.gif') no-repeat;
  padding : 0;
}

#content {
  background : url('http://marvin.horrem-networkz.de/images/content_bg.gif') repeat-y;
  height : 100%;
  padding : 5px 20px 0;
}

/**************************** menu ****************************/

#nav_top {
  background : url('http://marvin.horrem-networkz.de/images/nav_top.gif') no-repeat;
  width : 225px;
  height : 28px;
}

#nav_btm {
  background : url('http://marvin.horrem-networkz.de/images/nav_btm.gif') no-repeat;
  width : 225px;
  height : 28px;
}

#menu {
  float : left;
  width : 225px;
  color : #000;
  background : url('http://marvin.horrem-networkz.de/images/nav_mid.gif') repeat-y;
}

#menu ul {
  list-style : none;
  width : 218px;
  font-size : 12px;
  padding : 0 0 0 3px;
}

#menu li {
  list-style-type : none;
  background : url('http://marvin.horrem-networkz.de/images/bullet.gif') no-repeat 12px 6px;
  margin-bottom : 4px;
  border-bottom : 1px solid #c8e5c7;
  padding : 0;
}

#menu li:hover {
  background : #c8e5c7;
  margin-bottom : 4px;
}

#menu a {
  display : block;
  padding : 0 0 0 20px;
  color : #fff;
  text-decoration : none;
}

#menu a:hover {
  display : block;
  padding : 0 0 0 20px;
  background: #c8e5c7;
  text-decoration : none;
}

#info {
  float : right;
  background : url('http://marvin.horrem-networkz.de/images/content_mid.gif') repeat-y;
  width : 533px;
}

.post_top {
  background : url('http://marvin.horrem-networkz.de/images/content_top.gif') no-repeat;
  width : 533px;
  height : 31px;
}

.post_btm {
  background : url('http://marvin.horrem-networkz.de/images/content_btm.gif') no-repeat;
  width : 533px;
  height : 31px;
}

.post {
  padding : 0 0 15px 25px;
}

img {
  border : 1px solid #fff;
  padding : 5px;
  margin : 3px;
}

a {
  color : #fff;
  text-decoration : none;
}

a:hover {
  color : #000;
  text-decoration : none;
}

h1 {
  color : #fff;
  font-weight : normal;
  font-size : 24px;
  padding : 40px 0 10px 40px;
}

h2 a {
  position : absolute;
  top : 32px;
  color : #666;
  font-size : 16px;
  margin : 0 0 0 575px;
  text-decoration : none;
}

h2 a:hover {
  color : #999;
}

h3 {
  color : #fff;
  font-size : 12px;
  font-weight : bold;
  padding : 5px 0 5px 10px;
}

h4 {
  color : #fff;
  font-size : 20px;
  font-weight : normal;
}

h5 {
  color : #8d8d8d;
  font-size : 10px;
  font-weight : normal;
  padding : 5px;
}

h3 img {
  float : left;
}

/**************************** lists ****************************/

ul {
  list-style : none;
  padding : 0 0 0 3px;
}

li {
  list-style-type : none;
  background : url('http://marvin.horrem-networkz.de/images/bullet.gif') no-repeat 12px 6px;
  padding : 0 0 0 20px;
}

#menu a {
  display : block;
  padding : 0 0 0 20px;
  color : #fff;
  text-decoration : none;
}

#menu a:hover {
  display : block;
  padding : 0 0 0 20px;
  color : #333;
  text-decoration : none;
}
	  
/**************************** footer ****************************/
	  
	  
#footer {
  text-align : center;
  padding : 40px;
  background : url('http://marvin.horrem-networkz.de/images/bottom.gif') no-repeat;
  height : 42px;
}

#footer a {
  color : #000;
}

#footer a:hover {
  color : #fff;
}


Mfg Marvin

Dieser Beitrag wurde von MarvinM bearbeitet: 28. Oktober 2006 - 22:06

0

#9 Mitglied ist offline   Justus 

  • Gruppe: aktive Mitglieder
  • Beiträge: 3.055
  • Beigetreten: 12. März 02
  • Reputation: 0
  • Geschlecht:unbekannt

geschrieben 28. Oktober 2006 - 22:25

Du gibst übrigens dem body 2x einen Background.

Dieser Beitrag wurde von Justus bearbeitet: 28. Oktober 2006 - 22:26

0

#10 _MarvinM_

  • Gruppe: Gäste

geschrieben 30. Oktober 2006 - 15:55

So das hab ich jetzt auch entfernt, aber gebracht hats leider nix :-(
0

Thema verteilen:


Seite 1 von 1

1 Besucher lesen dieses Thema
Mitglieder: 0, Gäste: 1, unsichtbare Mitglieder: 0