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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <div class="packageContainer"><div class="package">
		<div class="packageLeftBar">
			<ul>
				<li>Individual Package Details</li>
				<li><i class="fa fa-tags"></i> Price</li>
				<li><i class="fa fa-check"></i> Validity</li>
				<li><i class="fa fa-search"></i>Visibility in Search</li>
				<li><i class="fa fa-camera"></i>Upload Photo</li>
				<li><i class="fa fa-phone"></i>Call User for Free</li>
				<li><i class="fa fa-envelope"></i>SMS Blast</li>
				<li><i class="fa">@</i>Email Alert</li>
				<li><i class="fa fa-list"></i>Free Listing</li>
				<li><i class="fa fa-home"></i>Hot Properties</li>
				<li></li>
			</ul>
		</div>
		<div class="packageDetails yellow">
			<ul>
				<li><span>Basic</span></li>
				<li>Free</li>
				<li>30 Days</li>
				<li>Standard</li>
				<li>5 Only</li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><a class="signUp">Sign Up</a></li>
			</ul>
		</div>
		<div class="packageDetails orange">
			<ul id="economy">
				<li><span>Economy</span></li>
				<li class="price" data-package1="Rs.900/-" data-package2="Rs.950/-" data-package3="Rs.1000/-">
					<span>Rs.900/-</span>
					<select>
						<option value="1">Package 1</option>
						<option value="2">Package 2</option>
						<option value="3">Package 3</option>
					</select>
				</li>
				<li>60 Days</li>
				<li>Good</li>
				<li>15</li>
				<li class="callUser" data-package1="<i class='fa fa-check'></i>" data-package2="<i class='fa fa-times'></i>" data-package3="<i class='fa fa-check'></i>">
					<i class="fa fa-check"></i>
				</li>
				<li class="smsBlast" data-package1="<i class='fa fa-times'></i>" data-package2="<i class='fa fa-check'></i>" data-package3="<i class='fa fa-check'></i>">
					<i class="fa fa-times"></i>
				</li>
				<li class="emailAlert" data-package1="<i class='fa fa-check'></i>" data-package2="<i class='fa fa-check'></i>" data-package3="<i class='fa fa-times'></i>">
					<i class="fa fa-times"></i>
				</li>
				<li class="freeListing" data-package1="<i class='fa fa-times'></i>" data-package2="<i class='fa fa-times'></i>" data-package3="<i class='fa fa-check'></i>">
					<i class="fa fa-check"></i>
				</li>
				<li class="hotProperties" data-package1="<i class='fa fa-check'></i>" data-package2="<i class='fa fa-check'></i>" data-package3="<i class='fa fa-times'></i>">
					<i class="fa fa-times"></i>
				</li>
				<li class="signUpLink">
					<a href="#" data-package1="https://www.google.com" data-package2="https://www.facebook.com" data-package3="https://www.twitter.com" class="signUp" target="_blank">Sign Up</a>
				</li>
			</ul>
		</div>
		<div class="packageDetails red">
			<ul>
				<li><span>Premium</span></li>
				<li>Rs.1750/-</li>
				<li>60 Days</li>
				<li>Standard</li>
				<li>5 Only</li>
				<li><i class="fa fa-check"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-check"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><a class="signUp">Sign Up</a></li>
			</ul>
		</div>
		<div class="packageDetails maroon">
			<ul>
				<li><span>Super Premium</span></li>
				<li>Rs.5000/-</li>
				<li>60 Days</li>
				<li>Standard</li>
				<li>5 Only</li>
				<li><i class="fa fa-check"></i></li>
				<li><i class="fa fa-check"></i></li>
				<li><i class="fa fa-check"></i></li>
				<li><i class="fa fa-check"></i></li>
				<li><i class="fa fa-check"></i></li>
				<li><a class="signUp">Sign Up</a></li>
			</ul>
		</div>
		<div class="packageDetails maroon brown">
			<ul>
				<li><span>Super Premium +</span></li>
				<li>Rs.10000/-</li>
				<li>60 Days</li>
				<li>Standard</li>
				<li>5 Only</li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><i class="fa fa-times"></i></li>
				<li><a class="signUp">Sign Up</a></li>
			</ul>
		</div>
	</div>
            
          
!

