Card Layout

by Digvijay Naruka

HTML

<section id="services" class="services">
		<div class="wrapper">
			<div class= "title">
				<h2>Services</h2>
				<p>Description</p>
			</div>
			<div class="service-row">
				<div class="service card">
					<div class="s-img">
						<img src="http://localhost/sbdc/wp-content/uploads/2017/09/Hire-Sales-and-Business-Development-for-Startup.jpg"/>
					</div>
					<div class="card-description">
						<h4><a href="business_development.html">Business Development</a></h4>
						<p>The ASU SBDC is committed to providing quality service, technology transfer, training and other services useful in the business person’s daily decision making processes. 
						</p>
						
					</div>
				</div>

				<div class="service card">
					<div class="s-img">
						<img src="http://localhost/sbdc/wp-content/uploads/2017/09/Hire-Sales-and-Business-Development-for-Startup.jpg"/>
					</div>
					<div class="card-description">
						<h4><a href="business_development.html">Business Financing</a></h4>
						<p>Assistance for a variety of SBA loans. By understanding the process and what to expect, it is helpful to know what factors https://jsfiddle.net/#runinfluence the decision of a lender when your application is reviewed
						</p>
					</div>
				</div>
        <div class="service card">
					<div class="s-img">
						<img src="http://localhost/sbdc/wp-content/uploads/2017/09/Hire-Sales-and-Business-Development-for-Startup.jpg"/>
					</div>
					<div class="card-description">
						<h4><a href="business_development.html">Business Financing</a></h4>
						<p>Assistance for a variety of SBA loans. By understanding the process and what to expect, it is helpful to know what factors influence the decision of a lender when your application is reviewed
						</p>
					</div>
				</div>
        </div>
        </div>

CSS

.services {
	padding: 10px 0 50px;
	text-align: center; 
	background: #EEEEEE;
}

.services:after {
  content: "";
  display: table;
  clear: both;
}
.title h2 {
	font-size: 28px;
	font-weight: normal;
	font-family: 'Roboto', sans-serif;
	color: #555;
	text-align: center;
	line-height: 35px;
}

.title h2:after {
	content: '';
	display: block;
	/*background: #3498db;*/
	background: #f1d204;
	width: 78px;
	height: 3px;
	margin: 20px auto 0;
}

.title p {
	max-width: 730px;
	margin: 0 auto;
	line-height: 30px;
	font-size: 16px;
	padding: 8px 0 0px;
	font-weight: normal;
	color: #777;
	font-family: 'Roboto', sans-serif;
}

.service-row{
	/*For card*/
	flex-wrap: wrap;
	display: flex;
  margin: auto;
  max-width: 1300px;
}
.service-row:after {
	content: '';
	display: block;
	clear: both;
}

.service {
	width: 30.33%;
    float: left;
    /*box-sizing: border-box;*/

}
.card {
    /* Add shadows to create the "card" effect */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    //box-shadow: 1px 1px 3px #888;
    background: #fff;
    transition: 0.3s;
    min-width: 300px;
    max-width: 400px;
	border: 1px solid gray;
	border-top: 10px solid #f1d204;;
	min-height: 250px;
  margin: 0 auto;  

}

/* On mouse-over, add a deeper shadow */
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.service:after{
	content: ''
	display: table-row;
	clear: both;
}
.service:nth-of-type(4) {
    clear: both;
}

.service:hover .s-img img {
	opacity: 0.5;
	padding-top: 6px;
}

.service:hover h4 a {
	//color: #3498db;
  color: #f1d204;
}

.service .s-img {

	margin: 0 auto;
	padding: 5px 0;
	overflow: hidden;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    line-height: 0;
}

.service .s-img img {
	  	width: 90%;
	height: 200px;
	-webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s...