Bootstrap three column three row with third column spanned height - html

I'm attempting to achieve the layout below using col-lg-4.
I just need to know how I can make the third column span all three rows and without creating enormous gaps of whitespace between the rows. Here's what it's currently looking like:
Is this possible to do in Bootstrap (without using the Bootstrap 2 span classes)?
Here's the code (generalized)
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid">
<div class="row-fluid">
<div class="col-lg-4">
Praesent laoreet purus in elementum.
</div>
<div class="col-lg-4">
Praesent laoreet purus in elementum.
</div>
<div class="col-lg-4">
<!-- THIS NEEDS TO ROW SPAN -->
<p>Praesent posuere egestas sagittis. Sed feugiat nibh urna, egestas elementum ipsum facilisis et. Nullam elit nisi, tincidunt a turpis ac, fringilla pellentesque nibh. Suspendisse pulvinar orci sit amet metus laoreet, sed tincidunt quam semper. Vestibulum
ac nunc a justo vulputate venenatis vel sit amet augue. Vestibulum eu hendrerit sem. Aenean nec tempus ipsum. Integer nec lectus varius, venenatis orci vitae, efficitur mi. Curabitur at consectetur leo, sit amet consectetur nisi. Nam nec eros
facilisis, aliquam sem molestie, auctor elit. Vivamus quis hendrerit justo, vel molestie ligula.</p>
<p>Morbi leo magna, sollicitudin a sem ac, finibus facilisis ex. Nam ut enim commodo, venenatis augue nec, consectetur velit. Sed lobortis vitae lacus at pulvinar. Aliquam vel enim tristique, lacinia nibh ut, porta dui. Fusce efficitur volutpat lectus
maximus iaculis. Proin purus odio, auctor id sollicitudin nec, lacinia vel ligula. Sed luctus ipsum non sem tincidunt mollis.</p>
<p>Pellentesque congue mauris non tempor tincidunt. Phasellus pretium at lorem ut auctor. Donec rhoncus, nibh vitae aliquam tristique, leo quam elementum nisl, at porttitor massa diam venenatis diam. Suspendisse potenti. Sed gravida, mauris nec rhoncus
feugiat, augue velit facilisis mauris, et dapibus nisl augue non nunc. Nunc pretium quam eget tincidunt sollicitudin. Etiam maximus metus eget accumsan efficitur. Fusce a lorem vitae libero blandit condimentum.</p>
</div>
<div class="col-lg-4">
Praesent laoreet purus in elementum.
</div>
<div class="col-lg-4">
Praesent laoreet purus in elementum.
</div>
<div class="col-lg-4">
Praesent laoreet purus in elementum.
</div>
</div>
</div>

