"Responsive Auto Height by Row"
Bootstrap 3.3.0 Snippet by SOJITRA

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="info-section">
<div class="container responsive-height">
<h2 class="col-xs-12">Simple Auto height by row</h2>
<div class="col-md-3 col-sm-6">
<div class="info">
<div class="col-md-5">
<div class="img-cont">
<img src="https://dummyimage.com/600x400/F5F5F5/555" class="img-responsive center-block">
</div>
</div>
<div class="col-md-7">
<div class="text-cont">
<h4>Center Quiz</h4>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="info">
<div class="col-md-5">
<div class="img-cont">
<img src="https://dummyimage.com/700x400/F5F5F5/555" class="img-responsive center-block">
</div>
</div>
<div class="col-md-7">
<div class="text-cont">
<h4>Center Quiz</h4>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.info-section{
}
.info-section .info{
}
.info-section .info .img-cont{
position: relative;
margin-top: 10px;
z-index: 0;
}
.info-section .info .img-cont:after,
.info-section .info .img-cont:before{
position: absolute;
content: '';
top: 0px;
left: 0px;
width: 100%;
height: 100%;
border-radius: 50%;
background: rgba(255,255,255,0.5);
z-index: -1;
}
.info-section .info .img-cont:after{
top: 5px;
left: 5px;
width: calc(100% - 10px);
height: calc(100% - 10px);
}
.info-section .info .img-cont img{
z-index: 3;
}
.info-section .info .text-cont{
}
.info-section .info .text-cont h4{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//This is library code, don't change it.///
//Custom code is at end of the file...////
////Please scroll down...///
/**
* jquery-match-height 0.7.2 by @liabru
* http://brm.io/jquery-match-height/
* License: MIT
*/
;(function(factory) { // eslint-disable-line no-extra-semi
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD
define(['jquery'], factory);
} else if (typeof module !== 'undefined' && module.exports) {
// CommonJS
module.exports = factory(require('jquery'));
} else {
// Global
factory(jQuery);
}
})(function($) {
/*
* internal
*/
var _previousResizeWidth = -1,
_updateTimeout = -1;
/*
* _parse
* value parse utility function
*/
var _parse = function(value) {
// parse value and convert NaN to 0
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: