# CSS 16. text-indent 設定文字內容留白 - 通常文字內容,例如中文的話,每段新的內容都會習慣空2格的留白。 - 前面我們有學到 **rem** 這個屬性/值,我們可以預設我們的中文段落空 2rem 也就是每則段落都預設給它空了2格,可使文字內容更為美觀! ``` p { font-weight: 400; text-indent: 2rem; } ``` - 若為 px,可先觀察該段落是文字預設大小為多少,即: px *2 = text-indent 的絕對數值。 ###### tags: `2022 網頁開發全攻略教程 / CSS篇章 - font styling`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up