You need to use nested col-s, in this case, use col-lg-8 + col-lg-4
and inside col-lg-8 you create nested cols using row
added col-xs-* for demo.
[class*="col-"] {
border: red dashed 1px
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid">
<div class="row">
<div class="col-xs-8 col-lg-8">
<div class="row">
<div class="col-xs-6 col-lg-6">
Praesent laoreet purus in elementum.
</div>
<div class="col-xs-6 col-lg-6">
Praesent laoreet purus in elementum.
</div>
</div>
<div class="row">
<div class="col-xs-6 col-lg-6">
Praesent laoreet purus in elementum.
</div>
<div class="col-xs-6 col-lg-6">
Praesent laoreet purus in elementum.
</div>
</div>
<div class="row">
<div class="col-xs-6 col-lg-6">
Praesent laoreet purus in elementum.
</div>
<div class="col-xs-6 col-lg-6">
Praesent laoreet purus in elementum.
</div>
</div>
</div>
<div class="col-xs-4 col-lg-4">
Praesent laoreet purus in elementum.Praesent laoreet purus in elementum.Praesent laoreet purus in elementum. Praesent
</div>
</div>
</div>

Related

Sticky DIV stays at the bottom on scroll but does not overlap footer

I have a page with 5 divs and a footer. I want for one DIV to be stickied at the bottom of a screen while a user scrolls. I had half achieved this with fixed bottom but then it would overlap the footer. Another thing I tried was to have the footer with a higher z-index but I'd prefer the sticky DIV to not go behind the footer. Eg. If I scroll down and my sticky div is at the bottom of the screen and I reach the footer, it will dock touching the top of the footer until I scroll back up in which case it would follow me back up the page but always stay at the bottom of the screen
http://jsfiddle.net/aq9Laaew/194890/
<!--
Bootstrap docs: https://getbootstrap.com/docs
-->
<div class="container">
<div class="row">
<div class="col">
One
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras auctor mollis mi id molestie. Quisque id commodo lectus. Morbi lacus arcu, venenatis eu faucibus at, fermentum eu massa. Praesent non mauris mattis nisl maximus luctus quis a ex. Nullam rutrum bibendum bibendum. Sed felis ligula, placerat vitae lacus et, eleifend porta velit. In hac habitasse platea dictumst. Vivamus pharetra, tellus id rutrum accumsan, neque urna tincidunt sapien, in faucibus tortor enim sed purus. Curabitur posuere venenatis purus, tincidunt placerat tellus pretium ac. Mauris elementum nulla id velit fringilla luctus.
Curabitur dolor nulla, feugiat a enim id, eleifend ullamcorper augue. Curabitur sit amet neque ultrices, ornare risus id, aliquam augue. Curabitur finibus vestibulum enim nec feugiat. Nulla ac mauris ultricies, laoreet risus ut, rutrum sapien. Pellentesque sed suscipit magna. Ut vel metus at turpis semper rutrum non ut ante. Nunc venenatis nisl odio, ac eleifend ligula lacinia dictum. Sed laoreet luctus arcu, ut mattis orci facilisis a. Pellentesque sollicitudin nulla non augue semper ullamcorper. Nam nec rutrum diam. Sed purus ex, dignissim mollis mauris ut, dignissim posuere libero. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris vel euismod urna, a sodales libero. Phasellus risus orci, scelerisque sit amet nulla eu, pharetra eleifend augue.
Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin bibendum mauris ornare mi porta, sit amet mattis dolor fringilla. Nunc convallis felis odio, id dapibus enim dapibus non. Nam eleifend, turpis eget tincidunt mollis, justo eros lacinia purus, quis tempor ligula purus ac velit. Proin blandit nec nulla et sollicitudin. In quis turpis ante. Nullam elementum et enim blandit venenatis. Aliquam tristique tortor non neque lacinia venenatis malesuada sit amet nisi. Etiam congue suscipit quam at laoreet. Maecenas purus lectus, maximus at luctus aliquam, consequat nec justo. Morbi libero libero, ornare sed mattis vel, consequat id lorem. Morbi pulvinar, neque eu tempus euismod, ipsum massa congue felis, et consectetur dui quam nec tortor. Donec neque nunc, sodales vel nibh sit amet, finibus tempus nibh. Quisque euismod dignissim quam, nec tempus dolor tristique nec. Nulla eget justo pulvinar, rutrum quam non, consequat mauris. </div>
</div>
<div class="row">
<div class="col">
This DIV Sticks BECAUSE IMPORTANT INFO GOES HERE </div>
</div>
<div class="row">
<div class="col">
Three
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras auctor mollis mi id molestie. Quisque id commodo lectus. Morbi lacus arcu, venenatis eu faucibus at, fermentum eu massa. Praesent non mauris mattis nisl maximus luctus quis a ex. Nullam rutrum bibendum bibendum. Sed felis ligula, placerat vitae lacus et, eleifend porta velit. In hac habitasse platea dictumst. Vivamus pharetra, tellus id rutrum accumsan, neque urna tincidunt sapien, in faucibus tortor enim sed purus. Curabitur posuere venenatis purus, tincidunt placerat tellus pretium ac. Mauris elementum nulla id velit fringilla luctus.</div>
</div>
<div class="row">
<div class="col">
Four
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras auctor mollis mi id molestie. Quisque id commodo lectus. Morbi lacus arcu, venenatis eu faucibus at, fermentum eu massa. Praesent non mauris mattis nisl maximus luctus quis a ex. Nullam rutrum bibendum bibendum. Sed felis ligula, placerat vitae lacus et, eleifend porta velit. In hac habitasse platea dictumst. Vivamus pharetra, tellus id rutrum accumsan, neque urna tincidunt sapien, in faucibus tortor enim sed purus. Curabitur posuere venenatis purus, tincidunt placerat tellus pretium ac. Mauris elementum nulla id velit fringilla luctus.</div>
</div>
<div class="row">
<div class="col">
Five </div>
</div>
</div>
<!-- Footer -->
<footer class="page-footer font-small blue pt-4" style="background-color:orange;">
<!-- Footer Links -->
<div class="container-fluid text-center text-md-left">
<!-- Grid row -->
<div class="row">
<!-- Grid column -->
<div class="col-md-6 mt-md-0 mt-3">
<!-- Content -->
<h5 class="text-uppercase">Footer Content</h5>
<p>Here you can use rows and columns here to organize your footer content.</p>
</div>
<!-- Grid column -->
<hr class="clearfix w-100 d-md-none pb-3">
<!-- Grid column -->
<div class="col-md-3 mb-md-0 mb-3" >
<!-- Links -->
<h5 class="text-uppercase">Links</h5>
<ul class="list-unstyled">
<li>
Link 1
</li>
<li>
Link 2
</li>
<li>
Link 3
</li>
<li>
Link 4
</li>
</ul>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-3 mb-md-0 mb-3">
<!-- Links -->
<h5 class="text-uppercase">Links</h5>
<ul class="list-unstyled">
<li>
Link 1
</li>
<li>
Link 2
</li>
<li>
Link 3
</li>
<li>
Link 4
</li>
</ul>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
<!-- Footer Links -->
<!-- Copyright -->
<div class="footer-copyright text-center py-3">© 2018 Copyright:
MDBootstrap.com
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
You will need to use Javascript to achieve this functionality on your website. Please see this question which outlines what you need to do to achieve:
'Fixed div that stops at footer'
Make sticky/fixed element stop at footer

Text only floats left one line next to image

Deleted all the extra stuff, all I want is the row to float left so there is some text next to the image, but it only moves over one line. Using bootstrap if that helps, along with my own CSS file.
example
<!--main body container -->
<div class="container">
<div class="col-sm-6">
<div class="row">
<h1>About Me</h1>
</div>
<div id="bio" class="row">
<img src= "assets/images/linkedin-logo.png" alt="default photo">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam dapibus orci nisl, ut maximus eros congue commodo. Vivamus fermentum dictum erat. Fusce feugiat maximus nulla, eget scelerisque eros sodales vel. Ut vehicula velit nisl, et tempor justo blandit in. Morbi a elit eleifend, efficitur felis sed, pellentesque risus. Praesent quis ante et massa vehicula efficitur. Cras id tortor et elit ornare bibendum non non arcu. Sed lectus enim, consectetur eget pretium in, tempus et quam. Suspendisse elementum porttitor elementum. Donec egestas lectus gravida risus convallis consectetur.
</div>
</div>
<!--Main Container End-->
</div>
css code:
#bio {
float: left;
}
Float your image to the left
#bio img {
float: left;
}
Example: https://jsfiddle.net/L75dhtny/
you can try this one:
<!--main body container -->
<div class="container">
<div class="col-sm-6">
<div class="row">
<h1>About Me</h1>
</div>
<div id="bio" class="row">
<img src= "assets/images/linkedin-logo.png" alt="default photo">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> Etiam dapibus orci nisl, ut maximus eros congue commodo. Vivamus fermentum dictum erat. Fusce feugiat maximus nulla, eget scelerisque eros sodales vel. Ut vehicula velit nisl, et tempor justo blandit in. Morbi a elit eleifend, efficitur felis sed, pellentesque risus. Praesent quis ante et massa vehicula efficitur. Cras id tortor et elit ornare bibendum non non arcu. Sed lectus enim, consectetur eget pretium in, tempus et quam. Suspendisse elementum porttitor elementum. Donec egestas lectus gravida risus convallis consectetur.
</div>
</div>
<!--Main Container End-->
</div>
DEMO HERE
You can try this -
/* css code */
img {
float: left;
padding:2px;
margin-right:4px;
}
<!--main body container -->
<div class="container">
<div class="col-sm-6">
<div class="row">
<h1>About Me</h1>
</div>
<div id="bio" class="row">
<img src="http://placehold.it/350x150">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam dapibus orci nisl, ut maximus eros congue commodo. Vivamus fermentum dictum erat. Fusce feugiat maximus nulla, eget scelerisque eros sodales vel. Ut vehicula velit nisl, et tempor justo blandit in. Morbi a elit eleifend, efficitur felis sed, pellentesque risus. Praesent quis ante et massa vehicula efficitur. Cras id tortor et elit ornare bibendum non non arcu. Sed lectus enim, consectetur eget pretium in, tempus et quam. Suspendisse elementum porttitor elementum. Donec egestas lectus gravida risus convallis consectetur.
</div>
</div>
<!--Main Container End-->
</div>
Add
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

