Foundation Grid - Large Devices
In the previous chapter we introduced grid layouts for medium and small devices. Small devices use a ratio of 25%/75% (.small-3 and .small-9), but medium devices use a ratio of 50%/50% (.medium-6 and .medium-6):
....
....
On large devices we recommend a ratio of 33%/66%.
Tip: Large devices are defined as screen sizes greater than 64.0625em.
Using on large devices .large-* class.
Now we add two columns on large devices:
....
....
Parsing
- Small devices have a two-column ratio of 25%/75% (
.small-3and.small-9) - Medium devices have a two-column ratio of 50%/50% (
.medium-6and.medium-6) - Large devices have a two-column ratio of 33%/66% (
.large-4and.large-8)
Example
<
div
class=
"row"
<
div
class="small-3 medium-6 large-4 columns"
style=
"background-color:yellow;"
<
p
Runoob Tutorial
<
/p
<
/div
<
div
class="small-9 medium-6 large-8 columns"
style=
"background-color:pink;"
<
p
Runoob Tutorial
<
/p
<
/div
<
/divTry it »
![]() |
Note: Make sure the column numbers add up to 12 columns! |
|---|
Using only on large devices
In the following example we specify .large-6 class (not .medium-* and .small-*). This indicates a 50%/50% ratio on large devices. But on medium or small devices they will stack horizontally (100% width):
Example
<
div
class=
"row"
<
div
class="large-6 columns"
style=
"background-color:yellow;"
<
p
Runoob Tutorial
<
/p
<
/div
<
div
class="large-6 columns"
style=
"background-color:pink;"
<
p
Runoob Tutorial
<
/p
<
/div
<
/divTry it »
