Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<div class="container">
  
  <div class="jumbotron cat_head">
		<div class="dots">
			<span class="green"></span>
			<span class="pink"></span>
			<span class="blue"></span>
			<span class="yellow"></span>
		</div>
		<div class="text-center">
			<div class="grey-hd1 font-josefin">
				Select your interests
			</div>
      <small>
        (Click on any of the boxes)
      </small>
      <br />
      <small>
        A simple alternative to boring checkboxes
      </small>
      <br /><br />
      <small>
        Also check out Radio buttons Divs 
        <a target="_blank" href="https://codepen.io/ashwinshenoy/pen/aBPbgp">Here</a>
      </small>
		</div>
	</div><!--jumbotron end-->

	<div class="row cat_check">
		<!-- Put your chkbox content here -->
		<div class="col-xs-6 col-sm-6 col-md-3 col-mgbtm">
			<div id="checkboxes">
				<input type="checkbox" name="rGroup" class="check_cat" value="Adventure Sports" id="r1"/>
				<div class="check_overlay">
					<i class="fa fa-check-circle"></i>
				</div>
				<label class="whatever" for="r1">
					<img src="https://www.planwallpaper.com/static/images/518164-backgrounds.jpg" class=" img-responsive width100" />
					<div class="row">
						<div class="col-xs-offset-3 col-xs-3">
							<div class="check_details">
								<i class="fa fa-user"><span> 500</span></i>
							</div><!--check_details end-->
						</div><!--col-xs-* end-->
						<div class="col-xs-3">
							<div class="check_details">
								<i class="fa fa-bitbucket"><span> 500</span></i>
							</div><!--check_details end-->
						</div><!--col-xs-* end-->
					</div><!--inner row end-->
				</label>
				<br>
				<div class="check_name_div">
					Adventure Sports
				</div>
			</div><!--checkboxes end-->
		</div><!--col-sm-* end-->

		<div class="col-xs-6 col-sm-6 col-md-3 col-mgbtm">
			<div id="checkboxes">
				<input type="checkbox" name="rGroup" value="1" id="r2"/>
				<div class="check_overlay">
					<i class="fa fa-check-circle"></i>
				</div>
				<label class="whatever" for="r2">
					<img src="https://www.planwallpaper.com/static/images/518164-backgrounds.jpg" class=" img-responsive width100" />
					<div class="row">
						<div class="col-xs-offset-3 col-xs-3">
							<div class="check_details">
								<i class="fa fa-user"><span> 500</span></i>
							</div><!--check_details end-->
						</div><!--col-xs-* end-->
						<div class="col-xs-3">
							<div class="check_details">
								<i class="fa fa-bitbucket"><span> 500</span></i>
							</div><!--check_details end-->
						</div><!--col-xs-* end-->
					</div><!--inner row end-->
				</label>
				<br>
				<div class="check_name_div">
					Photography
				</div>
			</div><!--checkboxes end-->
		</div><!--col-sm-* end-->

		<div class="col-xs-6 col-sm-6 col-md-3 col-mgbtm">
			<div id="checkboxes">
				<input type="checkbox" name="rGroup" value="1" id="r3"/>
				<div class="check_overlay">
					<i class="fa fa-check-circle"></i>
				</div>
				<label class="whatever" for="r3">
					<img src="https://www.planwallpaper.com/static/images/518164-backgrounds.jpg"  class=" img-responsive width100" />
					<div class="row">
						<div class="col-xs-offset-3 col-xs-3">
							<div class="check_details">
								<i class="fa fa-user"><span> 500</span></i>
							</div><!--check_details end-->
						</div><!--col-xs-* end-->
						<div class="col-xs-3">
							<div class="check_details">
								<i class="fa fa-bitbucket"><span> 500</span></i>
							</div><!--check_details end-->
						</div><!--col-xs-* end-->
					</div><!--inner row end-->
				</label>
				<br>
				<div class="check_name_div">
					Start a Hobby
				</div>
			</div><!--checkboxes end-->
		</div><!--col-sm-* end-->

		<div class="col-xs-6 col-sm-6 col-md-3 col-mgbtm">
			<div id="checkboxes">
				<input type="checkbox" name="rGroup" value="1" id="r4"/>
				<div class="check_overlay">
					<i class="fa fa-check-circle"></i>
				</div>
				<label class="whatever" for="r4">
					<img src="https://www.planwallpaper.com/static/images/518164-backgrounds.jpg"  class=" img-responsive width100" />
					<div class="row">
						<div class="col-xs-offset-3 col-xs-3">
							<div class="check_details">
								<i class="fa fa-user"><span> 500</span></i>
							</div><!--check_details end-->
						</div><!--col-xs-* end-->
						<div class="col-xs-3">
							<div class="check_details">
								<i class="fa fa-bitbucket"><span> 500</span></i>
							</div><!--check_details end-->
						</div><!--col-xs-* end-->
					</div><!--inner row end-->
				</label>
				<br>
				<div class="check_name_div">
					Personal Milestones
				</div>
			</div><!--checkboxes end-->
		</div><!--col-sm-* end-->

		<!-- Put your chkbox content end -->
	</div><!--row end-->

