cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <main class="main-container-wrap">
	<h2 class="title">It's a Beautiful Day!!!</h2>
	<div class="main-container">
		<section class="weather-wrap">
		<div class="sun"></div>
		<div class="cloud one">
			<span></span>
			<span></span>
			<span></span>
		</div>
		<div class="cloud two">
			<span></span>
			<span></span>
			<span></span>
		</div>
		<div class="cloud three">
			<span></span>
			<span></span>
			<span></span>
		</div>
		<div class="cloud four">
			<span></span>
			<span></span>
			<span></span>
		</div>
		<div class="cloud five">
			<span></span>
			<span></span>
			<span></span>
		</div>
		<div class="cloud six">
			<span></span>
			<span></span>
			<span></span>
		</div>
	</section>
	<section class="building-bg">
		<div class="building-wrap">
			<div class="back-building"></div>
			<div class="building-list list-1">
				<ul>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
				</ul>
			</div>
			<div class="building-list list-4 list-2">
				<ul>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
				</ul>
			</div>
			<div class="building-list list-3">
				<ul>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
				</ul>
			</div>
			<div class="building-list list-4">
				<ul>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
				</ul>
			</div>
			<div class="building-list list-5">
				<ul>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
				</ul>
			</div>
		</div>
		<div class="main-building">
			<div class="main-building__content">
			<div class="building-left one">
				<div class="top"></div>	
				<div class="middle">
					<div class="window-list">
						<ul>
							<li></li>
							<li></li>
							<li></li>
						</ul>
					</div>
					<div class="window-list">
						<ul>
							<li></li>
							<li></li>
							<li></li>
						</ul>
					</div>
					<div class="window-list">
						<ul>
							<li></li>
							<li></li>
							<li></li>
						</ul>
					</div>
					<div class="window-list">
						<ul>
							<li></li>
							<li></li>
							<li></li>
						</ul>
					</div>
				</div>
				<div class="bottom">
					<div></div>
					<div></div>
				</div>
			</div>
			<div class="building-left two">
				<div class="top-tank">
					<span></span>
				</div>
				<div class="top"></div>
				<div class="top-floor">
					<ul class="window">
						<li></li>
						<li></li>
						<li></li>
					</ul>
					<ul class="bar">
						<li></li>
						<li></li>
					</ul>
				</div>
				<div class="middle">
					<div class="window-list">
						<ul>
							<li></li>
							<li></li>
							<li></li>
						</ul>
					</div>
					<div class="window-list">
						<ul>
							<li></li>
							<li></li>
							<li></li>
						</ul>
					</div>
					<div class="window-list">
						<ul>
							<li></li>
							<li></li>
							<li></li>
						</ul>
					</div>
					<div class="window-list">
						<ul>
							<li></li>
							<li></li>
							<li></li>
						</ul>
					</div>
				</div>
				<div class="bottom">
					<div></div>
					<div></div>
				</div>	
			</div>
			<div class="building-right three">
				<div class="window-bar">
					<ul>
						<li></li>
						<li></li>
						<li></li>
						<li></li>
						<li></li>
						<li></li>
					</ul>
				</div>
				<div class="window-side"></div>
			</div>
			<div class="building-right four">
				<div class="window-wrap">
					<div class="window-list">
						<div class="window">
							<span class="line-horizontal"></span>
							<span class="line-vertical"></span>
						</div>
						<div class="window">
							<span class="line-horizontal"></span>
							<span class="line-vertical"></span>
						</div>
						<div class="window">
							<span class="line-horizontal"></span>
							<span class="line-vertical"></span>
						</div>
					</div>
					<div class="window-list">
						<div class="window">
							<span class="line-horizontal"></span>
							<span class="line-vertical"></span>
						</div>
						<div class="window">
							<span class="line-horizontal"></span>
							<span class="line-vertical"></span>
						</div>
						<div class="window">
							<span class="line-horizontal"></span>
							<span class="line-vertical"></span>
						</div>
					</div>
				</div>	
			</div>
			</div>
		</div>
		<div class="tree-wrap">
			<div class="tree one"></div>
			<div class="tree two"></div>
			<div class="tree three"></div>
			<div class="tree four"></div>
			<div class="tree five"></div>
		</div>
	</section>
	<section class="footer road">
		<div class="road__ground"></div>
		<div class="road__block">
			<hr class="road__block--divider" />
		</div>
	</section>
	</div>
</main

            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Sacramento');

html,
body {
	margin: 0;
	padding: 0;
}

