IE6 stellt nicht zentriert ...

IE6 stellt nicht zentriert ...

Beitragvon css_beginner73 » 09.07.2010, 12:24

Hallo,

bin neu hier und hoffe man kann mir helfen.

Ich möchte gerne meine Site zentriert darstellen, auf Mozilla geht das
auf > IE6 auch aber eben nicht auf IE6

Ich zeige mal mein CSS:

Code: Alles auswählen
..
body {
font-family: Tahoma, Helvetica, sans-serif;
font-size: 13px;
background: #020204;
background-image: url(bg.jpg);background-repeat:repeat-x;
 
}
#wrapper {
margin-left: auto;
margin-right:auto;
width: 960px;
}

.zweispaltencontainer .linke-spalte{
float:left;
width:50%;
}

.zweispaltencontainer .rechte-spalte{
float:left;
width:50%px;
}

.clearer{
float:none;
clear:both;
}


#links {
  float: left;
  width: 33%;
  height: 130px;
  border-left:1px solid #3E3E3E;
  border-bottom:1px solid #3E3E3E;
  border-top:1px solid #3E3E3E;
  font-family: Tahoma, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 120%;
  background-image: url(bg.jpg);background-repeat:repeat-x;

}
#rechts {
  float: left;
  width: 33%;
  height: 130px;
  border-right:1px solid #3E3E3E;
  border-bottom:1px solid #3E3E3E;
  border-top:1px solid #3E3E3E;
  font-family: Tahoma, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 120%;
  background-image: url(bg.jpg);background-repeat:repeat-x;
}

#inhalt {
  float: left;
  font-family: Tahoma, Helvetica, sans-serif;
  border:1px solid #3E3E3E;
  font-size: 11px;
  line-height: 120%;
  width: 33%;
  height: 130px;
  background-image: url(bg.jpg);background-repeat:repeat-x;
}
p.back {
  clear: both;
  text-align: center;
}

#header {
width: 960px;
color: #333;
padding: 10px;
height: 400px;
margin: auto;
background: #transparent;
}


#content {
width: 960px;
color: #fff;
background: #transparent;
margin: auto;
padding: 10px;
height: 350px;
}

#footer {
width: 960px;
color: #333;
background: #transparent;
margin: auto;
padding: 10px;
}
..


mmh was ist da wohl falsch :-( ?
css_beginner73
neu hier
 
Beiträge: 2
Registriert: 09.07.2010, 12:20

Re: IE6 stellt nicht zentriert ...

Beitragvon sejuma » 09.07.2010, 17:40

Ich vermute, du hast keinen oder einen falschen Doctype.
Versuch's mal mit dem (in der allerersten Quelltextzeile einfügen):
Code: Alles auswählen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


http://www.ohne-css.gehts-gar.net/0008.php
Bild
sejuma
Vielposter
 
Beiträge: 787
Registriert: 15.07.2009, 17:46

Re: IE6 stellt nicht zentriert ...

Beitragvon Azra » 12.07.2010, 06:59

Um ganz sicher zu gehen beachte das:

Code: Alles auswählen
body {
[color=#FF4040]text-align: center;[/color]
}
wrapper {
[color=#00BF00]text-align: left;[/color]
}


Der ganze <body> wird zentriert (also auch der wrapper).
Alles innerhalb des Containers wird zurückgesetzt.
“HTML is the language for describing the structure of Web pages.”
“CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts.”
Noch weitere Probleme? Kontakt über meine Webseite - simonduda.ch
Benutzeravatar
Azra
Stammuser
 
Beiträge: 422
Registriert: 04.02.2010, 08:36
Wohnort: (Alten)bochum

Re: IE6 stellt nicht zentriert ...

Beitragvon css_beginner73 » 13.07.2010, 08:27

... yo danke euch ... ich habe das so gemacht wie
von Azra beschrieben :-)

muchos gracias :-)
css_beginner73
neu hier
 
Beiträge: 2
Registriert: 09.07.2010, 12:20


Moderatoren: Laus, Moderatoren

Ähnliche Beiträge zu "IE6 stellt nicht zentriert ..."

Zurück zu: CSS für Anfänger

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste

cron