I'm not a web developer, so please forgive me if this question is off-base.
I'm trying to build out a part of my flask app that serves up an album/card style page like this.
So, ideally I would like be able to display any number of cards on the page, wrapping the content so that no more than 3 or 4 cards are displayed per row.
I thought using flex-box might help in this situation, and this is what I have tried so far:
<div class="box" style="display:flex; max-width: 500px;">
{% for row in x %}
<div class="card mb-4 box-shadow" style="padding:5px; min-width: 200px; margin: 10px;">
<div class="card-body">
<h5>{{row.title}}</h5>
<p class="card-text" style="font-size: 15px;">{{row.text}}</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<form action="filtersearch" name="filtersearch" method="POST" style="width: 80%;">
<input id="namesearch" name="nameval" style="width: 80%;" placeholder={ {current_name}}>
</form>
</div>
<small class="text-muted">9 mins</small>
</div>
</div>
</div>
{% endfor %}
But unfortunately, this just displays them horizontally into the infinity of the margins.
I've used Flask to display dynamic content with HTML tables before, but is it possible to do something like this?
Thanks for your help!
you can use flex-flow: row wrap and to center the elements use justify-content: center I added margin:10px around but you can choose to change that and make the justify-content: space-around or justify-content: space-between. another way to do this layout is to use display: grid you can read more about it here:
A Complete Guide to Grid
or
A Complete Guide to Flexbox
Check this code:
section {
max-width: 160px;
height: auto;
border: 1px solid #a2a2a2;
text-align: center;
margin: 10px;
}
img {
width: 100%;
}
.parent--products {
display: flex;
flex-flow: row wrap;
justify-content: center;
}
<div class="parent--products">
<section class="products">
<div class="product-card">
<div class="product-image">
<img src="https://picsum.photos/5416/3611?image=1082">
</div>
<div class="product-info">
<h5>Winter Jacket</h5>
<h6>$99.99</h6>
</div>
</div>
</section>
<section class="products">
<div class="product-card">
<div class="product-image">
<img src="https://picsum.photos/5416/3611?image=1082">
</div>
<div class="product-info">
<h5>Winter Jacket</h5>
<h6>$99.99</h6>
</div>
</div>
</section>
<section class="products">
<div class="product-card">
<div class="product-image">
<img src="https://picsum.photos/5416/3611?image=1082">
</div>
<div class="product-info">
<h5>Winter Jacket</h5>
<h6>$99.99</h6>
</div>
</div>
</section>
<section class="products">
<div class="product-card">
<div class="product-image">
<img src="https://picsum.photos/5416/3611?image=1082">
</div>
<div class="product-info">
<h5>Winter Jacket</h5>
<h6>$99.99</h6>
</div>
</div>
</section>
<section class="products">
<div class="product-card">
<div class="product-image">
<img src="https://picsum.photos/5416/3611?image=1082">
</div>
<div class="product-info">
<h5>Winter Jacket</h5>
<h6>$99.99</h6>
</div>
</div>
</section>
<section class="products">
<div class="product-card">
<div class="product-image">
<img src="https://picsum.photos/5416/3611?image=1082">
</div>
<div class="product-info">
<h5>Winter Jacket</h5>
<h6>$99.99</h6>
</div>
</div>
</section>
</div>
Related
I'm trying to make 3 divs in one row. Divs are divided for two parts, one with image and other with 3 lines of text.
Divs are with box-shadow style.
When I make all of this i get no spacing between div's, when I add extra margin or padding I get problem when page is resized.
This is what I done most close to what I want, only problem is when i resize browser divs collide with selfs.
When I try to make main 3 div's with breakpoints like col-sm-6-md-4 its crap
I try many ways to do this. This is one of them.. not too nice because with extra padding py-4 and probably this make errors.
I have one working version but with different structure like img is above and text bottom and then its works.
.box1 {
box-shadow: 1px 1px 3px 1px grey;
}
<section>
<div class="container">
<div class="row">
<div class="col-4 py-4">
<div class="row">
<div class="col ">
<div class="row justify-content-center">
<div class="col-11 box1 d-flex">
<div class="box2"><img style="width: 100px; height: 100px;" src="img/icon/m/img.png" alt="a"></div>
<div class="box2">
<p>text</p>
<p>text</p>
<p>text</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-4 py-4">
<div class="row">
<div class="col ">
<div class="row justify-content-center">
<div class="col-11 box1 d-flex">
<div class="box2"><img style="width: 100px; height: 100px;" src="img/icon/m/img.png" alt="a"></div>
<div class="box2">
<p>text</p>
<p>text</p>
<p>text</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-4 py-4">
<div class="row">
<div class="col ">
<div class="row justify-content-center">
<div class="col-11 box1 d-flex">
<div class="box2"><img style="width: 100px; height: 100px;" src="img/icon/m/img.png" alt="a"></div>
<div class="box2">
<p>text</p>
<p>text</p>
<p>text</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<---- below is working code but with other layout what i dont wont -->
<---- below is working code but with other layout what i dont wont -->
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="box1">
<img class="" src="img/icon/m/img.png" alt="a">
<p>text</p>
<p>text</p>
<p>text</p>
</div>
</div>
<div class="col-sm-4">
<div class="box1">
<img class="" src="img/icon/m/img.png" alt="a">
<p>text</p>
<p>text</p>
<p>text</p>
</div>
</div>
<div class="col-sm-4">
<div class="box1">
<img class="" src="img/icon/m/img.png" alt="a">
<p>text</p>
<p>text</p>
<p>text</p>
</div>
</div>
</div>
</div>
Have you tried doing percentage-based margin and widths?
But if you're using bootstrap the columns should automatically have padding between them.
Something like -
.col-sm-4 {
width: 30%
margin: 1.66666667%;
}
Maybe I've misunderstood what you're trying to do.
I use mainly Bootstrap, but in this case nor pure CSS nor Bootstrap could make the case. I have an HTML like this:
#filling{
display: flex;
flex-direction: column;
overflow-y: scroll;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<div>
<div class="container">
<div class="row align-items-center mt-3">
<div class="col-6 text-center">
<img width="150" height="150" src="img/user-placeholder.svg">
<p class="mt-2 mb-0">pholder</p>
</div>
<div class="col-6">
<div class="mb-2">
<div class="row">
<div class="col-6 text-center">pholder</div>
<div class="col-6 text-center">pholder</div>
</div>
<div class="row">
<div class="col-6 text-center">Friends</div>
<div class="col-6 text-center">Posts</div>
</div>
</div>
<butto class="btn btn-transparent mt-2">Click</button>
</div>
</div>
<br>
<p class="text-center m-0">Contents</p>
<hr class="mt-0 mb-2">
</div>
<div id="filling" class="text-center">
<div class="sample">
<img width="270" height="270" src="my_img.jpg">
<p>coding</p>
</div>
<div class="sample">
<img width="270" height="270" src="my_img.jpg">
<p>coding</p>
</div>
<div class="sample">
<img width="270" height="270" src="my_img.jpg">
<p>coding</p>
</div>
</div>
</div>
Now the issue is: the #filling div has to be populated dynamically and I want it to behave like ListView in Android programming. I must be able to scroll it. Therefore I added some CSS:
#filling{
display: flex;
flex-direction: column;
overflow-y: scroll;
}
But if I populate the div by appending children like those three .sample divs, the list grows vertically but the #filling div does too. In other words, its' forcing me to scroll the entire page rather than just the div.
I hope I have been clear, this sure will be marked as a duplicate of any flex question but I'd like to receive a working solution because other than fixing the height of the div, say, at 250px I cannot find a "responsive" way to do it.
I created a quick solution where I set the max-heigth of your #filling div to 50%.
Please note, you need to set the height of all outer containers to 100% for this to work.
JSBin link: https://jsbin.com/nofobak/edit?html,css,output
<div id="my-container">
<div class="container h-40">
<div class="row align-items-center mt-3">
<div class="col-6 text-center">
<img width="150" height="150" src="img/user-placeholder.svg">
<p class="mt-2 mb-0">pholder</p>
</div>
<div class="col-6">
<div class="mb-2">
<div class="row">
<div class="col-6 text-center">pholder</div>
<div class="col-6 text-center">pholder</div>
</div>
<div class="row">
<div class="col-6 text-center">Friends</div>
<div class="col-6 text-center">Posts</div>
</div>
</div>
<butto class="btn btn-transparent mt-2">Click</button>
</div>
</div>
<br>
<p class="text-center m-0">Contents</p>
<hr class="mt-0 mb-2">
</div>
<div id="filling" class="h-60 text-center">
<div class="sample">
<img width="270" height="270" src="my_img.jpg">
<p>coding</p>
</div>
<div class="sample">
<img width="270" height="270" src="my_img.jpg">
<p>coding</p>
</div>
<div class="sample">
<img width="270" height="270" src="my_img.jpg">
<p>coding</p>
</div>
</div>
</div>
#filling{
display: flex;
flex-direction: column;
overflow-y: scroll;
max-height: 50%;
}
html {
height: 100%
}
body {
height: 100%;
}
#my-container {
height: 100%;
}
A couple of things, h-40 is not a Bootstrap class, unless you have it as a custom class you made; Bootstrap's height utility classes are just h-25, h-50, h-75, h-100, h-auto.
As mentioned in my comment and the answers linked, you if you want to use percentages, you need to have a parent with a fixed height so the percentage can take that as a reference; the other option is to use vh units to set the height relative to the viewport's height.
Bootstrap also provides some utilities for this
Now you would need to take into account the headers content of course
#posts_list {
display: flex;
flex-direction: column;
overflow-y: scroll;
max-height: 60vh;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<div>
<div class="container">
<div class="row align-items-center mt-3">
<div class="col-6 text-center">
<img width="150" height="150" src="img/user-placeholder.svg">
<p class="mt-2 mb-0">pholder</p>
</div>
<div class="col-6">
<div class="mb-2">
<div class="row">
<div class="col-6 text-center">pholder</div>
<div class="col-6 text-center">pholder</div>
</div>
<div class="row">
<div class="col-6 text-center">Friends</div>
<div class="col-6 text-center">Posts</div>
</div>
</div>
<butto class="btn btn-transparent mt-2">Click</button>
</div>
</div>
<br>
<p class="text-center m-0">Contents</p>
<hr class="mt-0 mb-2">
</div>
<div id="posts_list" class="h-60 text-center">
<div class="sample">
<img width="270" height="270" src="my_img.jpg">
<p>coding</p>
</div>
<div class="sample">
<img width="270" height="270" src="my_img.jpg">
<p>coding</p>
</div>
<div class="sample">
<img width="270" height="270" src="my_img.jpg">
<p>coding</p>
</div>
</div>
</div>
I need to made this div in bootstrap 3 as shows in image...
I need to display 4 icons/images in one row and another 4 icons in another row in smaller screen/mobile view..i dont know any error in my code..
please help me to make this as shown as in image.
<section class="container-fluid">
<div class="row" style="background-color:#034ea2;">
<div class="col-md-2"></div>
<div class="col-md-1 text-center ">
<div class="im1">
<img src="/images/speaker.png" alt="1" class="siz">
</div>
<div class="textt">
<h6>Sound insultion</h6>
</div>
</div>
<div class="col-md-1 text-center" >
<div class="im1">
<img src="/images/renewable-energy.png" alt="1" class="siz">
</div>
<div class="textt">
<h6>Save energy</h6>
</div>
</div>
<div class="col-md-1 text-center">
<div class="im1">
<img src="/images/window.png" alt="1" class="siz">
</div>
<div class="textt">
<h6>Prevent Dust Buildup</h6>
</div>
</div>
<div class="col-md-1 text-center">
<div class="im1">
<img src="/images/stormy.png" alt="1" class="siz">
</div>
<div class="textt">
<h6>Storm Resistant</h6>
</div>
</div>
<div class="col-md-1 text-center">
<div class="im1">
<img src="/images/hotel-elevator.png" alt="1" class="siz">
</div>
<div class="textt">
<h6>Elegant Looks</h6>
</div>
</div>
<div class="col-md-1 text-center">
<div class="im1">
<img src="/images/umb.png" alt="1" class="siz">
</div>
<div class="textt">
<h6>Blocks Seepage</h6>
</div>
</div>
<div class="col-md-1 text-center">
<div class="im1">
<img src="/images/sun.png" alt="1" class="siz">
</div>
<div class="textt">
<h6>Thermal Insulation</h6>
</div>
</div>
<div class="col-md-1 text-center">
<div class="im1">
<img src="/images/maintenance.png" alt="1" class="siz">
</div>
<div class="textt">
<h6>Low maintenance</h6>
</div>
</div>
<div class="col-md-2">
</div>
</div>
</section>
styles
.im1{
padding-top: 8px;
padding-left: 8px;
}
.siz{
width: 40px;
}
.textt{
font-size: 15px;
color:#ffffff;
font-family: 'Times New Roman', Times, serif !important;
}
Here is the image
how to make this image using bootstrap grid system...
I created a code for you. I hope it will help to you.
https://codepen.io/myco27/pen/OvMdGp
img{
width: 100%;
}
.img1{
width: calc(100% / 8);
float:left;
}
#media (max-width: 860px) {
.img1{
width: calc(100% / 4);
float:left;
}
}
<section class="container-fluid">
<div class="row" style="background-color:#034ea2;">
<div class="img1 text-center">
<img src="https://webfoundation.org/docs/2017/03/March-12-Letter.jpg" alt="1">
</div>
<div class="img1 text-center">
<img src="https://webfoundation.org/docs/2017/03/March-12-Letter.jpg" alt="1">
</div>
<div class="img1 text-center">
<img src="https://webfoundation.org/docs/2017/03/March-12-Letter.jpg" alt="1">
</div>
<div class="img1 text-center">
<img src="https://webfoundation.org/docs/2017/03/March-12-Letter.jpg" alt="1">
</div>
<div class="img1 text-center">
<img src="https://webfoundation.org/docs/2017/03/March-12-Letter.jpg" alt="1">
</div>
<div class="img1 text-center">
<img src="https://webfoundation.org/docs/2017/03/March-12-Letter.jpg" alt="1">
</div>
<div class="img1 text-center">
<img src="https://webfoundation.org/docs/2017/03/March-12-Letter.jpg" alt="1">
</div>
<div class="img1 text-center">
<img src="https://webfoundation.org/docs/2017/03/March-12-Letter.jpg" alt="1">
</div>
</div>
</section>
First bootstrap runs in a 12 grid sysytem that is defined or can be broken down into 2,3, or 4 segements...basically any divisor of 12. In your case, to get the first four images in a row (in a small device), we split the grid by 3 i.e "col-md-3" for each image wrapper and "col-lg-1" (for large devices) e.g using a snippet from your code
<div class="col-lg-1 col-md-3 text-center">
<div class="im1">
<img src="/images/hotel-elevator.png" alt="1" class="siz">
</div>
<div class="textt">
<h6>Elegant Looks</h6>
</div>
</div>
Then avoid splitting the grid at the main <div class="col-md-2"></div> wrapper, simply leave it as <div class="row justify-content-md-center"></div>.
This should work just fine.
NB: The number of images willbe only 8 in this container
For Your CSS is simply modify the following
.siz{
width: 100%;
}
Try This. it has 8 div in 1 row. as shown in image
<style>
.main{
background:#034da2;
}
</style>
<div class="col-md-12 main">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="row">
<div class="col-md-3">
<img src="image" alt="your image"/>
</div>
<div class="col-md-3">
<img src="image" alt="your image"/>
</div>
<div class="col-md-3">
<img src="image" alt="your image"/>
</div>
<div class="col-md-3">
<img src="image" alt="your image"/>
</div>
</div>
</div>
<div class="col-md-6">
<div class="row">
<div class="col-md-3">
<img src="image" alt="your image"/>
</div>
<div class="col-md-3">
<img src="image" alt="your image"/>
</div>
<div class="col-md-3">
<img src="image" alt="your image"/>
</div>
<div class="col-md-3">
<img src="image" alt="your image"/>
</div>
</div>
</div>
</div>
</div>
</div>
Sorry for bad title but couldn't think of anything better.
I have this progress bar created with Bootstrap, and images and paragraphs oer and under. But when I try to resize the window (lower it), it changes positions and suddenly wrecks everything. I need it the imgs and paragraphs to stand exactly same positions as the width of the progress bar.
<div>
<p style="display:inline-block;">0</p>
<p style="margin-left:23.6%;display:inline-block;">800</p>
<p style="margin-left:1.9%;display:inline-block;">950</p>
<p style="margin-left:1.9%;display:inline-block;">1100</p>
<p style="margin-left:1.9%;display:inline-block;">1250</p>
<p style="margin-left:1.9%;display:inline-block;">1400</p>
<p style="margin-left:1.9%;display:inline-block;">1550</p>
<p style="margin-left:1.9%;display:inline-block;">1700</p>
<p style="margin-left:1.9%;display:inline-block;">1850</p>
<p style="margin-left:1.9%;display:inline-block;">2000</p>
</div>
<div class="row" style="text-align:center;margin-left:0px;margin-right:0px;">
<div class="progress" style="margin-bottom:0px;height:40px;background-color:#cfcfcf;">
<div class="progress-bar" role="progressbar" aria-valuenow="'#ViewBag.EloWidth'"
aria-valuemin="0" aria-valuemax="3000" style="width:#ViewBag.EloWidth%;background-color:#6378ff;">
</div>
</div>
</div>
<div>
<img src="/Images/lvl1.png">
<img src="/Images/lvl2.png" style="margin-left:21%;">
<img src="/Images/lvl3.png" style="margin-left:1.3%;">
<img src="/Images/lvl4.png" style="margin-left:1.9%;">
<img src="/Images/lvl5.png" style="margin-left:2.2%;">
<img src="/Images/lvl6.png" style="margin-left:2.3%;">
<img src="/Images/lvl7.png" style="margin-left:2.3%;">
<img src="/Images/lvl8.png" style="margin-left:2.3%;">
<img src="/Images/lvl9.png" style="margin-left:2.3%;">
<img src="/Images/lvl10.png" style="margin-left:2.3%;">
</div>
You are not using bootstrap for the rest of your layout (the labels and icons). Try this one:
<div class="row">
<div class="col-3">
<p>0</p>
</div>
<div class="col-1">
<p>800</p>
</div>
<div class="col-1">
<p>950</p>
</div>
<div class="col-1">
<p>1100</p>
</div>
<div class="col-1">
<p>1250</p>
</div>
<div class="col-1">
<p>1400</p>
</div>
<div class="col-1">
<p>1550</p>
</div>
<div class="col-1">
<p>1700</p>
</div>
<div class="col-1">
<p>1850</p>
</div>
<div class="col-1">
<p>2000</p>
</div>
</div>
<div class="row" style="text-align:center;margin-left:0px;margin-right:0px;">
<div class="progress col-12" style="margin-bottom:0px;height:40px;background-color:#cfcfcf;">
<div class="progress-bar" role="progressbar" aria-valuenow="'#ViewBag.EloWidth'"
aria-valuemin="0" aria-valuemax="3000" style="width:#ViewBag.EloWidth%;background-color:#6378ff;">
</div>
</div>
</div>
<div class="row">
<div class="col-3">
<img src="/Images/lvl1.png">
</div>
<div class="col-1">
<img src="/Images/lvl2.png">
</div>
<div class="col-1">
<img src="/Images/lvl3.png">
</div>
<div class="col-1">
<img src="/Images/lvl4.png">
</div>
<div class="col-1">
<img src="/Images/lvl5.png">
</div>
<div class="col-1">
<img src="/Images/lvl6.png">
</div>
<div class="col-1">
<img src="/Images/lvl7.png">
</div>
<div class="col-1">
<img src="/Images/lvl8.png">
</div>
<div class="col-1">
<img src="/Images/lvl9.png">
</div>
<div class="col-1">
<img src="/Images/lvl10.png">
</div>
</div>
This is a helpful guild about the Bootstrap Grid System. You might also use a class="col-12" for your progress bar.
EDIT: Working Plunker for Bootstrap4:
Plunker BS 4
EDIT2: Working Plunker for Bootstrap3:
Plunker BS 3
What I'm really looking for is two different designs to align my images according to. One for tablets (992 px) and up and one for smaller screens.
Ideally I want them to look like this:
This one:
Should shrink to:
That's just an ideal though, really any sort of symmetry would do so long as the red one (it's special) is displayed bottom center.
I'm having big problems getting the images to align in the center using Bootstrap's col-xx-y grid formatting. text-align: center seems to be the only way to get images to align centrally, which is weird. But it's very fidgety, so if I change anything the design breaks completely.
Here's what I have so far:
HTML:
<div class="container">
<div class="row centered categories">
<div class="col-md-12">
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 1</h4>
</div>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 2</h4>
</div>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 3</h4>
</div>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 4</h4>
</div>
</div>
<div class="col-md-12">
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 5</h4>
</div>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 6</h4>
</div>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 7</h4>
</div>
</div>
<div class="col-lg-12">
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Special</h4>
</div>
</div>
</div>
</div>
CSS:
.centered {
text-align: center
}
.categories {
position:relative;
display: inline-block;
float:left;
}
.icon-cont {
display: inline-block;
text-align: center;
width: 125px;
margin-left: 25px;
margin-right: 25px;
}
.icon-cont img {
display: block;
margin-left: auto;
margin-right: auto;
}
Please see the fiddle here.
Is this a valid approach to this design? I'm worried I'm doing things totally wrong because it's so fidgety. For example, if I change col-md-12 to col-lg-12 it won't center at certain screen sizes (you have to zoom out to see this).
I'm thinking I would have to pair the icons up in smaller cols but they just won't work with me.
Give each one a column for each device ie
<div class="col-lg-4 col-xs-6">
etc etc
sorry this is short
here's something to read, when i get a chance i'll create a fiddle :)
http://getbootstrap.com/examples/grid/
EDIT:
Hi had a quick whack, this works without any css, just using twitter bootstrap built in columns
<body>
<div class="container">
<div class="row centered categories">
<div class="col-md-3 col-xs-12">
<center>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 1</h4>
</div>
</center>
</div>
<div class="col-md-3 col-xs-6">
<center>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 2</h4>
</div>
</center>
</div>
<div class="col-md-3 col-xs-6">
<center>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 3</h4>
</div>
</center>
</div>
<div class="col-md-3 col-xs-6">
<center>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 4</h4>
</div>
</center>
</div>
<div class="col-md-4 col-xs-6">
<center>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 5</h4>
</div>
</center>
</div>
<div class="col-md-4 col-xs-6">
<center>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 6</h4>
</div>
</center>
</div>
<div class="col-md-4 col-xs-6">
<center>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Title 7</h4>
</div>
</center>
</div>
<div class="col-md-12">
<center>
<div class="icon-cont">
<img src="http://i.imgur.com/ZF9KgVk.png">
<h4>Special</h4>
</div>
</center>
</div>
</div>