작성자 : 김동일
작성일 : 2015-10-30
css 레퍼런스 설명:
-
text-align-last : 문자의 마지막 라인 방향을 정의한다.
-
syntax :
text-align-last: auto|left|right|center|justify|start|end|initial|inherit;auto : 기본 값, 문자의 마지막 라인을 왼쪽에 정렬한다.
left : 문자의 마지막 라인을 왼쪽에 정렬한다.
right : 문자의 마지막 라인을 왼쪽에 정렬한다.
center : 문자의 마지막 라인을 가운데에 정렬한다.
justify : div 크기에 따라 문자의 마지막 라인을 정렬한다.
start : text-direction에 정의되어 있는 것에 따라 정렬한다.
end : text-direction에 정의되어 있는 것의 역으로 정렬한다.
initial:기본 값으로 set되어 있는 값을 불러온다.
inherit:부모 element에 설정되어 있는 값을 상속 받는다.
sample code :
<!DOCTYPE html>
<html>
<head>
<style>
div {
text-align: justify;
-moz-text-align-last: right; /* Code for Firefox */
text-align-last: right;
}
</style>
</head>
<body>
<div>
You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property. You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property.
You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property.
You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property.
You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property.
You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property.
You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property.
You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property.
</div>
<p><strong>Note:</strong> The text-align-last property currently only works in Internet Explorer and Firefox.</p>
</body>
</html>결과
chrome, safari, opera 에서는 지원하지 않음
- align-content
- align-items
- align-self
- @keyframes
- animation
- backface-visibility
- background-clip
- background-origin
- background-size
- border-bottom-left-radius
- border-bottom-right-radius
- border-image
- border-image-outset
- border-image-repeat
- border-image-slice
- border-image-source
- border-image-width
- border-radius
- border-top-left-radius
- border-top-right-radius
- box-shadow
- box-sizing
- column-count
- column-gap
- column-rule
- column-rule-color
- column-rule-style
- column-rule-width
- column-span
- column-width
- columns
- flex
- flex-basis
- flex-direction
- flex-flow
- flex-grow
- flex-shrink
- flex-wrap
- @font-face
- font-feature-settings
- hyphens
- justify-content
- opacity
- order
- outline-offset
- overflow-wrap
- overflow-x
- overflow-y
- perspective
- perspective-origin
- resize
- tab-size
- text-align-last
- text-overflow
- text-shadow
- transform
- transform-origin
- transform-style
- transition
- transition-delay
- transition-duration
- transition-property
- transition-timing-function
- word-break
- word-wrap