body {
	position: relative;
	overflow-x: hidden;
	background: #fdf6e3;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.title {
	text-align: center;
	font-family: 'Sacramento', cursive;
	font-size: 50px;
	color: #7b7b7b;
}

.main-container {
	height: 630px;  
	max-width: 825px;
	position: relative;
	margin: 50px auto;
	background: #93e7fd;
	border-radius: 4px;
	box-shadow: 0px 0 45px 10px rgba(2, 2, 2, 0.18);
	outline: 20px solid #fff;
}

.weather-wrap {
	position: relative;
	width: 100%;
	height: 300px;
	overflow: hidden;
}

.sun {
	position: absolute;
	left: 43%;
	top: 95px;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #f5a623;
	box-shadow: 0 0 0px 12px #b5efff;
}

.cloud {
	width: 124px;
	position: absolute;
	height: 45px;
	left: 34%;
	top: 38%;
	overflow: hidden;
	> span {
		position: absolute;
		background: #fff;
		border-radius: 50%;
		&:nth-child(1){
			width: 22px;
			height: 22px;
			top: 33px;
			left: 1px
		}
		&:nth-child(2){
			width: 55px;
			height: 55px;
			top: 23px;
			left: 16px;
		}
		&:nth-child(3){
			width: 80px;
			height: 80px;
			left: 45px;
			top: 4px;
		}
	} 
	&.one {
		top: 130px;
	}
	&.two {
    transform: scale(0.6);
		top: 180px;
		left: 75px;
	}
	&.three {
		top: 35px;
		left: 150px;
    transform: scale(0.3);
		> span {
			background: #b3eefe;
		}
	}
	&.four {
    transform: rotateY(180deg) scale(0.6);
		top: 100px;
    left: auto;
		right: 50px;
	}
	&.five {
		left: 465px;
    transform: rotateY(180deg) scale(0.3);
    top: 200px;
		> span { 
			background: #b3eefe;
		}
	}
	&.six {
		left: auto;
		right: 10px;
    top: 20px;
		transform: rotateY(180deg) scale(0.3);
		> span { 
			background: #b3eefe;
		}
	}
}

.footer {
	position: absolute;
	bottom: 0;
	height: 130px;
	background: #938181;
	width: 100%;
	overflow: hidden;
	z-index: 3;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
}

.road__ground {
	height: 33px;
	background: rgb(119, 174, 113);
	width: 100%;
}

.road__block {
	position: relative;
	height: calc(100% - 33px);
	&--divider {
		position: absolute;
		top: 50%;
		-webkit-transform: translateY(-50%);
		transform: translateY(-50%);
		left: 0;
		right: 0;
		margin: 0;
		border: 4px dashed #a89494;
		height: 0;
		border-top: 0;
	}
}

.back-building {
	height: 125px;
	background: #85d2e7;
	width: 100%;
	bottom: 130px;
	position: absolute;
}

.building-list {
	width: 100px;
	position: absolute;
	height: 215px;
	background: rgb(155, 215, 231);
	bottom: 130px;
	ul {
		margin: 0;
		padding: 15px 25px 0 0;
		list-style: none;
		li {
			height: 10px;
			background: rgb(150, 208, 223);
			&:not(:first-child) {
				margin-top: 10px;
			}
		}
	}
	&.list-3 {
		left: 240px;
		&:before {
			content:'';
			position: absolute;
			width: 75px;
			height: 60px;
			background: #93e7fd;
			left: -105px;
			top: 70px;
		}
		ul {
			padding: 15px 0 0 15px;
		}
	}
	&.list-4 {
		width: 80px;
		right: 65px;
		height: 100px;
		z-index: 1;
		&.list-2 {
			right: auto;
			left: 160px;
		}
		ul {
			padding: 10px;
			li {
				height: 6px;
				&:not(:first-child) {
					margin-top: 6px;
				}
			}
		}
	}
	&.list-5 {
		right: 0;
		height: 300px;
		width: 60px;
		&:before {
			content: '';
			position: absolute;
			width: 55px;
			height: 60px;
			background: #93e7fd;
			left: -55px;
			top: 165px;
		}
		ul {
			padding: 25px 0 0 15px;
			li:first-child {
				height: 68px;
			}
		}
	}
}

.main-building {
	width: 340px;
	height: 320px;
	position: absolute;
	right: 152px;
	bottom: 130px;
	&__content {
		position: relative;
		height: 100%;
		&:before{
			content: "";
			height: 15px;
			left: 0;
			right: 0;
			position: absolute;
			background: rgba(216, 184, 96, 0.47);
			z-index: 10;
			top: 105px;
			width: 165px;
		}
	}
}

.building-left,
.building-right {
	position: absolute;
	bottom: 0;
}

.building-left {
	left: 0;
	width: 80px;
	height: 236px;
	background: rgb(254, 215, 112);
	&.one,&.two{
		.top {
			position: relative;
    z-index: 1;
			height: 18px;
			border-top: 2px solid rgb(233, 130, 55);
			border-bottom: 2px solid rgb(233, 130, 55);
			background: rgb(254, 215, 112);
		}
	}
	&.one {
		&:before {
			content:'';
			width: 39px;
			height: 20px;
			position: absolute;
			background: #5d9058;
			z-index: 1;
			bottom: 0;
			left: -37px;
			border-top-left-radius: 10px;
		}
	}
	&.two{
		left: 80px;
		width: 83px;
		height: 293px;
    border-left: 2px solid #d8d08a;
		.top-tank {
			width: 30px;
			height: 34px;
			background: #fed770;
			position: absolute;
			top: -34px;
			right: 0;
			&:before {
				content: "";
				width: 10px;
				height: 15px;
				position: absolute;
				background: #fed770;
				left: -5px;
			}
			span {
				width: 16px;
    		height: 21px;
				background: #d8b860;
				display: block;
				margin: 15px auto 0;
				box-shadow: inset 0 2px 2px 0 #b49030;
				position: relative;
				&:before {
					content: '';
					width: 15px;
					height: 10px;
					background: #6f6b61;
					position: absolute;
					top: -25px;
					border-top-right-radius: 4px;
					border-top-left-radius: 4px;
					z-index:1;
				}
				&:after {
					content: '';
					width: 8px;
					height: 8px;
					background: #4d4a42;
					position: absolute;
					top: -23px;
					border-top-right-radius: 4px;
					right: -5px;
				}
			}
		}
		.top {
			height: 18px;
		}
		.top-floor{
			position: relative;
    	z-index: 1;
			height: 35px;
			border-bottom: 2px solid rgb(233, 130, 55);
			background: #d8b860;
			padding: 10px 0;
			border-right: 2px solid #d8b860;
			.window {
				background: #dac383;
				width: 53px;
				height: 25px;
				border: 2px solid #f3f3f3;
				margin: 5px auto 0;
				text-align: center;
				box-shadow: inset 0px 0px 2px 2px #b7a370;
					li {
						border-left: 2px solid #fff;
						height: 100%;
						display: inline-block;
						&:not(:first-child) {
							margin-left: 7px;
						}
					}
				}
			.bar{
				border: 2px solid #f2f2f2;
				border-bottom: transparent;
				height: 18px;
				position: absolute;
				left: 0;
				right: 0;
				bottom: 0;
				text-align: center;
				opacity: 0.8;
				li {
					border-left: 2px solid #fff;
					height: 100%;
					display: inline-block;
						&:not(:first-child) {
							margin-left: 20px;
						}
					}
				&:before,&:after {
					content:'';
					position: absolute;
					border-top: 1px solid #f2f2f2;
					left: 0;
					right: 0;
					display: block;
				}
				&:before{
					top: 11px;
				}
				&:after{
					top: 5px;
				}
			}
		}
	}
	.middle {
		position: relative;
		z-index: 2;
		padding: 10px;
		.window-list {
			&:not(:first-child){
				margin-top: 17px;
			}
			&:nth-child(3),&:nth-child(4){
				position: relative;
				&:before{
					content: '';
					height: 10px;
					left: 0;
					right: 0;
					top: -6px;
					border-top-left-radius: 30px;
					border-top-right-radius: 30px;
					background: #7bad6a;
					position: absolute;
					opacity: 0.8;
				}
			}
			ul {
				background: #dac383;
				width: 53px;
				height: 25px;
				border: 2px solid #f3f3f3;
				margin: 0 auto;
				text-align: center;
				box-shadow: inset 0px 0px 2px 2px rgb(183, 163, 112);
				li {
					border-left: 2px solid #fff;
					height: 100%;
					display: inline-block;
					&:not(:first-child){
						margin-left: 7px;
					}
				}
			}
		}
	}
	.bottom {
		border-top: 1px solid #ccc;
		padding-left: 14px;
		> div {
			width: 45px;
			height: 43px;
			background: #d8b860;
			position: relative;
			z-index: 1;
			display: inline-block;
			&:last-child {
				width: 11px;
    		margin-left: 5px;
			}
		}
	}
}

.building-right {
	&.four {
		right: 0;
		width: 85px;
		height: 131px;
		border-top: 20px solid rgb(239, 81, 83);
		border-bottom: 35px solid rgb(239, 81, 83);
		background: rgb(247, 233, 129);
		&:before {
			content:'';
			width: 24px;
    	height: 20px;
    	position: absolute;
    	background: #5D905B;
    	z-index: 1;
    	bottom: -35px;
    	right: -24px;
    	border-top-right-radius: 10px;
		}
	}
	&.three {
		right: 85px;
		width: 90px;
		height: 245px;
		background: rgb(239, 81, 83);
		&:before {
			content: '';
			width: 15px;
			height: 9px;
			background: #656056;
			position: absolute;
			top: -9px;
			left: 3px;
			border-top-right-radius: 4px;
			border-top-left-radius: 4px;
			z-index: 1;
		}
	}
	.window-bar {
		float: left;
		width: 25px;
		height: 200px;
		background: #f38586;
		box-shadow: 0 0 0 2px #d04446;
		margin-top: 35px;
		margin-left: 13px;
		position: relative;
		&:after {
			content: "";
			width: 2px;
			background: #d04446;
			left: 0;
			right: 0;
			position: absolute;
			bottom: 0;
			display: block;
			top: 0;
			margin: 0 auto;
		}
		ul {
			li {
				margin-top: 17px;
				height: 10px;
				border-top: 2px solid #d04446;
				width: 100%;
				border-bottom: 2px solid #d04446;
			}
		}
	}
	.window-side {
		width: 40px;
		height: 217px;
		background: #f7e981;
		float: right;
		margin-top: 28px;
		box-shadow: inset 2px 1px 2px 1px #cabf6f;
	}
	.window-wrap {
		overflow: hidden;
		padding: 9px;
		border-top: 2px solid rgb(220, 208, 114);
		border-left: 2px solid rgb(220, 208, 114);
	}
	.window-list {
		width: 50%;
		float: left;
		text-align: center;
	}
	.window {
		width: 15px;
		height: 23px;
		display: inline-block;
		background: rgb(99, 92, 51);
		box-shadow: 0 0 1px 2px #a49b56;
		position: relative;
		&:not(:first-child) {
			margin-top: 15px;
		}
		&:before,
		&:after {
			content: '';
			position: absolute;
			left: -4px;
			right: -4px;
			height: 3px;
			background: #ef5153;
			z-index: 1;
		}
		&:before {
			top: -3px;
		}
		&:after {
			bottom: -3px;
		}
	}
	.line-horizontal {
		height: 2px;
		background: rgb(166, 157, 87);
		position: absolute;
		display: block;
		left: 0;
		right: 0;
		bottom: 5px;
	}
	.line-vertical {
		width: 2px;
		background: rgb(166, 157, 87);
		position: absolute;
		display: block;
		left: 0;
		height: 100%;
		right: 0;
		margin: 0 auto;
	}
}

.tree-wrap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 130px;
}

.tree {
	width: 68px;
	height: 68px;
	background: #75af6f;
	border-radius: 50%;
	position: absolute;
	&:after {
		content:"";
		height: 17px;
		width: 2px;
		position: absolute;
		top: 19px;
		bottom:0;
		margin: 0 auto;
		left: 0;
		right: 0;
		display: block;
		background: #66aec0;
	}
	&.one {
		width: 28px;
		height: 28px;
		bottom: 7px;
    left: 0;
    background: #71bfd4;
	}
	&.two {
		width: 32px;
		height: 32px;
		bottom: 7px;
    left: 100px;
    background: #71bfd4;
		&:after {
			content:"";
			top: 22px;
			display: block;
			background: #66aec0;
		}
	}
	&.three,&.five {
		width: 50px; 
    height: 50px;
    left: 308px;
    bottom: 11px;
    z-index: 2;
		&:after {
			height: 22px;
			width: 3px;
			top: 39px;
			background: #ffffff;
		}
	}
	&.three {
		background: #73a96d;
	}
	&.four {
		left: auto;
    bottom: 12px;
    z-index: 2;
    right: 292px;
		&:after {
			height: 35px;
			width: 4px;
			top: 45px;
			background: #ffffff;
		}
	}
	&.five {
		left: auto;
		right: 211px;
	}
}
            
          
!
            
              //No js is harmed so do not worry

//Inspired by Anjan Shrestha Dribbble shot:
//https://dribbble.com/shots/2839033-Buildings

//https://dribbble.com/anjhero
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console