2

removing column padding or margins to create a tiling effect using bootstrap 3

  <div class="row">
  <div class="col-md-4">
    <div class="hexagon-wrapper hex_size">
        <div class="hexagon">
        </div>   
    </div>      
</div>
<div class="col-md-4">
    <div class="hexagon-wrapper hex_size">
        <div class="hexagon">
        </div>   
    </div>      
</div>  
<div class="col-md-4">
    <div class="hexagon-wrapper hex_size">
        <div class="hexagon">
        </div>   
    </div>      
</div>

  //row 2
  <div class="row">
  <div class="col-md-4">
    <div class="hexagon-wrapper hex_size">
        <div class="hexagon">
        </div>   
    </div>      
</div>
<div class="col-md-4 col-md-offset-2">
    <div class="hexagon-wrapper hex_size">
        <div class="hexagon">
        </div>   
    </div>      
</div>  
<div class="col-md-4">
    <div class="hexagon-wrapper hex_size">
        <div class="hexagon">
        </div>   
    </div>      
</div>

Result so far: enter image description here

I need a class to add to row to push the 2nd row up by 50%.Its seems to be over written by Bootstrap.

Careen
  • 567
  • 1
  • 6
  • 26

2 Answers2

0

Bootstrap's rows and cols come loaded with paddings and margins. So, I would suggest that you clear those (inline) to check whether this is a bootstrap issue or a conflict brought by your custom CSS. I am almost sure that the latter will be the issue.

Could you provide this post with a bit more information? Maybe we could be more helpful.

Raphael Costa
  • 86
  • 1
  • 3
0

You can use transform, like

.row.moveup{
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -o-transform: translateY(-50px%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

See it in action here

(I made some minor edits to your html structure as well)

Also, you may want to have a look at this question

Community
  • 1
  • 1
Ted
  • 14,757
  • 2
  • 41
  • 58