Why are these Bootstrap 3 centered text columns not equally top aligned?

I'm trying to get a layout of Bootstrap columns of text and images to be centered, but I have a strange issue with text columns. They are all centered, but column 2 always drops down:
I've been parsing all the SO questions about fully centering content in Bootstap 3, but am flummoxed. And I don't want to use Flex or Flexbox; I need the backward compatibility for old browsers.
Codepen: http://codepen.io/anon/pen/qqQWwb
<div class="row centered">
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /></div>
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /></div>
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /></div>
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /></div>
</div>
<div class="row centered">
<div class="col-md-4 col-xs-5">
<h2 class="headline">Column 1</h2>
<p>Nullam nulla risus, lobortis sollicitudin scelerisque quis, varius ac quam. Maecenas condimentum, erat nec dapibus luctus, velit nulla suscipit elit, ac vulputate nulla nulla in elit. Integer nisi purus, faucibus aliquam scelerisque ac, convallis semper ante. Maecenas et nunc eu mi fringilla mattis. Duis commodo, metus eget egestas scelerisque, velit orci malesuada magna, malesuada rhoncus nisi nisl non lorem. Vestibulum ullamcorper nisl at nunc molestie condimentum. Etiam elementum dignissim tincidunt. Donec feugiat tristique est non cursus. Phasellus consequat congue quam ac dictum.</p>
<p>Nullam nulla risus, lobortis sollicitudin scelerisque quis, varius ac quam. Maecenas condimentum, erat nec dapibus luctus, velit nulla suscipit elit, ac vulputate nulla nulla in elit. Integer nisi purus, faucibus aliquam scelerisque ac, convallis semper ante. Maecenas et nunc eu mi fringilla mattis. Duis commodo, metus eget egestas scelerisque, velit orci malesuada magna, malesuada rhoncus nisi nisl non lorem. Vestibulum ullamcorper nisl at nunc molestie condimentum. Etiam elementum dignissim tincidunt. Donec feugiat tristique est non cursus. Phasellus consequat congue quam ac dictum.</p>
</div>
<div class="col-md-4 col-xs-5">
<h2 class="headline">Column 2</h2>
<p>Nullam nulla risus, lobortis sollicitudin scelerisque quis, varius ac quam. Maecenas condimentum, erat nec dapibus luctus, velit nulla suscipit elit, ac vulputate nulla nulla in elit. Integer nisi purus, faucibus aliquam scelerisque ac, convallis semper ante. Maecenas et nunc eu mi fringilla mattis. Duis commodo, metus eget egestas scelerisque, velit orci malesuada magna, malesuada rhoncus nisi nisl non lorem. Vestibulum ullamcorper nisl at nunc molestie condimentum. Etiam elementum dignissim tincidunt. Donec feugiat tristique est non cursus. Phasellus consequat congue quam ac dictum.</p>
</div>
</div>
Give vertical-align: top to col-md-4 col-xs-5 div (in my case I've given it a class named .col-structure), like:
.col-structure {
vertical-align: top;
}
Have a look at the snippet below (view full screen):
.col-structure {
vertical-align: top;
}
.centered {
text-align: center;
}
.centered img {padding:20px;}
.centered > div {
float: none;
display: inline-block;
}
.vcenter {
display: inline-block;
vertical-align: middle;
float: none;
}
p {text-align: left;}
h2.headline {text-align: center;}
img {max-width:20%}
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid">
<div class="row centered">
<div class="col-md-2 col-xs-5">
<h2 class="headline">headline:</h2> </div>
</div>
<div class="row centered">
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /> </div>
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /> </div>
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /> </div>
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /> </div>
</div>
<div class="row centered">
<div class="col-md-4 col-xs-5 col-structure">
<h2 class="headline">Column 1</h2>
<p>Nullam nulla risus, lobortis sollicitudin scelerisque quis, varius ac quam. Maecenas condimentum, erat nec dapibus luctus, velit nulla suscipit elit, ac vulputate nulla nulla in elit. Integer nisi purus, faucibus aliquam scelerisque ac, convallis semper ante. Maecenas et nunc eu mi fringilla mattis. Duis commodo, metus eget egestas scelerisque, velit orci malesuada magna, malesuada rhoncus nisi nisl non lorem. Vestibulum ullamcorper nisl at nunc molestie condimentum. Etiam elementum dignissim tincidunt. Donec feugiat tristique est non cursus. Phasellus consequat congue quam ac dictum.</p>
<p>Nullam nulla risus, lobortis sollicitudin scelerisque quis, varius ac quam. Maecenas condimentum, erat nec dapibus luctus, velit nulla suscipit elit, ac vulputate nulla nulla in elit. Integer nisi purus, faucibus aliquam scelerisque ac, convallis semper ante. Maecenas et nunc eu mi fringilla mattis. Duis commodo, metus eget egestas scelerisque, velit orci malesuada magna, malesuada rhoncus nisi nisl non lorem. Vestibulum ullamcorper nisl at nunc molestie condimentum. Etiam elementum dignissim tincidunt. Donec feugiat tristique est non cursus. Phasellus consequat congue quam ac dictum.</p>
</div>
<div class="col-md-4 col-xs-5 col-structure">
<h2 class="headline">Column 2</h2>
<p>Nullam nulla risus, lobortis sollicitudin scelerisque quis, varius ac quam. Maecenas condimentum, erat nec dapibus luctus, velit nulla suscipit elit, ac vulputate nulla nulla in elit. Integer nisi purus, faucibus aliquam scelerisque ac, convallis semper ante. Maecenas et nunc eu mi fringilla mattis. Duis commodo, metus eget egestas scelerisque, velit orci malesuada magna, malesuada rhoncus nisi nisl non lorem. Vestibulum ullamcorper nisl at nunc molestie condimentum. Etiam elementum dignissim tincidunt. Donec feugiat tristique est non cursus. Phasellus consequat congue quam ac dictum.</p>
</div>
</div>
<div class="row centered">
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /> </div>
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /> </div>
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /> </div>
<div class="col-md-2 col-xs-5"><img class="img-responsive vcenter" src="http://i.imgur.com/1olmVpO.jpg" /> </div>
</div>
<div class="row centered">
<div class="col-md-2 col-xs-5">
<h2 class="headline">headline:</h2> </div>
</div>
<div class="row centered">
<div class="col-md-4 col-xs-5 col-structure">
<h2 class="headline">Column 1</h2>
<p>Nullam nulla risus, lobortis sollicitudin scelerisque quis, varius ac quam. Maecenas condimentum, erat nec dapibus luctus, velit nulla suscipit elit, ac vulputate nulla nulla in elit. Integer nisi purus, faucibus aliquam scelerisque ac, conva llis semper ante. Maecenas et nunc eu mi fringilla mattis. Duis commodo, metus eget egestas scelerisque, velit orci malesuada magna, malesuada rhoncus nisi nisl non lorem. Vestibulum ullamcorper nisl at nunc molestie condimentum. Etiam elementum dignissim tincidunt. Donec feugiat tristique est non cursus. Phasellus consequat congue quam ac dictum.</p>
<p>Nullam nulla risus, lobortis sollicitudin scelerisque quis, varius ac quam. Maecenas condimentum, erat nec dapibus luctus, velit nulla suscipit elit, ac vulputate nulla nulla in elit. Integer nisi purus, faucibus aliquam scelerisque ac, convallis semper ante. Maecenas et nunc eu mi fringilla mattis. Duis commodo, metus eget egestas scelerisque, velit orci malesuada magna, malesuada rhoncus nisi nisl non lorem. Vestibulum ullamcorper nisl at nunc molestie condimentum. Etiam elementum dignissim tincidunt. Donec feugiat tristique est non cursus. Phasellus consequat congue quam ac dictum.</p>
</div>
<div class="col-md-4 col-xs-5 col-structure">
<h2 class="headline">Column 2</h2>
<p>Nullam nulla risus, lobortis sollicitudin scelerisque quis, varius ac quam. Maecenas condimentum, erat nec dapibus luctus, velit nulla suscipit elit, ac vulputate nulla nulla in elit. Integer nisi purus, faucibus aliquam scelerisque ac, convallis semper ante. Maecenas et nunc eu mi fringilla mattis. Duis commodo, metus eget egestas scelerisque, velit orci malesuada magna, malesuada rhoncus nisi nisl non lorem. Vestibulum ullamcorper nisl at nunc molestie condimentum. Etiam elementum dignissim tincidunt. Donec feugiat tristique est non cursus. Phasellus consequat congue quam ac dictum.</p>
</div>
</div>
</div>
Hope this helps!

Bootstrap 3 Panel 100% height inside column

I have simple 3 column layout with bootstrap. Each column inside has a panel.
My is goal that each panel has 100% height of it's parent and that all of the columns are same height (solved using display: flex). I tried with display table and relative/absolute positioning but nothing came up with desired result. I'd like to avoid fixed values e.g. height: 300px etc.
Thanks!
.row-eq-height {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
/* Doesn't work */
/*
.col-sm-4 {
position: relative;
}
.panel-default {
height: 100%;
position: absolute;
}
*/
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<div class="container">
<div class="row row-eq-height">
<div class="col-sm-4" style="background: red">
<div class="panel panel-default">
<div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi tristique gravida ligula. Aliquam erat volutpat. Fusce quam erat, porttitor ac ante sed, tempus fringilla nisl. Phasellus sit amet orci volutpat, hendrerit metus vitae, dapibus nunc.
Phasellus eros mauris, iaculis quis massa vel, dictum sagittis mauris. Donec egestas sem venenatis vehicula facilisis. Mauris in ultrices augue. Etiam eros libero, malesuada nec luctus quis, aliquam nec massa. Fusce vitae hendrerit nibh, eget
hendrerit mauris. Aliquam quis sem ipsum. Phasellus aliquet rhoncus tellus ac imperdiet. Sed nec lacus at erat elementum efficitur vel in magna. Vestibulum ac enim id ligula iaculis ultricies at facilisis lorem. Nullam lobortis ultrices felis</div>
</div>
</div>
<div class="col-sm-4" style="background: green">
<div class="panel panel-default">
<div class="panel-body">Col 2</div>
</div>
</div>
<div class="col-sm-4" style="background: blue">
<div class="panel panel-default">
<div class="panel-body">Nullam nec ex metus. Curabitur mollis sem vitae augue ultrices ornare. Phasellus efficitur viverra turpis, nec scelerisque purus rutrum vel. Ut pellentesque congue tincidunt. Nulla et nulla velit. Quisque pellentesque mi ac metus faucibus pretium.
Duis sit amet vestibulum dolor.
</div>
</div>
</div>
</div>
</div>
This can solve the problem and avoid using fixed values e.g. height: 300px.
.row-eq-height, .row-eq-height > div[class*='col-'] {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
flex:1 1 auto;
}
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<div class="container">
<div class="row row-eq-height">
<div class="col-sm-4" style="background: red">
<div class="panel panel-default">
<div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi tristique gravida ligula. Aliquam erat volutpat. Fusce quam erat, porttitor ac ante sed, tempus fringilla nisl. Phasellus sit amet orci volutpat, hendrerit metus vitae, dapibus nunc.
Phasellus eros mauris, iaculis quis massa vel, dictum sagittis mauris. Donec egestas sem venenatis vehicula facilisis. Mauris in ultrices augue. Etiam eros libero, malesuada nec luctus quis, aliquam nec massa. Fusce vitae hendrerit nibh, eget
hendrerit mauris. Aliquam quis sem ipsum. Phasellus aliquet rhoncus tellus ac imperdiet. Sed nec lacus at erat elementum efficitur vel in magna. Vestibulum ac enim id ligula iaculis ultricies at facilisis lorem. Nullam lobortis ultrices felis</div>
</div>
</div>
<div class="col-sm-4" style="background: green">
<div class="panel panel-default">
<div class="panel-body">Col 2</div>
</div>
</div>
<div class="col-sm-4" style="background: blue">
<div class="panel panel-default">
<div class="panel-body">Nullam nec ex metus. Curabitur mollis sem vitae augue ultrices ornare. Phasellus efficitur viverra turpis, nec scelerisque purus rutrum vel. Ut pellentesque congue tincidunt. Nulla et nulla velit. Quisque pellentesque mi ac metus faucibus pretium.
Duis sit amet vestibulum dolor.
</div>
</div>
</div>
</div>
</div>
Fiddle
Side Note: Flex has limited browser support especially on mobile devices.

Bootstrap not formatting for mobile

So I am trying to teach myself how to use bootstrap and for some reason I can not get the website to format correctly when displaying on a mobile device. The website is formatting correctly when the browser is resized but not when emulating a mobile device.
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="bootstrap.min.css" rel="stylesheet" >
</head>
<body>
<div class="container-fluid">
<h1>HERE IS WHERE THE CONTAINER IS. </h1>
<div class="row-fluid">
<div class="col-lg-4 col-md-4 col-sm-4">
<h2>Paragraph 1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rutrum leo ut posuere suscipit. Suspendisse sed ex venenatis, tempus quam sit amet, porta sapien. Maecenas in nibh leo. In elementum eleifend odio, id pellentesque justo. Cras vitae placerat mauris. Aliquam erat volutpat. Integer faucibus eget nulla eget mollis. Pellentesque interdum vitae purus ut venenatis. Fusce hendrerit ultricies dignissim.</p>
</div><!--col-lg-4 col-md-4 col-sm-4-->
<div class="col-lg-4 col-md-4 col-sm-4">
<h2>Paragraph 2</h2>
<p>Duis elementum quam sit amet ante imperdiet, id bibendum nunc finibus. Donec et semper quam, et tempus tellus. Nullam quis nisl eu sem sodales consectetur. Donec ornare urna elit, in euismod leo feugiat eget. In eu placerat tellus. Nullam et tristique purus. Sed ut accumsan ipsum, nec semper mauris.</p>
</div><!--col-lg-4 col-md-4 col-sm-4-->
<div class="col-lg-4 col-md-4 col-sm-4">
<h2>Paragraph 3</h2>
<p>Mauris euismod massa a gravida posuere. Etiam placerat euismod est. Nam sed scelerisque elit. Mauris id ultrices enim. Nulla eu justo eget tellus vestibulum lacinia non eu augue. Maecenas porta purus vitae vehicula mattis. Nam auctor euismod ornare. Morbi eleifend luctus varius. Sed non nisl porta, vehicula elit sed, rhoncus felis. Aliquam ac elementum nunc. Integer blandit porta nisi, et venenatis nibh. Donec velit lorem, aliquet vel lorem in, efficitur tempus leo. Nulla facilisi. Nam vel malesuada mauris. Vivamus leo libero, finibus ut justo eget, tristique lobortis lectus. Etiam luctus urna eget leo lobortis blandit.</p>
</div><!--col-lg-4 col-md-4 col-sm-4-->
</div><!--row-->
</div><!--container-->
</body>
</html>
I have been unable to figure out why this would be. Any help would be appreciated.
It looks like your using Bootstrap 2 here, take a look at this tutorial on configuring Bootstrap 3 to work on mobile devices.