vertical divider between two columns in bootstrap

If your code looks like this:

<div class="row">
  <div class="span6">
  </div>
  <div class="span6">
  </div>
</div>

Then I’d assume you’re using additional DIVS within the “span6” DIVS for holding/styling your content? So…

<div class="row">
  <div class="span6">
    <div class="mycontent-left">
    </div>
  </div>
  <div class="span6">
    <div class="mycontent-right">
    </div>
  </div>
</div>

So you could simply add some CSS to the “mycontent-left” class to create your divider.

.mycontent-left {
  border-right: 1px dashed #333;
}

Leave a Comment

tech