Das Layout der Seite passt sich dem Ausgabemedium an.
Verhindert das “verkleinern” der Website auf kleinen Ausgabenmedien
<meta name="viewport" content="width=device-width, initial-scale=1.0">
/* Media Query (Desktop First) */
aside {
float: left;
width: 50%;
}
@media (max-width: 50em) {
aside {
float: none;
width: auto;
}
}
/* Vertical Media Query*/
@media (min-height: 500px) { }
/* Media Query für Druck */
@media print { }
V3.Bootstrap Breakpoints
/* Erst Default Desktop Styling und anschließend ... */
/* Large Devices, Wide Screens */
@media (max-width : 1200px) { }
/* Medium Devices, Desktops */
@media (max-width : 992px) { }
/* Small Devices, Tablets */
@media (max-width : 768px) { }
/* Extra Small Devices, Phones */
@media (max-width : 480px) { }
/* Custom, iPhone Retina */
@media (max-width : 320px) { }
V5.Bootstrap Breakpoints
/* Erst Default Mobile Styling und anschließend ... */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) { }
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) { }
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { }
/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { }
/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) { }
/* Desktop first */
aside {
float: left;
width: 50%;
}
@media (max-width: 50rem) {
aside {
float: none;
width: auto;
}
}
/* Mobile first */
@media (min-width: 50rem) {
aside {
float: left;
width: 50%;
}
}
Brauchen wir Media Queries?
See the Pen Examples of "responsive by default" layout methods by rachelandrew (@rachelandrew) on CodePen.
rem oder em zu definieren.order (Umplatzieren von Elementen mittels CSS)