<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 ---------->
<section class="container-fluid" id="services">
<div class="row">
<div class="col-md-12 col-xs-12 col-col-sm-6" >
<h1 class="text-center">Services</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-3 panel-col-1">
<div class="panel panel-default">
<div class="panel-heading text-center">
<img src="http://img15.hostingpics.net/pics/7002271101.png"></img>
<h3>Service One</h3>
</div>
<div class="panel-body">
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p><p> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 panel-col-2">
<div class="panel panel-default">
<div class="panel-heading text-center">
<img src="http://img15.hostingpics.net/pics/3203814203.png"></img>
<h3>Service Two</h3>
</div>
<div class="panel-body">
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p><p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 panel-col-3">
<div class="panel panel-default">
<div class="panel-heading text-center">
<img src="http://img15.hostingpics.net/pics/2212307904.png"></img>
<h3>Service Three</h3>
</div>
<div class="panel-body">
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p><p> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 panel-col-4">
<div class="panel panel-default">
<div class="panel-heading text-center">
<img src="http://img4.hostingpics.net/pics/126831infogerance.png"></img>
<h3>Service Four</h3>
</div>
<div class="panel-body">
<p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p><p> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
</div>
</div>
</div>
</div>
</section><!--/container-->
@import url(https://fonts.googleapis.com/css?family=Spinnaker);
@import url(https://fonts.googleapis.com/css?family=Jura);
body
{
margin:24px;
}
h1
{
font-family: 'Jura';
padding-bottom:42px ;
font-size:62px;
color:#0e3863;
}
.panel,.panel-heading,.panel-default,.panel-body
{
border:none !important;
}
.panel
{
font-size:14px;
}
.panel *
{
color:#fff;
}
.panel-heading
{
font-family: 'Jura', Georgia, Times, serif;
padding-top:32px !important ;
}
.panel-body
{
padding-top:48px !important ;
font-family: 'Spinnaker';
font-size:14px;
text-justify:auto ;
}
/* Panel1*/
.panel-col-1 .panel-heading,.panel-col-1 .panel-body
{
background-color:#002A66 !important;
border-color:#002A66 !important;
}
/* Panel2*/
.panel-col-2 .panel-heading,.panel-col-2 .panel-body
{
background-color:#66002A !important;
border-color:#66002A !important;
}
/* Panel3*/
.panel-col-3 .panel-heading,.panel-col-3 .panel-body
{
background-color:#166600 !important;
border-color:#166600 !important;
}
/* Panel4*/
.panel-col-4 .panel-heading,.panel-col-4 .panel-body
{
background-color:#665000 !important;
border-color:#665000 !important;
}
.panel-col-1 .panel,
.panel-col-2 .panel,
.panel-col-3 .panel,
.panel-col-4 .panel
{
padding:20px !important;
-webkit-transition: all 0.7s ease !important;
-moz-transition: all 0.7s ease !important;
-o-transition: all 0.7s ease !important;
transition: all 0.7s ease !important;
}
.panel-col-1 .panel,
.panel-col-2 .panel,
.panel-col-3 .panel,
.panel-col-4 .panel
{
-webkit-box-shadow: -2px 6px 10px 3px rgba(0,0,0,0.45);
-moz-box-shadow: -2px 6px 10px 3px rgba(0,0,0,0.45);
box-shadow: -2px 6px 10px 3px rgba(0,0,0,0.45);
}
.panel-col-1 .panel:hover,
.panel-col-2 .panel:hover,
.panel-col-3 .panel:hover,
.panel-col-4 .panel:hover
{
-webkit-filter: saturate(2.5);
}
$(document).ready(function()
{
//-START PANNEL AUTOHEIGHT-//
$("#services").load(function(){
// Keep all pannel headers on the same height
var maxPannelHeight = Math.max.apply(null, $(".panel-heading").map(function ()
{
return $(this).height();
}).get());
$.each($('.panel-heading'),function(i,v)
{
$(v).css('height',maxPannelHeight);
});
var maxPannelHeight = Math.max.apply(null, $(".panel").map(function ()
{
return $(this).height();
}).get());
$.each($('.panel-body'),function(i,v)
{
$(v).css('height',maxPannelHeight+$(".panel-body").attribute("padding-top"));
});
});
//-END PANNEL AUTOHEIGHT-//
})