cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              	<header>
		<div class="heading">
			<h1>Street Food India</h1>
		</div>
		<div class="lead-image">
			<img src="images/spicy.png" alt="lead image">
		</div>
	</header>
	<div class="wrapper">
		<section class="single-item">
			<article class="item1 single-item-image">
				<img src="http://keeprecipes.com/sites/keeprecipes/files/pani_puri.jpg" alt="">
			</article>
			<div class="single-item-aside">
				<article class="item1 single-item-recipe">
					<span>Recipe: </span><br>Boiled potatoes are mixed with chopped onion with coriander leaves, cumin powder, chaat masala and salt... <br><a href="http://foodviva.com/snacks-recipes/pani-puri/">Read Full</a>
				</article>
				<article class="item1 single-item-location"><span>Famous </span>throughout length and breadth of India including major cities like New Delhi, Mumbai, Kolkata, Chennai, Pune, Hyderabad, Patna, Lucknow, Jaipur and every city or town.</article>	
			</div>
			<article class="item1 single-item-name">
				<span>Pani Puri </span>consists of a round, hollow puri, fried crisp and filled with a mixture of flavored water (commonly known as imli pani), tamarind chutney, chili, chaat masala, potato, onion and chickpeas.
			</article>
		</section>

		<section class="single-item">
			<article class="item2 single-item-image">
				<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Aloo_Tikki_served_with_chutneys.jpg/1200px-Aloo_Tikki_served_with_chutneys.jpg" alt="Aloo Tikki">
			</article>
			<div class="single-item-aside">
				<article class="item2 single-item-recipe">
					<span>Recipe: </span><br>Steam or pressure cook potatoes and mash them. Add the spice poders, salt, corn starch and coriander leaves...<br><a href="http://foodviva.com/snacks-recipes/spicy-aloo-tikki-recipe/">Read Full</a>
				</article>
				<article class="item2 single-item-location">
					<span>Famous </span>in North Indian Cities like New Delhi, Mumbai,Chandigarh, Lucknow, Kanpur, Varanasi, Bhopal, Indore, Ahemdabad, Jaipur, Bikaner, Pune etc but can be found in every city or town.	</article>	
			</div>
			<article class="item2 single-item-name">
				<span>Aloo Tikki </span>made out of boiled potatoes, onions and various curry spices.  It is served hot and warm along with a side of saunth, tamarind and coriander-mint sauce, and sometimes yogurt or chick peas.
			</article>
		</section>
		<section class="single-item">
			<article class="item3 single-item-image">
				<img src="https://media-cdn.tripadvisor.com/media/photo-s/09/96/b5/e4/flambe-hospitality.jpg" alt="">
			</article>
			<div class="single-item-aside">
				<article class="item3 single-item-recipe">
					<span>Recipe: </span><br>Take 2 cups of wheat flour, 1/4 teaspoon salt and 1 teaspoon of ghee or oil.Add water and knead to a smooth soft dough...<br><a href="#0">Read Full</a>
				</article>
				<article class="item3 single-item-location">
					<span>Famous </span>in the states of Bihar, West Bengal, Jharkhand and Uttar Pradesh including major cities like PAtna, Lucknow, Kolkata, Ranchi, Varanasi, Kanput, Allahabad etc but can be found in every city or town.	</article>	
			</div>
			<article class="item3 single-item-name">
				<span>Litti Chokha </span>is a dough ball made up of whole wheat flour and stuffed with Sattu (roasted chickpea flour) mixed with herbs and spices and then roasted over coal or cow dung cakes or wood then it is tossed with lots of ghee.
			</article>
		</section>
		<section class="single-item">
			<article class="item4 single-item-image">
				<img src="https://upload.wikimedia.org/wikipedia/commons/2/20/Indian_cuisine-Chaat-Bhelpuri-03.jpg" alt="">
			</article>
			<div class="single-item-aside">
				<article class="item4 single-item-recipe">
					<span>Recipe: </span><br>Firstly, dry roast puffed rice till it becomes crisp. Add 2 tablespoon of coriander chutney, 1 teaspoon of tamrind dates chutney...<br> <a href="#0">Read Full</a>
				</article>
				<article class="item4 single-item-location">
					<span>Famous </span>throughout India particularly metro cities such as New Delhi, Mumbai, Kolkata, Chennai, Pune, Hyderabad, Patna, Lucknow, Jaipur, Chandigarh, Varanasi, Bangalore and every city or town.	</article>	
			</div>
			<article class="item4 single-item-name">
				<span>Bhel Puri </span> is a savoury snack, and is also a type of chaat. It is made of puffed rice, vegetables and a tangy tamarind sauce mixed together without any cooking or heating.
			</article>
		</section>
		<section class="single-item">
			<article class="item5 single-item-image">
				<img src="http://cdn.walkthroughindia.com/wp-content/uploads/2011/10/Chole-Bhature.jpg" alt="Chole Bhature">
			</article>
			<div class="single-item-aside">
				<article class="item5 single-item-recipe">
					<span>Recipe: </span><br>Soak chickpeas in enough water overnight or for 7-8 hours. Drain the water and cook the chole with water + salt in a pressure cooker...<br><a href="#0">Read Full</a>
				</article>
				<article class="item5 single-item-location">
					<span>Famous </span>in North India throughout the states of Punjab, Haryana, Uttrakhand, Rajasthan, Himachal Pradesh, Delhi and UP but found throughout India.</article>	
			</div>
			<article class="item5 single-item-name">
				<span>Chole Bhature </span>is a combination of chana masala (spicy chickpeas) and fried bread called bhatura made from maida flour (soft wheat).  Chole is a spicy curry made from white chickpeas where as a Bhatura is a fried leavened bread. It is usually eaten as breakfast, sometimes accompanied with lassi.
			</article>
		</section>
		<section class="single-item">
			<article class="item6 single-item-image">
				<img src="https://www.thebetterindia.com/wp-content/uploads/2016/11/idli-sambar.jpg" alt="Idli Sambar">
			</article>
			<div class="single-item-aside">
				<article class="item6 single-item-recipe">
					<span>Recipe: </span><br>Pressure cokk dal with 2 cup[s of water for 2 whistles. MAsh it and set aside. Soak tamarind in little hot water, squeeze and extract the pulp...<br><a href="#0">Read Full</a>
				</article>
				<article class="item6 single-item-location">
					<span>Famous </span>in South India particularly cities like Chennai, Hyderabad, Bengaluru, Kanyakumari, Coimbatore, Vishakhapatnam, Mysore but can be found in every city or town.	</article>	
			</div>
			<article class="item6 single-item-name">
				<span>Idli Sambar </span>is steamed and is high in protein and so is sambar, the concoction of lentils and veggies. The recipe is loaded with nutritious ingredients and is loved by people for their health benefits. 
			</article>
		</section>
	</div>
	<footer>
		&copy; All the images to their respective Owners.<br><a href="https://www.twitter.com/viiv3k" target="_blank">Vivek</a> 2017. 
	</footer>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Oswald:200&subset=latin-ext');
@import url('https://fonts.googleapis.com/css?family=Raleway');

*{
	margin: 0;
	padding: 0;
}

body{
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	box-sizing: border-box;
}

header{
	position: fixed;
	z-index: 10;
	background-color: #fff;
	width: 100%;
	font-family: 'Oswald', sans-serif;
	color: #ec4300;
	font-size: 2.5vw;
	letter-spacing: 5px;
	text-transform: uppercase;
	padding: 0 2vw;
	box-shadow: 0 0 10px rgba(0,0,0,.3);
	display: -ms-grid;
	display: grid;
	-ms-grid-columns:10fr 2fr;
	grid-template-columns: 10fr 2fr;
	transition: all .5s ease-in-out;
}
.lead-image{
	-ms-grid-row-align: center;
	justify-self: center;
}
img[src="images/spicy.png"]{
	display: block;
	width: 8vw;
}

header:hover{
	color:  #007600;
}
header:hover img{
	filter: hue-rotate(90deg);
}

.wrapper{
	padding: 8.5vw .8vw 1vw;
	font-size: 1em;
	font-weight: 450;
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: repeat(auto-fit, minmax(500px, 1fr));
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	grid-gap: .8vw;
}
.single-item{
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: repeat(2, minmax(50%, 50%));
	grid-template-columns: repeat(2, minmax(50%, 50%));
	grid-gap: .25vw;
}
.single-item-recipe, .single-item-location, .single-item-name{
	padding: .5vw;
}
.single-item article > img{
	display: block;
	max-width: 100%;
	min-height: 100%;
}
.single-item a{
	text-decoration: none;
	color: inherit;
	font-weight: 700;
	display: inline-block;
	box-shadow: 0 0 10px rgba(0,0,0,.3);
	padding: .2em;
	float: right;
}
.single-item a:hover{
	box-shadow: 0 0 10px rgba(0,0,0,.3) inset;
	transform: scale(1.1);
}
.single-item span{
	font-size: 1.5em;
	font-weight: 600;
}
.single-item-name{
	grid-column: 1 / span 2;
}

.single-item-aside{
	display: -ms-grid;
	display: grid;
	grid-gap: .25vw;
}

.item1{
	background-color: rgba(268, 168, 0, .7);
}
.item2{
	background-color: rgba(60, 173, 50, .7);
}
.item3{
	background-color: rgba(00,191, 255, .7);
}
.item4{
	background-color: rgba(236, 70, 62, .7);
}
.item5{
	background-color: rgba(240, 230, 140, 1);
}
.item6{
	background-color: rgba(138, 43, 226, .6);
}

footer{
	width: 100%;
	font-family: 'Raleway', sans-serif;
	color: initial;
	font-size: 1em;
	text-align: center;
	padding: .5em 0;
	box-shadow: 0 0 10px rgba(0,0,0,.3);
}

footer a{
	text-decoration: none;
	color: initial;
}
footer a:hover{
	color: purple;
	font-weight: 700;
}
.single-item{
	opacity: 0;
	background-color: #eee;

}
@media only screen and (min-width: 100px) {
    .single-item{
    	opacity: 1;
		transition: opacity 1s ease-in;
    }
}

@media (min-width:700px) and (max-width: 1000px){
	header{
		font-size: 3vw;
	}
	.wrapper{
		padding-top: 10vw;
	}
}

@media (min-width: 500px) and (max-width: 700px){
	header{
		font-size: 3.5vw;
	}
	.wrapper{
		padding-top: 12vw;
		font-size: .9em;
	}
	img[src="images/spicy.png"]{
		display: block;
		width: 11vw;
	}
}

@media (max-width: 500px){
	header{
		font-size: 4vw;
	}
	.wrapper{
		grid-template-columns: repeat(auto, 1fr);
		padding-top: 15vw;
		font-size: .9em
	}
	img[src="images/spicy.png"]{
		display: block;
		width: 14vw;
	}
}
            
          
!
999px
Loading ..................

Console