inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

CSS_basic2

hxngxS
0

CSS 속성을 스스로 알아내기

검색으로 해결하기: 'CSS text size property'

The font-size property sets the size of a font.

 

font-size 속성을 이용해 글자 크기 변경

  h1{
    font-size:45px;
  }

px는 컴퓨터에서 사용하는 단위이다.

 

text-align 속성을 이용해 텍스트를 가운데로 정렬

div.a {
  text-align: center;
}

div.b {
  text-align: left;
}

div.c {
  text-align: right;
}

div.c {
  text-align: justify;
}

 

The text-align property specifies the horizontal alignment of text in an element.

 

 

 

답변 0