<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
div{
margin-top: 10px; /* 상단만 문장간 띄우기 */
width: 300px;
padding: 10px;
}
.border-dotted{
border-style: dotted;
border-color: red;
border-radius: 20px; /* 모서리 둥글게 */
border-width: 5px; /* 선 굵기 */
}
.border-dashed{
border-style: dashed;
}
.border-solid{
border-style: solid;
margin: 10px 20px 30px 40px; /* 상 우 하 좌 */
}
</style>
<div class="border-dotted">div1</div>
<div class="border-dashed">div2</div>
<div class="border-solid">div3</div>
<div class="border-double">div4</div>
<div>div5</div>
<div>div6</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
.div1{
display: inline-block;
width: 300px;
height: 100px;
background-color: blue;
text-align: center;
color: white;
line-height: 100px; /*글자의 상하 중앙정렬*/
}
.div2{
display: inline-block;
position: absolute; /*가장 가까운 부모 태그를 기준으로 정렬*/
width: 100px;
height: 300px;
background-color: greenyellow;
text-align: center;
color: white;
line-height: 300px; /*글자의 상하 중앙정렬*/
}
.pic{
display: inline-block;
position: absolute;
width: 200px;
height: 200px;
left: 100px;
top: 100px;
}
.div3{
display: inline-block;
position: absolute;
width: 100px;
height: 300px;
right: 300px;
top: 100px;
text-align: center;
line-height: 300px; /*글자의 상하 중앙정렬*/
background-color: red;
}
.div4{
display: inline-block;
position: absolute;
width: 300px;
height: 100px;
left: 100px;
top: 300px;
text-align: center;
line-height: 100px; /*글자의 상하 중앙정렬*/
background-color: pink;
}
.container{
width: 400px;
height: 400px;
border: 1px black solid;
position: relative;
}
</style>
<div class="container">
<div class="div1">1</div>
<div class="div2">2</div>
<div class="div3">3</div>
<div class="div4">4</div>
<div class="pic"><img src="../html/choi.jpg" alt="" width="200px" height="200px"></div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
.container{
width: 250px;
height: 340px;
background-color: grey;
}
.hi{
color: white;
padding: 10px;
background-color: blue;
height: 30px;
line-height: 30px;
}
.colorCopy{
padding: 10px;
height: 30px;
line-height: 30px;
}
.park{
padding: 5px;
margin: 20px;
background-color: white;
width: 200px;
}
.ahn{
padding: 5px;
margin: 20px;
background-color: white;
width: 200px;
}
.lee{
padding: 5px;
margin: 20px;
background-color: white;
width: 200px;
}
</style>
<div class="container">
<div class="hi">최도근님, 안녕하세요?</div>
<div class="colorCopy"><b>페이스북 색감따라하기</b></div>
<div class="park"><b>박지성</b> SBS에서 월드컵보세요!</div>
<div class="ahn"><b>안정환</b> MBC죠...</div>
<div class="lee"><b>이영표</b> KBS는 수신료의 가치를...</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
@media (max-width: 1280px){
body{
background-color: pink;
}
}
@media (max-width: 600px){
body{
background-color: blue;
}
}
</style>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
img{
filter:brightness(80%) drop-shadow(5px 5px 5px gray) saturate(100%) sepia(50%);
width: 40%;
}
</style>
<h1>태초의 계란</h1>
<img src="../html/eggKim.jpg" alt="">
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
.container{
width: 100%;
position: relative;
}
.header{
background-color: rgb(36,37,52);
height: 40px;
border: 1px;
}
.headerLeft{
font-size: 15px;
color: white;
line-height: 35px;
padding-left: 5px;
display: inline-block;
}
.headerRight{
display: inline-block;
float: right;
line-height: 35px;
color: rgb(139,142,147);
}
td{
font-size: 20px;
padding-right: 25px;
}
.background{
position: absolute;
width: 100%;
top: 100%;
z-index: -1;
}
.main{
position: absolute;
left: 40%;
z-index:10;
top: 40%;
color: white;
text-align: left;
font-size: 25px;
}
b{
color: darksalmon
}
.go{
position: absolute;
z-index: 15;
left: 45%;
top: 55%;
}
.btn{
background-color: rgba(0,0,0,0);
padding: 8px;
border: 1px white solid;
color: white;
}
</style>
<div class="container">
<div class="header">
<div class="headerLeft">
★
</div>
<div class="headerRight">
<table>
<tr>
<td>Home</td><td>About</td><td>Projects</td><td>Contact</td>
</tr>
</table>
</div>
</div>
<div class="background">
<img src="https://www.10wallpaper.com/wallpaper/1366x768/1701/Galaxy_Universe_Star_Clusters-Space_High_Quality_Wallpaper_1366x768.jpg"
width="100%" height="100%"
alt="">
<div class="main">
<p>안녕하세요, 제 이름은 <b>윤수병입니다.</b> <br>저는 개발자를 목표로 공부하고 있습니다.</p>
</div>
<div class="go">
<a href="https://www.youtube.com/c/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C%EC%83%9D%EC%A1%B4%EC%BD%94%EB%94%A9"><input type="button" value="View my Work ➤" class="btn" ></a>
</div>
</div>
</div>
</body>
</html>