html - Bootstrap CSS button fixed position after text -


i trying set cards information in columns. texts displayed have different lenghts, want fixed possition of learn more button related end of card, no matter comes before, buttons aligned.

furthermore, want separate cards between rows, haven't been able find solution yet, because if change margins applies in last row.

here code:

<div class="row my-flex-card">     <div class= "col-xs-4 col-sm-4 col-md-4 col-lg-4" ng-repeat="woman in women">         <!--card-->           <div class="card">               <!--card image-->               <img class="img-fluid" ng-src="{{woman.image_url}}" alt="{{woman.name}}">               <!--card content-->               <div class="card-body inline-block">                   <!--title-->                   <h4 class="card-title">{{woman.name}}</h4>                   <!--text-->                   <p class="card-text"> <h5>{{woman.field}}</h5> <br> {{woman.job}}</p>                   <a class="btn btn-success" href="#!/women/details/{{woman._id}}">learn more</a>               </div>            </div>            <!--/.card-->     </div>   </div> 

my css:

.my-flex-card > div > div.card {   height: calc(100% - 15px);   margin-bottom: 15px; }  .row {   margin-bottom: 50px; } 

that .row feature isn't working.

this how website looks right now: i need rows more separated , learn more buttons alligned

thank :)

.parent {    display: flex;    flex-direction: row;    padding: 10px;  }  .parent .child {    padding-right: 10px;    flex-grow: 1;    width: 33%;    position:relative;  }  .parent .child .content {    height: 100%;    box-shadow: 0 0 1em gray;  }  .content img{   background-size:cover;   width:100%;  }  .content h3,p{  padding:10px;  }  .content input{  position:absolute;  bottom:5px;  margin-left: 35%;  margin-top:10px;  }
<div class="parent">    <div class="child">      <div class="content">        <div>          <img  src="https://www.w3schools.com/html/pic_mountain.jpg"/>          <h3> test 3</h3>          <p>text text text text text text text text text text text text text text text text text text text</p>            </div>           <div><input type="button" value="click" /></div>         </div>      </div>    <div class="child">      <div class="content">           <div>           <img  src="https://www.w3schools.com/html/pic_mountain.jpg"/>           <h3> test 2</h3>           <p>text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text tex </p>          </div>           <div><input type="button" value="click" /></div>        </div>   </div>    <div class="child">      <div class="content">         <div>           <img src="https://www.w3schools.com/html/pic_mountain.jpg"/>           <h3> test 1</h3>           <p>text text  text text text text text text text text text text tex</p>           </div>         <div><input type="button" value="click" /></div>       </div>    </div>  </div>


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -