반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- Java
- mysql
- 기록
- next.js
- CS
- js
- nest.js
- typescript
- array
- 생각일기
- WIL
- 네트워크
- 리눅스
- 알고리즘
- Grafana
- mongo
- 코테
- react
- MongoDB
- til
- 생각로그
- 생각정리
- 자바스크립트
- Git
- javascript
- mongoose
- 회고
- 트러블슈팅
- 주간회고
- 피드백
Archives
- Today
- Total
코딩일상
[HTML] block,inline 요소 본문
반응형

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<!-------block--->
<div>2</div>
<div>3</div>
<div>5</div>
<!------- inline--->
<span>1</span>
<span>2</span>
<span>3</span>
</body>
</html>
div,span {
width:80px;
height:80px;
margin:20px;
}
div{
background:red;
display: inline-block;
}
span{
background:blue;
display:block;
}
반응형
Comments