html - How to make 5 column row in zurb 5 foundation -


I row is to keep 5 columns and only 1 column screen for small devices < / P>

For example

  & lt; Div class = "row"   

& gt; & Lt; Div square = "small -6 medium -3 large-3 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 1]" /> & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; Div square = "small -6 medium -3 large-3 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 2]" /> & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; Div square = "small -6 medium -3 large-3 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 3]" /> & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; Div square = "small -6 medium -3 large-3 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 4]" /> & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; Div square = "small -6 medium -3 large-3 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 5]" /> & Lt; P & gt; & Lt; / P & gt; & Lt; / Div & gt;

What this column or list ul li

In your example, you have 5 & lt; Div & gt; classes Low -3 and Big -3 = per line 15 units Foundation will manage to fit in the first four (4 * 3 = 12 units) , And then the fifth bottom row will be pushed. <5 p>

An idea to fit in 5 items, everything to a Medium -2 width (10 units), and a unit < / Code> On the left (class) and tell the Foundation that the fifth element is the last in your line (for example:

For example:

  & lt; Div class = "row" & gt; & Lt; Div square = "small -12 medium -2 middle-offset-1 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 1]" /> & Lt; / Div & gt; & Lt; Div class = "small-12 medium-2 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 1]" /> & Lt; / Div & gt; & Lt; Div class = "small-12 medium-2 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 1]" /> & Lt; / Div & gt; & Lt; Div class = "small-12 medium-2 column" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 1]" /> & Lt; / Div & gt; & Lt; Div square = "small -12 medium -2 column end" & gt; & Lt; Img src = "http://placehold.it/480x600&xtxt=[img 1]" /> & Lt; / Div & gt; & Lt; / Div & gt;   

Low-Offset -1 point material (after a fashion) is to focus on: You have 10 units a Possible 12. By offset by one, and using end , you will leave along with the interval of 1 unit on each side of your content. However, if you want to sit on the left side of your page then delete the middle-offset-1 class from the example above.

Note - You can actually enter large by default only medium-2 and middle-offset -2 Also applies to the grid, unless classes are overridden by large- * or large-offset - * .

Comments

Popular posts from this blog

php - how to change mysql_result($res, 0, "url"); to mysqli -

c# - Textbox not clickable but editable -

Matlab transpose a table vector -