κ°œμΈκ³΅λΆ€/HTML5 + CSS3

[HTML+CSS][색상과 배경을 μœ„ν•œ μŠ€νƒ€μΌ] 04 - μ—°μŠ΅λ¬Έμ œ

πŸ‡λ°•λ΄‰λ΄‰πŸ‡ 2020. 7. 3. 15:00

 

01

 

<!doctype html>
<html lang="ko">
  <head>
    <meta charset="utf-8">
    <title>λ°°κ²½ μŠ€νƒ€μΌ</title>
    <style>
			body {
				font-family: "맑은 κ³ λ”•", 돋움;
			}
			.container {
				width:500px;
				padding:10px;
				border:1px solid blue;
                background: rgba(0, 0, 255, 0.2);
			}
			h1 {
				font-size: 17px;
			}

			p {
				font-size: 16px;
				line-height: 25px;
			}
    </style>
  </head>
  <body>
		<div class="container">
			<h1>μ›Ή λ””μžμΈ νŠΈλ Œλ“œλ₯Ό λ”°λΌμž‘λŠ” 비법 λŒ€κ³΅κ°œ!</h1>
			<p>κ·Έλž˜ν”½ ν”„λ‘œκ·Έλž¨μœΌλ‘œ μ›Ή λ””μžμΈ μš”μ†Œλ₯Ό 일일이 λ§Œλ“€μ–΄ μ›Ήμ‚¬μ΄νŠΈλ₯Ό μ œμž‘ν•˜λŠ” μ‹œλŒ€λŠ” 지났닀. 이제 λͺ¨λ°”일, νƒœλΈ”λ¦Ώ, PC λ“± λ©€ν‹° λ””λ°”μ΄μŠ€μ— ν•œ λ²ˆμ— μ μš©ν•  수 μžˆλŠ” μ›Ή λ””μžμΈ 방법을 μ•Œμ•„μ•Ό ν•œλ‹€. λ°”λ‘œ <b>코딩을 μ΄μš©ν•œ μ›Ή λ””μžμΈ</b>이닀. </p>		
		</div>
  </body>
</html>

 

 


 

 

02

 

<!doctype html>
<html lang="ko">
  <head>
    <meta charset="utf-8">
    <title>λ°°κ²½ μŠ€νƒ€μΌ</title>
    <style>
			body {
				font-family: "맑은 κ³ λ”•", 돋움;
			}
			.container {
				width:500px;
				padding:10px;
				border:1px solid blue;
				background:rgba(0,0,255,0.2);
			}
            .container:hover {
                background: blue;
                color: white;
            }
			h1 {
				font-size: 17px;
			}

			p {
				font-size: 16px;
				line-height: 25px;
			}
    </style>
  </head>
  <body>
		<div class="container">
			<h1>μ›Ή λ””μžμΈ νŠΈλ Œλ“œλ₯Ό λ”°λΌμž‘λŠ” 비법 λŒ€κ³΅κ°œ!</h1>
			<p>κ·Έλž˜ν”½ ν”„λ‘œκ·Έλž¨μœΌλ‘œ μ›Ή λ””μžμΈ μš”μ†Œλ₯Ό 일일이 λ§Œλ“€μ–΄ μ›Ήμ‚¬μ΄νŠΈλ₯Ό μ œμž‘ν•˜λŠ” μ‹œλŒ€λŠ” 지났닀. 이제 λͺ¨λ°”일, νƒœλΈ”λ¦Ώ, PC λ“± λ©€ν‹° λ””λ°”μ΄μŠ€μ— ν•œ λ²ˆμ— μ μš©ν•  수 μžˆλŠ” μ›Ή λ””μžμΈ 방법을 μ•Œμ•„μ•Ό ν•œλ‹€. λ°”λ‘œ <b>코딩을 μ΄μš©ν•œ μ›Ή λ””μžμΈ</b>이닀. </p>			
		</div>
  </body>
</html>

 

 


 

 

03

 

<!doctype html>
<html lang="ko">
  <head>
    <meta charset="utf-8">
    <title>λ°°κ²½ μŠ€νƒ€μΌ</title>
    <style>
			body {
				font-family: "맑은 κ³ λ”•", 돋움;
			}
			.container {
				position: relative;
				width: 600px;
				height: 400px;
				padding: 20px;
				border: 1px solid #ccc;
                background-image: url('images/apple-bg.jpg');
                background-repeat: no-repeat;
                background-size: cover;
			}

			.content {
				position: absolute;
				top: 300px;
				width: 90%;
				padding: 10px;
                background-color: rgba(255, 255, 255, 0.5);
			}

			h1 {
				font-size: 30px;
				text-align: center;
			}

			p {
				font-size: 16px;
				line-height: 25px;
			}
    </style>
  </head>
  <body>
		<div class="container">
			<div class="content">
				<h1>ν•˜λ£¨ ν•œ μ•Œμ˜ μ‚¬κ³ΌλŠ” μ˜μ‚¬λ₯Ό 멀리 ν•œλ‹€</h1>
			</div>
		</div>
  </body>
</html>

 

 


 

 

< μ°Έκ³  >

Do it! HTML5+CSS3 μ›Ή ν‘œμ€€μ˜ 정석

 

 

β€» ν•΄λ‹Ή 글은 μŠ΅λ“ λͺ©μ μœΌλ‘œ μž‘μ„±λœ κΈ€μž…λ‹ˆλ‹€ β€»

 

λ°˜μ‘ν˜•