Well, on the margin between the div's, just change the CSS
on your page by changing the margin.
.col-md-3{
margin: 0 5px 5px 0;
}
In terms of size, I do not think you know the size of each text to set min-heigth
of the page, so I recommend using jQuery
to get the largest size of each div
and set heigth
equal for all.
It would look something like this:
$(document).ready(function() {
var maxHeight = -1;
$('.col-md-3').each(function() {
maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();
});
$('.col-md-3').each(function() {
$(this).height(maxHeight);
});
});
See an example working on JsFiddle.
References: Use jQuery / CSS to find the tallest of all elements.
If you want to change the size in blocks, you can separate the value of maxHeigth
in each block, like this:
$(document).ready(function() {
var maxHeight = -1;
$('.row').each(function() {
$(this).find('.col-md-3').each(function() {
maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();
});
$(this).find('.col-md-3').each(function() {
$(this).height(maxHeight);
});
});
});
Functional example in JsFiddle .