You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			121 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			HTML
		
	
			
		
		
	
	
			121 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			HTML
		
	
<!DOCTYPE html>
 | 
						|
<html lang="en" dir="ltr">
 | 
						|
	<head>
 | 
						|
		<meta charset="utf-8">
 | 
						|
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
						|
		<title>Grid Tutorial</title>
 | 
						|
	<style media="screen">
 | 
						|
		* {
 | 
						|
			box-sizing: border-box;
 | 
						|
			padding: 0;
 | 
						|
			margin: 0;
 | 
						|
		}
 | 
						|
 | 
						|
		html {
 | 
						|
			height: 100%;
 | 
						|
		}
 | 
						|
 | 
						|
		body {
 | 
						|
			font-family: Helvetica;
 | 
						|
			height: 100%;
 | 
						|
		}
 | 
						|
 | 
						|
		.grid-container {
 | 
						|
			height: 100%;
 | 
						|
			display: grid;
 | 
						|
			grid-template-columns: repeat(12, 1fr);
 | 
						|
			grid-template-rows: 70px auto 50px;
 | 
						|
		}
 | 
						|
 | 
						|
		.header {
 | 
						|
			background-color: #5C666F;
 | 
						|
			grid-column: 1 / -1;
 | 
						|
			box-shadow: 0 2px 2px 0 rgba(50,50,50, 0.15);
 | 
						|
		}
 | 
						|
 | 
						|
		.menu {
 | 
						|
			background-color: #01B48F;
 | 
						|
			grid-column: 1 / 3;
 | 
						|
			box-shadow: 0 10px 10px 0 rgba(50,50,50, 0.50);
 | 
						|
		}
 | 
						|
 | 
						|
		.menu > a {
 | 
						|
			display: block;
 | 
						|
			text-decoration: none;
 | 
						|
			color: #FFF;
 | 
						|
			text-align: center;
 | 
						|
			padding-top: 0.8em;
 | 
						|
			padding-bottom: 0.8em;
 | 
						|
			border-bottom: 1px solid #5C666F;
 | 
						|
		}
 | 
						|
 | 
						|
		.menu > a:hover {
 | 
						|
			background-color: #FF9A57;
 | 
						|
			padding-left: 0.8em;
 | 
						|
			transition: all .15s ease-in-out;
 | 
						|
		}
 | 
						|
 | 
						|
		.content {
 | 
						|
			color: #ffffff;
 | 
						|
			background-color: #F5F7F9;
 | 
						|
			padding: 1em 2em;
 | 
						|
			grid-column: 3 / -1;
 | 
						|
			justify-content: center;
 | 
						|
			align-items: center;
 | 
						|
		}
 | 
						|
 | 
						|
		.footer {
 | 
						|
			background-color: #E3E5E7;
 | 
						|
			grid-column: 1 / -1;
 | 
						|
		}
 | 
						|
 | 
						|
		nav {
 | 
						|
			padding-top: 1.3em;
 | 
						|
			text-align: center;
 | 
						|
			margin-left: auto;
 | 
						|
			margin-right: auto;
 | 
						|
		}
 | 
						|
 | 
						|
		nav > a {
 | 
						|
			font-size: 1.2em;
 | 
						|
			font-weight: bold;
 | 
						|
			margin-right: 2rem;
 | 
						|
			color: #FFFFFF;
 | 
						|
			text-decoration: none;
 | 
						|
			display: inline-block;
 | 
						|
		}
 | 
						|
 | 
						|
		nav > a:last-child{
 | 
						|
			margin-right: 0;
 | 
						|
		}
 | 
						|
 | 
						|
		nav > a:hover {
 | 
						|
			border-bottom: 3px solid #ffffff;
 | 
						|
			text-decoration: none;
 | 
						|
			transition: border-bottom .15s ;
 | 
						|
		}
 | 
						|
 | 
						|
	</style>
 | 
						|
	</head>
 | 
						|
	<body>
 | 
						|
		<div class="grid-container">
 | 
						|
			<div class="header">
 | 
						|
				<nav>
 | 
						|
					<a href="#">Home</a>
 | 
						|
					<a href="#">Products</a>
 | 
						|
					<a href="#">Services</a>
 | 
						|
					<a href="#">Contact</a>
 | 
						|
				</nav>
 | 
						|
			</div>
 | 
						|
			<div class="menu">
 | 
						|
					<a href="#">Menu1</a>
 | 
						|
					<a href="#">Menu2</a>
 | 
						|
					<a href="#">Menu3</a>
 | 
						|
					<a href="#">Menu4</a>
 | 
						|
			</div>
 | 
						|
			<div class="content">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
 | 
						|
			<div class="footer">Footer</div>
 | 
						|
		</div>
 | 
						|
	</body>
 | 
						|
</html>
 |