margin-right Chrome Problem und min-width
Margina
- css
0 suit
Hallo liebe Community
Ich habe ein kleines CSS Problem:
body {
font-family: Verdana;
font-size: 12px;
background-color: #e1e0e1;
color: #000000;
margin: 0px;
}
#content{
margin-top: 10px;
margin-left: 170px;
margin-right: 160px;
margin-bottom: 160px;
border-color: #000000;
border-width: 1px;
border-style: solid;
overflow: hidden;
background-color: #ffffff;
}
Mein Content bereich sollte ein margin-right von 160px haben. Das einzige was sich hinter dem content div befindet ist der body.
Im firefox, IE funktioniert das auch perfekt. Ich habe konstant - egal wie ich den Browser skaliere - einen margin von 160px. Bei google Chrome jedoch nicht! Dort ist es gut doppelt soviel!
Weis jemand woran das liegen könnte?
Dann habe ich noch ein zweites Problem. Ich möchte gerne dass der Content bereich ab ein min-width hatt. Damit er eine gewisse breite einhaltet, auch wenn man das browser fenster verkleinert.
Aber wenn ich dem content bereich ein min-width von 800px gebe, dann springt der content bereich bei 800px einfach um etwa 200px nach unten. Weis jemand woran das liegen könnte?
Weis jemand woran das liegen könnte?
An fehlerhaftem Code.
Aber wenn ich dem content bereich ein min-width von 800px gebe, dann springt der content bereich bei 800px einfach um etwa 200px nach unten. Weis jemand woran das liegen könnte?
An einem magischen Element (welches du nicht näher benennst) mit einer Breite >= 1px und einer berechneten Boxhöhe von 200px.