JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<h1>Big Letter</h1>
<p> This is for studying HTMl and CSS !! </p>
<div id="box1">블록 스타일 지정하기</div>
<p> <img src="omelet.jpg" style="float:right;">
<!-- style="float" -> 이미지의 위치를 문자열과의 상대적인 위치로 나타낸다.
(left, both도 가능) -->
1. Seeing is believing. 보는 것이 믿는 것이다. <br>
2. Whatever you do, make it pay. 네가 무엇을 하던간에, 그것이 도움이 되도록 하라. <br>
3. You will never know until you try . 시도해보지 않고는 결코 알지 못한다. <br>
4. No sweat, no sweet. 땀이 없으면 달콤함도 없다. <br>
5. Let bygones be bygones. 지나간일은 잊어 버리세요. <br>
6. Do not count the eggs beore they hatch.
달걀이 부화되기 전에 세지 말라 : 성급히 결정하지 말라. <br></p>
<p style="clear:right;">
<!-- 위에서 지정한 이미지의 위치를 해제 -->
7. No pain no gain. 고통없이는 얻는것도 없다.<br>
8. Life is venture or nothing 인생은 모험이거나 아무것도 아니거나.<br>
9. She can do, he can do, why not me? 그녀도 하고 그도 하는데 나라고 왜 못해?<br>
10 .Pain past is pleasure. 지나간 고통은 쾌락이다. </p>
</body>
CSS
p {
font-size: 14px;
color: green;
}
#box1{
background-color: red;
color: white;
width: 50%;
height: 50px;
/* % -> 스크린 대비 비율만큼 크기 지정 */
border-color: green;
/* border-bottom-color, border-top-color 도 가능 */
border-width: 5px;
border-style: dashed;
/* double, dotted, dashed; inset, outset 도 가능*/
/* border: green, 5px, solid
한줄로 표현하는 것도 가능 */
padding: 40px 10px 5px 100px;
margin: 20px 100px;
/* 여백 스타일
padding -> 안쪽 여백
margin -> 바깥쪽 여백
값이 1개 -> 상하좌우
값이 2개 -> 상하, 좌우
값이 3개 -> 위, 좌우, 하
값이 4개 -> 위, 우, 하, 좌 */
}