html - Bootstrap grid - horizontal scroll -


I am trying to create a page where the bootstrap scroll is any horizontally vertical example of an item:

  & lt ;! DOCTYPE html & gt; & Lt; Html lang = "en" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Meta name = "viewport" content = "width = device-width, initial-scale = 1" & gt; & Lt; Link rel = "stylesheet" href = "http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" & gt; & Lt; Script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div class = "container-liquid" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-sm-4" style = "background-color: red;" & Gt; Item 1 & lt; / Div & gt; & Lt; Div class = "col-sm-4" style = "background-color: blue;" & Gt; Item 2 & lt; / Div & gt; & Lt; Div class = "col-sm-4" style = "background-color: green;" & Gt; Item 3 & lt; / Div & gt; & Lt; Div class = "col-sm-4" style = "background-color: yellow;" & Gt; Item 4 & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-sm-4" style = "background-color: red;" & Gt; Item 5 & lt; / Div & gt; & Lt; Div class = "col-sm-4" style = "background-color: blue;" & Gt; Item 6 & lt; / Div & gt; & Lt; Div class = "col-sm-4" style = "background-color: green;" & Gt; Item 7 & lt; / Div & gt; & Lt; Div class = "call-sm-4" style = "background-color: yellow;" & Gt; Item 8 & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

In the above example, I can say 'item4' & amp; 'Item 8' only appears when scrolling.

Although Bootstrap is keeping these items under 'Item 1'; Respectively, 'item 5' respectively

You need to change the number of your divisions.

The bootstrap grid size is 12, so a call-SM-4 will render the maximum 3 (4 + 4 + 4 = 12) per line.

You will have to use the Coles-S-3, which allows 25% of the container and 4 per line (3 + 3 + 3 + 3 = 12) to show.

Again, try this:

  & lt; Div class = "row" & gt; & Lt; Div class = "col-sm-3" style = "background-color: red;" & Gt; Item 1 & lt; / Div & gt; & Lt; Div class = "col-sm-3" style = "background-color: blue;" & Gt; Item 2 & lt; / Div & gt; & Lt; Div class = "col-sm-3" style = "background-color: green;" & Gt; Item 3 & lt; / Div & gt; & Lt; Div class = "col-sm-3" style = "background-color: yellow;" & Gt; Item 4 & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-sm-3" style = "background-color: red;" & Gt; Item 5 & lt; / Div & gt; & Lt; Div class = "col-sm-3" style = "background-color: blue;" & Gt; Item 6 & lt; / Div & gt; & Lt; Div class = "col-sm-3" style = "background-color: green;" & Gt; Item 7 & lt; / Div & gt; & Lt; Div class = "col-sm-3" style = "background-color: yellow;" & Gt; Item 8 & lt; / Div & gt; & Lt; / Div & gt;  

Here is the Bootstrap Grid Explanation:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -