시험 & 자격증 & 과제폭탄 으로 인하여 포스팅을 이제야 다시 시작합니다 !
(보통 태그는 블록(한 행을 다 잡아먹음) 속성을 가집니다)
<style>
#box{
display: ___
}
</style>
___에 들어오는 속성none : 화면에 보이지않음 (숨김)inline : 인라인 박스 형식으로 지정 (옆에 내용이 올 수 있게함) => 자주 쓰임1) none 키워드
<style>
#box{
display: none;
}
</style>
</head>
<body>
<span>더미 객체</span>
<div id="box">대상 객체</div>
<span>더미 객체</span>
</body>
style 속성
#: id 선택자
.: 클래스 선택자
2) block
#box태그의 display 속성을 block 키워드로 바꿈
<style>
#box{
display:block;
}
</style>
3) display
inline 과 inline-block 비교
<style>
#box{
display:inline;
}
</style>
<style>
#box{
display:inline-block;
}
</style>




background-size : 배경 이미지 크기
<style>
body{
background-image:url('BackgroundFront.png');
}
</style>
먼저 입력한 이미지(왼쪽)가 앞쪽에 위치
<style>
body{
/*각각의 그림을 레이어 라고 함*/
background-image:url('BackgroundFront.png'),url('BackgroundBack.png');
}
</style>
<style>
body{
background-image:url('BackgroundFront.png'),url('BackgroundBack.png');
background-size:100%;
}
</style>
(높이는 100% 옆에 250px만 추가) => width, height 순임


따옴표 사용 (따옴표 사용 안하면 각각으로 인식하게 됌)<style>
.font_arial { font-family: Arial;}
.font_roman { font-family: 'Times New Roman';}
</style>
<style>
.font_arial { font-family: '없는 글꼴', Arial; }
.font_roman { font-family: 'Times New Roman', Arial;}
</style>
font-style : normal; : 일반 스타일로 지정
font-style : italic; : 이탤릭 스타일로 지정
font-style : oblique; : 약간 기울인 스타일로 지정

text-align:( center, end, inherit, left, right, start, initial...등)
texdt-indent: 들여쓰기, 내여쓰기

글자 높이 지정하는 line-height 속성을 사용한 글자 수직 중앙 정렬

.button > a{
display: block;
}
</style>
<body>
<div class="button">
<a href="#" class="font-big font_italic font_bold font_center">Click</a>
</div>
</body>

(정말 자주 쓰임)
