Foundation Grid - Small Devices
Suppose we have a simple grid layout on a small device, with two columns at a width ratio of 25% and 75%.
Tip: Small devices are defined as screens smaller than 40.0625em。
On small devices we use .small-* class.
....
....
The following example sets two columns with a ratio of 25% and 75% (Foundation is mobile-first: if not specified otherwise, large devices will inherit the .small class code): .small in them and use those".
Example
<
div
class=
"row"
<
div
class="small-3 columns"
style=
"background-color:yellow;"
<
p
Runoob Tutorial
<
/p
<
/div
<
div
class="small-9 columns"
style=
"background-color:pink;"
<
p
Runoob Tutorial
<
/p
<
/div
<
/divTry it »
![]() |
Note: Make sure the column numbers add up to 12 columns! |
|---|
If you need to set a ratio of 33.3%/66.6%, you can use .small-4 and .small-8:
Example
<
div
class=
"row"
<
div
class="small-4 columns" style=
"background-color:yellow;"
<
p
Runoob Tutorial
<
/p
<
/div
<
div
class="small-8 columns" style=
"background-color:pink;"
<
p
Runoob Tutorial
<
/p
<
/div
<
/divTry it »