CSS

            
              @import url(https://fonts.googleapis.com/css?family=Exo:300,400,500,600,700);
@import url(http://fontawesome.io/assets/font-awesome/css/font-awesome.css);

* {
  padding: 0;
  margin: 0;
  font-family: "Arial", sans-serif;
}

li {
  list-style: none;
}

.packageContainer {
  text-align: center;
}

.package {
  width: 935px;
  margin: 50px auto 20px;
  border: 1px solid #CCC;
  display: inline-block;
}

.fa {
  color: #b9b9b9;
  font-size: 18px;
  font-style: normal;
  margin-right: 5px;
  width: 25px;
  float: left;
}

.packageLeftBar {
  width: 210px;
  background: #fbfbfb;
  float: left;
}

.packageLeftBar li, .packageDetails li {
  padding: 15px 25px;
  font-size: 14px;
  font-weight: bold;
  border-top: 1px dotted #CCC;
  text-align: left;
}

.packageLeftBar li:first-child, .packageDetails li:first-child {
  text-align: center;
  padding: 30px;
  border: none;
}

.packageLeftBar li:last-child, .packageDetails li:last-child {
	padding: 30px 0;
	background: #FFF;
}

.packageDetails {
  width: 144px;
  float: left;
  position: relative;
  border-left: 1px dotted #CCC;
}

.packageDetails:hover {
	background: #FAFAFA;
}

.packageDetails .fa-times {
  color: #d31c06;
}

.packageDetails .fa-check {
  color: #7e9513;
}

.packageDetails li {
  text-align: center;
}

.packageDetails li .fa {
  text-align: center;
  float: none;
  line-height: 0;
}

.packageDetails li:first-child {
  padding: 10px 10px;
}

.packageLeftBar li:first-child {
  padding: 38px 10px 37px;
}

.packageDetails li:first-child span {
  padding: 10px 0;
  left: 50%;
  margin-left: -65px;
  width: 130px;
  display: block;
  background-color: #d9a702;
  position: absolute;
  top: -5px;
  box-shadow: 3px 3px 0px #b68c03;
  font-family: 'Exo', sans-serif;
  font-weight: 400;
}

.packageDetails.yellow li:first-child {
  background-color: #EBC137;
  color: #FFF;
  line-height: 16px;
}

.signUp {
  padding: 8px 15px;
  color: #FFF;
  cursor: pointer;
  text-decoration: none;
}

.packageDetails li:nth-child(2) {
  padding: 68px 10px 25px;
  border-top: 0;
  color: #FFF;
  font-size: 21px;
}

.packageDetails.yellow li:nth-child(2) {
  background: #EBC137;
}

.packageDetails.yellow .signUp {
  background-color: #d9a702;
  box-shadow: 3px 3px 0px #b68c03;
}

.packageDetails.orange li:first-child {
  background-color: #e69844;
  color: #FFF;
  line-height: 16px;
}

.packageDetails.orange li:first-child span {
  background-color: #cf7a1c;
  box-shadow: 3px 3px 0px #b36004;
}

.packageDetails.orange li:nth-child(2) {
  background: #E38C2D;
}

.packageDetails.orange .signUp {
  background-color: #cf7a1c;
  box-shadow: 3px 3px 0px #b36004;
}

.packageDetails.red li:first-child {
  background-color: #e84c3d;
  color: #FFF;
  line-height: 16px;
}

.packageDetails.red li:first-child span {
  background-color: #b52918;
  box-shadow: 3px 3px 0px #9c4239;
}

.packageDetails.red li:nth-child(2) {
  background: #e84c3d;
}

.packageDetails.red .signUp {
  background-color: #b52918;
  box-shadow: 3px 3px 0px #9c4239;
}

.packageDetails.maroon li:first-child {
  background-color: #771E10;
  color: #FFF;
  line-height: 16px;
}

.packageDetails.maroon li:first-child span {
  background-color: #531106;
  box-shadow: 3px 3px 0px #380a03;
}

.packageDetails.maroon li:nth-child(2) {
  background: #771E10;
}

.packageDetails.maroon .signUp {
  background-color: #531106;
  box-shadow: 3px 3px 0px #380a03;
}

.packageDetails #economy li:nth-child(2) {
  padding: 40px 10px 15px;
}

.packageDetails #economy li:nth-child(2) select {
  margin-top: 14px;
}

#economy select {
  border: 0;
  outline: none;
  padding: 3px 8px;
}
            
          
!

JS

            
              $(document).ready(function(){
  $('#economy li select').change(function(){
    var selectedPackage = 'package'+$(this).val();
    $('#economy .price span').html($('#economy .price').data(selectedPackage));
    $('#economy .callUser').html($('#economy .callUser').data(selectedPackage));
    $('#economy .smsBlast').html($('#economy .smsBlast').data(selectedPackage));
    $('#economy .emailAlert').html($('#economy .emailAlert').data(selectedPackage));
    $('#economy .freeListing').html($('#economy .freeListing').data(selectedPackage));
    $('#economy .hotProperties').html($('#economy .hotProperties').data(selectedPackage));
    $('#economy .signUpLink a').attr('href', $('#economy .signUpLink a').data(selectedPackage));
  });
});
            
          
!
999px

Console