๐Ÿ‘ฉ‍๐Ÿ’ป/CSS3

[CSS] writing-mode: vertical-rl, vertical-lr

ํ•œ๋‚˜ 2021. 12. 6. 17:03

 

ํƒ€์ดํฌ๊ทธ๋ž˜ํ”ผ ๋””์ž์ธ์œผ๋กœ ๋œ ํฌ์Šคํ„ฐ๋ฅผ ์›น์— ๋„์šฐ๊ฒŒ ๋˜์–ด์„œ ์„ธ๋กœ๋กœ ๊ธ€์ž๋ฅผ ์ •๋ ฌํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ฐพ์•„๋ณด๋˜ ์ค‘์— writing-mode ์†์„ฑ์„ ์•Œ๊ฒŒ ๋๋‹ค. ๊ธฐ๋ณธ ์ •๋ ฌ๋งŒ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋‹ˆ ํ•ด๋‹น ์†์„ฑ์„ ์“ธ ์ผ์ด ์—†์—ˆ๋Š”๋ฐ, ์›๋ž˜ ์“ฐ๊ณ ์ž ํ–ˆ๋˜ ๊ฐ’์€ deprecated๋˜์—ˆ์ง€๋งŒ, ์ถ”ํ›„์— ๋ ˆํผ๋Ÿฐ์Šค์šฉ์œผ๋กœ ๋ธ”๋กœ๊ทธ์— ๋‚จ๊ธฐ๊ธฐ๋กœ ํ–ˆ๋‹ค. 

 

 

Can I use์— ๊ฒ€์ƒ‰ํ•ด๋ณด๋‹ˆ 2021๋…„ 12์›” ๊ธฐ์ค€ Opera Mini๋งŒ ์ œ์™ธํ•˜๊ณ  ๊ฑฐ์˜ ๋‹ค ์“ธ ์ˆ˜ ์žˆ๋Š”๋ฐ,

 

 

๊ทธ์ค‘ sideways-lr, sideways-rl์€ ํŒŒ์ด์–ดํญ์Šค๋งŒ ์ œ์™ธํ•˜๊ณ  ์‚ฌ์šฉํ•  ์ˆ˜ ์—†์—ˆ๋‹ค. 

 

<div>
  
  <ul class="alignment-rl">
    <li>A</li>
    <li>B</li>
    <li>C</li>
    <li>D</li>
    <li>E</li>
  </ul>
  
    <ul class="alignment-lr">
    <li>A</li>
    <li>B</li>
    <li>C</li>
    <li>D</li>
    <li>E</li>
  </ul>
  
  <ul class="alignment-lr">
    <li>๊ฐ€</li>
    <li>๋‚˜</li>
    <li>๋‹ค</li>
    <li>๋ผ</li>
    <li>๋งˆ</li>
  </ul>
  
    <ul class="alignment-rl">
    <li>๊ฐ€</li>
    <li>๋‚˜</li>
    <li>๋‹ค</li>
    <li>๋ผ</li>
    <li>๋งˆ</li>
  </ul>
</div>
.alignment-lr {
  writing-mode: vertical-lr
}

.alignment-rl {
  writing-mode: vertical-rl
}

 

๋Œ€ํ‘œ์ ์œผ๋กœ ๋งŽ์ด ์“ฐ์ด๋Š” ์†์„ฑ๊ฐ’์„ ์ ์šฉํ•ด๋ณธ ํ™”๋ฉด์ด๋‹ค.