VStack

๐Ÿ”ฐ CSS โŸฉ Layout โŸฉ System โŸฉ ๐Ÿ”ธ code โ”Šๅ•้กŒ

  • Every Layout โŸฉ Stack /โญ๏ธ

็”จๅ“ชๅ€‹ๅฅฝ๏ผŸ <vstack-> ๆˆ– <i-vstack> โ“(้€™ๅ…ฉๅ€‹้ƒฝๆ˜ฏๅˆๆณ•็š„ๅๅญ—) ๐Ÿ’พ replit โŸฉ <vstack-> valid name?

version

code lab

ๅ•้กŒ

<i-vstack align="right"  class="container">

็•ถๅœจ custom element <i-vstack> ไธญ่ผธๅ…ฅๅฑฌๆ€ง align="right"๏ผŒ็ซŸ็„ถๆœƒๅผ•็™ผ browser ่‡ชๅ‹•ๅฐ‡ๅฎƒ่ฝ‰็‚บ๏ผš(๐Ÿค” align="..." ็ซŸ็„ถๅฐ custom element ไนŸๆœ‰ๆ•ˆโ“)

i-vstack[Attributes Style] {
    text-align: right;
}

ๅฐŽ่‡ดๅ…ง้ƒจ็š„ๆ‰€ๆœ‰ๅญๅ…ƒ็ด ้ƒฝ็นผๆ‰ฟๅˆฐๆญค text-align ๆ€ง่ณช๏ผš

HTML align attribute supports col, colgroup, tbody, td, tfoot, th, thead, tr elements. Usage of align attribute for any other HTML elements is deprecated. You must use CSS for those. ๐Ÿ“— w3resource โŸฉ HTML align attribute

่งฃๆฑบๆ–นๆกˆ๏ผš ๅ˜—่ฉฆๅฐ‡ align="..." ๆ”น็‚บ alignment="..." ็œ‹็œ‹ใ€‚(็ตๆžœ OK โœ…)

Last updated