float

<!DOCTYPE html>
<html lang="ko">
<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>
	<style>
		.img-1 { float: left; }
		.img-2 { float: right; }
	</style>
</head>
<body>
	<img class="img-1" src="./test.PNG" alt="" width="50px">
	<p>
		동물계 척삭동물문 포유강 식육목 고양이아목 몽구스과에 속하는 육식성 포유류. 주로 남아프리카에 서식하는 동물이다.
		<br>
		화석상의 기록으로는 1974년 남아프리카공화국 호프필드(Hopefield, South Africa)에 있는 홍적세 초기인 180만년전에 퇴적층에서 수리카타 메이저(Suricata major)이라는 멸종된 미어캣 화석이 발견되면서이다.
	</p>
	<img class="img-2" src="./test.PNG" alt="" width="50px">
	<p>
		동물계 척삭동물문 포유강 식육목 고양이아목 몽구스과에 속하는 육식성 포유류. 주로 남아프리카에 서식하는 동물이다.
		<br>
		화석상의 기록으로는 1974년 남아프리카공화국 호프필드(Hopefield, South Africa)에 있는 홍적세 초기인 180만년전에 퇴적층에서 수리카타 메이저(Suricata major)이라는 멸종된 미어캣 화석이 발견되면서이다.
	</p>
</body>
</html>

Untitled

clear

<!DOCTYPE html>
<html lang="ko">
<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>
	<style>
		.img-1 { float: left; }
		.img-2 { clear: both; }
	</style>
</head>
<body>
	<img class="img-1" src="./test.PNG" alt="" width="50px">
	<p>
		동물계 척삭동물문 포유강 식육목 고양이아목 몽구스과에 속하는 육식성 포유류. 주로 남아프리카에 서식하는 동물이다.
		<br>
		화석상의 기록으로는 1974년 남아프리카공화국 호프필드(Hopefield, South Africa)에 있는 홍적세 초기인 180만년전에 퇴적층에서 수리카타 메이저(Suricata major)이라는 멸종된 미어캣 화석이 발견되면서이다.
	</p>
	<img class="img-2" src="./test.PNG" alt="" width="50px">
	<p>
		동물계 척삭동물문 포유강 식육목 고양이아목 몽구스과에 속하는 육식성 포유류. 주로 남아프리카에 서식하는 동물이다.
		<br>
		화석상의 기록으로는 1974년 남아프리카공화국 호프필드(Hopefield, South Africa)에 있는 홍적세 초기인 180만년전에 퇴적층에서 수리카타 메이저(Suricata major)이라는 멸종된 미어캣 화석이 발견되면서이다.
	</p>
</body>
</html>

Untitled

float 사용시 주의사항