css - best practice to do line breaks in HTML with bootstrap -


i need line break, don't want using <br> tags on html.

so tried use : <div class="clearfix"></div>

http://v4-alpha.getbootstrap.com/components/utilities/#clearfix

but did not work.

basicly want empty line separate divs.

e.g.:

<div class="col-md-12">     <button type="button" ng-show="versions" class="btn">       copy link<i class="fa-link"></i>     </button> </div> <div class="clearfix"></div> <div class="col-md-12">     <button type="button" ng-show="versions" class="btn">       copy link<i class="fa-link"></i>     </button> </div> 

any suggestions?

thanks

just use bottom margin...that's it's for.

.col-md-12 {     margin-bottom:1em; } 

.col-md-12 {    margin-bottom: 1em;  }
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" />  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" rel="stylesheet" />  <div class="col-md-12">    <button type="button" ng-show="versions" class="btn">      copy link<i class="fa fa-link"></i>    </button>  </div>  <div class="clearfix"></div>  <div class="col-md-12">    <button type="button" ng-show="versions" class="btn">      copy link<i class="fa fa-link"></i>    </button>  </div>


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -