2. CSS
CSS Inline 형태를 block 형태로 바꾸기
도피디
2024. 11. 17. 14:56
반응형
<!DOCTYPE html>
<html lang="kr">
<head>
<title>The Nick Times</title>
<style>
div {
height: 150px;
width: 150px;
background-color: tomato;
}
span {
display: block;
background-color: turquoise;
}
</style>
</head>
<body>
<div></div>
<span>hello</span>
<span>hello</span>
</body>
</html>
결과
반응형