</div><!--container end-->

              
            
!

CSS

              
                @import 'https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,600,700|Open+Sans:300,400,600,700';


$white: #ffffff;
$black: #000000;
$black1: #4a4a4a;
$black2: #9ca5a8;

// General
body {
	font-family: 'Open Sans', sans-serif;
	background: #f4f4f4;
}

.width100 {
  width: 100%;
}

.col-mgbtm {
	margin-bottom: 25px;
}

.font-josefin {
	font-family: 'Josefin Sans', sans-serif;
}

.grey-hd1 {
  color: #4a4a4a;
  font-size: 25px;
  font-weight: 600;
}
// General end

.cat_head {
	background: #f4f4f4;
}

.dots {
	text-align: center;
	margin-bottom: 20px;
	-webkit-user-select: none;  /* Chrome all / Safari all */
	-moz-user-select: none;     /* Firefox all */
	-ms-user-select: none;      /* IE 10+ */
	user-select: none;          /* Likely future */

	span:before {
		content: "●";
		font-size: 15px;
	}
	.green:before {
		color: #4bbfab;
	}
	.pink:before {
		color: #ed7baf;
	}
	.blue:before {
		color: #70c3f3;
	}
	.yellow:before {
		color: #fab916;
	}
}

#checkboxes {
	-webkit-user-select: none;  /* Chrome all / Safari all */
	-moz-user-select: none;     /* Firefox all */
	-ms-user-select: none;      /* IE 10+ */
	user-select: none;          /* Likely future */

	.whatever{
		background: white;
    cursor: pointer;
		display: inline-block;
		padding: 10px;
		box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.12), 0 1px 6px 0 rgba(0, 0, 0, 0.12);
		width: 100%;
	}

	img {
		margin-bottom: 9px;
	}

	input[type=checkbox]{
		display: none;
	}

	.check_details {
		color: $black1;

		i span {
			display: inline-block;
			margin-left: 3px;
			font-family: 'Open Sans', sans-serif;
			font-size: 13px;
		}
	}

	.check_name_div {
		font-size: 16px;
		font-weight: 400;
		margin-top: 5px;
	}

	.check_overlay {
		background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
		position: absolute;
		height: 84%;
		top: 0;
		left: 15px;
		overflow: hidden;
		right: 15px;
		display: none;

		i{
      font-size: 28px;
      margin-top: 30%;
      margin-left: 45%;
      color: #70c3f3;
		}
	}
}

@media screen and (max-width: 500px) {
	.cat_check .col-xs-6 {
		float: none;
		width: 100%;
	}
}
              
            
!

JS

              
                $(document).ready(function($) {

  $('#checkboxes label').click(function(){
		$(this).prevUntil("input").prop('checked', true);
		$(this).prev().show();
		//console.log($(this).closest('input').id);
	}); //document-ready end

	$('#checkboxes .check_overlay').click(function(){
		$(this).prev().prop('checked', false);
		$(this).hide();
	});
  
}); //document-ready end
              
            
!
999px

Console