"grid card"
Bootstrap 3.0.0 Snippet by evarevirus

<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 ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/afzaalbutt/pen/YWNezM?limit=all&page=14&q=partial" /> <style class="cp-pen-styles">h1,h2,p{ margin: 0; } /*--Generic classes--*/ ::selection{ color: tomato; background: royalblue; } html { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 100%; -webkit-font-smoothing: antialiased !important; } *, *:before, *:after { -webkit-box-sizing: inherit; -moz-box-sizing: inherit; box-sizing: inherit; } ul{ list-style-type: none; padding: 0; margin: 0; } a{ text-decoration: none; color: inherit; -webkit-transition: all 0.2s ease; -moz-transition: all 0.2s ease; -o-transition: all 0.2s ease; transition: all 0.2s ease; } .container{ width: 1024px; margin: 0 auto; margin-top: 20px; } .flexbox{ display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */ display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */ display: -ms-flexbox; /* TWEENER - IE 10 */ display: -webkit-flex; /* NEW - Chrome */ display: -moz-flex; display: flex; -webkit-flex-flow: row wrap; flex-wrap: wrap; } .flexbox1{ justify-content: space-around; } .flexbox2{ justify-content: space-between; } .flexbox3{ justify-content: flex-end; } .flexbox4{ justify-content: center; } /*--Main Css--*/ body{ font-family: 'Open Sans', sans-serif; font-size: 16px; color: #fff; } .container:after{ content: ''; display: block; clear: both;} .col{ float: left; width: 33.33%; } .col li{ overflow: hidden; width: 100%; } .bg-one{ background: -webkit-linear-gradient(135deg, rgba(65,119,17,0.7),rgba(0,47,75,0.7)), url('http://www.admin-test.com/jade/images/bg-one.jpg') ; background: -moz-linear-gradient(135deg, rgba(65,119,17,0.7),rgba(0,47,75,0.7)), url('http://www.admin-test.com/jade/images/bg-one.jpg') ; background: -o-linear-gradient(135deg, rgba(65,119,17,0.7),rgba(0,47,75,0.7)), url('http://www.admin-test.com/jade/images/bg-one.jpg') ; background: linear-gradient(135deg, rgba(65,119,17,0.7),rgba(0,47,75,0.7)), url('http://www.admin-test.com/jade/images/bg-one.jpg') ; } .bg-one:hover{ background: -webkit-linear-gradient(135deg, rgba(65,119,17,0.85),rgba(0,47,75,0.85)), url('http://www.admin-test.com/jade/images/bg-one.jpg') ; background: -moz-linear-gradient(135deg, rgba(65,119,17,0.85),rgba(0,47,75,0.85)), url('http://www.admin-test.com/jade/images/bg-one.jpg') ; background: -o-linear-gradient(135deg, rgba(65,119,17,0.85),rgba(0,47,75,0.85)), url('http://www.admin-test.com/jade/images/bg-one.jpg') ; background: linear-gradient(135deg, rgba(65,119,17,0.85),rgba(0,47,75,0.85)), url('http://www.admin-test.com/jade/images/bg-one.jpg') ; } .bg-two{ background: -webkit-linear-gradient(135deg, rgba(26,41,128,0.5),rgba(38,208,206,0.85)), url('http://www.admin-test.com/jade/images/bg-two.jpg') ; background: -moz-linear-gradient(135deg, rgba(26,41,128,0.5),rgba(38,208,206,0.85)), url('http://www.admin-test.com/jade/images/bg-two.jpg') ; background: -o-linear-gradient(135deg, rgba(26,41,128,0.5),rgba(38,208,206,0.85)), url('http://www.admin-test.com/jade/images/bg-two.jpg') ; background: linear-gradient(135deg, rgba(26,41,128,0.5),rgba(38,208,206,0.85)), url('http://www.admin-test.com/jade/images/bg-two.jpg') ; } .bg-two:hover{ background: -webkit-linear-gradient(135deg, rgba(26,41,128,0.85),rgba(38,208,206,0.85)), url('http://www.admin-test.com/jade/images/bg-two.jpg') ; background: -moz-linear-gradient(135deg, rgba(26,41,128,0.85),rgba(38,208,206,0.85)), url('http://www.admin-test.com/jade/images/bg-two.jpg') ; background: -o-linear-gradient(135deg, rgba(26,41,128,0.85),rgba(38,208,206,0.85)), url('http://www.admin-test.com/jade/images/bg-two.jpg') ; background: linear-gradient(135deg, rgba(26,41,128,0.85),rgba(38,208,206,0.85)), url('http://www.admin-test.com/jade/images/bg-two.jpg') ; } .bg-three{ background: -webkit-linear-gradient(135deg, rgba(168,50,121,0.7),rgba(211,131,18,0.95)), url('http://www.admin-test.com/jade/images/bg-three.jpg') ; background: -moz-linear-gradient(135deg, rgba(168,50,121,0.7),rgba(211,131,18,0.95)), url('http://www.admin-test.com/jade/images/bg-three.jpg') ; background: -o-linear-gradient(135deg, rgba(168,50,121,0.7),rgba(211,131,18,0.95)), url('http://www.admin-test.com/jade/images/bg-three.jpg') ; background: linear-gradient(135deg, rgba(168,50,121,0.7),rgba(211,131,18,0.95)), url('http://www.admin-test.com/jade/images/bg-three.jpg') ; } .bg-three:hover{ background: -webkit-linear-gradient(135deg, rgba(168,50,121,0.9),rgba(211,131,18,0.95)), url('http://www.admin-test.com/jade/images/bg-three.jpg') ; background: -moz-linear-gradient(135deg, rgba(168,50,121,0.9),rgba(211,131,18,0.95)), url('http://www.admin-test.com/jade/images/bg-three.jpg') ; background: -o-linear-gradient(135deg, rgba(168,50,121,0.9),rgba(211,131,18,0.95)), url('http://www.admin-test.com/jade/images/bg-three.jpg') ; background: linear-gradient(135deg, rgba(168,50,121,0.9),rgba(211,131,18,0.95)), url('http://www.admin-test.com/jade/images/bg-three.jpg') ; } .bg-four{ background: -webkit-linear-gradient(135deg, rgba(0,0,0,0.4),rgba(220,66,37,0.85)), url('http://www.admin-test.com/jade/images/bg-four.jpg') ; background: -moz-linear-gradient(135deg, rgba(0,0,0,0.4),rgba(220,66,37,0.85)), url('http://www.admin-test.com/jade/images/bg-four.jpg') ; background: -o-linear-gradient(135deg, rgba(0,0,0,0.4),rgba(220,66,37,0.85)), url('http://www.admin-test.com/jade/images/bg-four.jpg') ; background: linear-gradient(135deg, rgba(0,0,0,0.4),rgba(220,66,37,0.85)), url('http://www.admin-test.com/jade/images/bg-four.jpg') ; } .bg-four:hover{ background: -webkit-linear-gradient(135deg, rgba(0,0,0,0.85),rgba(220,66,37,0.85)), url('http://www.admin-test.com/jade/images/bg-four.jpg') ; background: -moz-linear-gradient(135deg, rgba(0,0,0,0.85),rgba(220,66,37,0.85)), url('http://www.admin-test.com/jade/images/bg-four.jpg') ; background: -o-linear-gradient(135deg, rgba(0,0,0,0.85),rgba(220,66,37,0.85)), url('http://www.admin-test.com/jade/images/bg-four.jpg') ; background: linear-gradient(135deg, rgba(0,0,0,0.85),rgba(220,66,37,0.85)), url('http://www.admin-test.com/jade/images/bg-four.jpg') ; } .bg-five{ background: -webkit-linear-gradient(135deg, rgba(0,0,0,0.1),rgba(41,36,132,0.9)), url('http://www.admin-test.com/jade/images/bg-five.jpg') ; background: -moz-linear-gradient(135deg, rgba(0,0,0,0.1),rgba(41,36,132,0.9)), url('http://www.admin-test.com/jade/images/bg-five.jpg') ; background: -o-linear-gradient(135deg, rgba(0,0,0,0.1),rgba(41,36,132,0.9)), url('http://www.admin-test.com/jade/images/bg-five.jpg') ; background: linear-gradient(135deg, rgba(0,0,0,0.1),rgba(41,36,132,0.9)), url('http://www.admin-test.com/jade/images/bg-five.jpg') ; height: 400px; } .bg-five:hover{ background: -webkit-linear-gradient(135deg, rgba(0,0,0,0.55),rgba(41,36,132,0.9)), url('http://www.admin-test.com/jade/images/bg-five.jpg') ; background: -moz-linear-gradient(135deg, rgba(0,0,0,0.55),rgba(41,36,132,0.9)), url('http://www.admin-test.com/jade/images/bg-five.jpg') ; background: -o-linear-gradient(135deg, rgba(0,0,0,0.55),rgba(41,36,132,0.9)), url('http://www.admin-test.com/jade/images/bg-five.jpg') ; background: linear-gradient(135deg, rgba(0,0,0,0.55),rgba(41,36,132,0.9)), url('http://www.admin-test.com/jade/images/bg-five.jpg') ; } .col li a, .col li a:hover{ display: block; min-height: 200px; max-height: 400px; padding: 1em; background-position: center; background-repeat: no-repeat; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } .partial h2{ font-weight: 300; font-size: 1.4em; margin-bottom: 0.4em; } .partial .bg-five h2{ font-size: 2.4em; } .partial p{ font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }</style></head><body> <link rel="stylesheet" href="https://www.admin-test.com/jade/css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'> <title>Gradient Effect over Images</title> </head> <body> <div class="container"> <ul class="col"> <li class="partial"> <a href="#" class="bg-five"> <h2>Lorem ipsum dolor sit amet, consectetur adipiscing elit</h2> <p>By John Doe from Spain</p> </a> </li> <li class="partial"> <a href="#" class="bg-two"> <h2>Lorem Ipsum dolor sit amet</h2> <p>By John Doe from Spain</p> </a> </li> </ul> <ul class="col"> <li class="partial"> <a href="#" class="bg-four"> <h2>Lorem Ipsum dolor sit amet</h2> <p>By John Doe from Spain</p> </a> </li> <li class="partial"> <a href="#" class="bg-one"> <h2>Lorem Ipsum dolor sit amet</h2> <p>By John Doe from Spain</p> </a> </li> <li class="partial"> <a href="#" class="bg-three"> <h2>Lorem Ipsum dolor sit amet</h2> <p>By John Doe from Spain</p> </a> </li> </ul> <ul class="col"> <li class="partial"> <a href="#" class="bg-one"> <h2>Lorem Ipsum dolor sit amet</h2> <p>By John Doe from Spain</p> </a> </li> <li class="partial"> <a href="#" class="bg-five"> <h2>Lorem ipsum dolor sit amet, consectetur adipiscing elit</h2> <p>By John Doe from Spain</p> </a> </li> </ul> </div> </body> </html> </body></html>

Related: See More


Questions / Comments: