Hey Community, ich stehe hier seit ca. 1 Stunde in Fragen. Ich bin dabei ein Layout zu erstellen inkl. Media Queries (mein erstes mal). Leider ist irgendwas falsch. >.<
Ich möchte das der DIV Container der 1170px Breit ist sich bei der max Breite von 900px auf auto stellt bzw. das width auf auto stellt.
Mein Code:
Leider stellt er sich ab 900px gar nicht auf auto, wieso?
Mfg,
Ich möchte das der DIV Container der 1170px Breit ist sich bei der max Breite von 900px auf auto stellt bzw. das width auf auto stellt.
Mein Code:
PHP-Code:
@media screen and (max-width: 900px) { .container {width: auto;}}
.container {
margin-left: auto;
margin-right: auto;
padding-left: 0;
padding-right: 0;
position: relative;
width: 1170px;
}
Mfg,
Kommentar