본문 바로가기

웹디자인기능사 실기/TIP

웹디자인기능사 실기 전체영역 종류

왼쪽정렬

html

<body>
	<div class="wrapper">
		<header>
			<h2>header</h2>
		</header>
		<div class="container celarfix">
			<section class="visual">
				<h2>visual</h2>
			</section>
			<section class="contents">
					<div class="tab_content">
						<h2>tab_content</h2>
					</div>
				<div class="banner">
						<h2>banner</h2>
				</div>
				<div class="link">
					<h2>link</h2>
				</div>
			</section>
			<footer>
				<h2>footer</h2>
			</footer>
		</div>
	</div>
</body>
</html>

css

	/* wrapper */
	.wrapper { width: 1200px; height: 700px; text-align: center; line-height: 100px; background: red; }

	/* header */
	header { float: left;width: 200px; height: 700px; background:#F69393; border:3px solid red;}
	
	/* container */
	.container {float: right; width: 1000px; height: 700px;}
	/* visual */
	.visual { overflow: hidden; position: relative; width: 100%; height: 300px; background:#F69393; border:3px solid red;}

	/* contents */
	.contents { width: 1000px; height: 200px; background:#F69393;}
		/* tab content */
	.contents .tab_content { float: left; width: 33.333%; height: 200px; padding: 10px;  background:#F69393; border:3px solid red;}

		/* banner */
	.contents .banner { float: left; width: 33.333%; height: 200px; padding:15px;  background:#F69393; border:3px solid red;}

		/* link */
	.contents .link { float: left; width: 33.333%; height: 200px; padding:15px;  background:#F69393; border:3px solid red; }
	/* footer */
	footer { width: 1000px; height: 200px; background:#F69393; border:3px solid red;}

 

 

중앙정렬

html

<body>
	<div class="wrapper">
		<header>
			<h2>header</h2>
		</header>
		<section class="visual">
			<h2>visual</h2>
		</section>
		<section class="contents">
				<div class="tab_content">
					<h2>tab_content</h2>
				</div>
			<div class="banner">
					<h2>banner</h2>
			</div>
			<div class="link">
				<h2>link</h2>
			</div>
		</section>
		<footer>
			<h2>footer</h2>
		</footer>
	</div>
</body>

css

charset "utf-8";

	/* wrapper */
	.wrapper { width: 1200px; height: 700px; margin: 0 auto; text-align: center; line-height: 100px; }

	/* header */
	header { position: relative; width: 1200px; height: 100px; background:#F69393; border:3px solid red;}

	/* visual */
	.visual { overflow: hidden; position: relative; width: 100%; height: 300px; background:#F69393; border:3px solid red;}

	/* contents */
	.contents { width: 1200px; height: 200px; background:#F69393;}
		/* tab content */
	.contents .tab_content { float: left; width: 400px; height: 200px; padding: 10px;  background:#F69393; border:3px solid red;}

		/* banner */
	.contents .banner { float: left; width: 400px; height: 200px; padding:15px;  background:#F69393; border:3px solid red;}

		/* link */
	.contents .link { float: left; width: 400px; height: 200px; padding:15px;  background:#F69393; border:3px solid red; }
	/* footer */
	footer { width: 1200px; height: 100px; background:#F69393; border:3px solid red;}