Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] 記事ページのタイトル表示を行によって変更する #13

Open
matumoto1234 opened this issue Dec 26, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@matumoto1234
Copy link

matumoto1234 commented Dec 26, 2022

概要

記事ページのタイトル表示が強制的に中央揃えになっていて、2行目以降が中央揃えになってしまうと違和感がありそう

1行目のみ→中央揃え
2行目以上→右揃え

みたいにできると嬉しそう

イメージ

image

image

方法

::first-line擬似クラスを使うだけでいいかも

p::first-line {
  text-align: center;
}

参考

@matumoto1234 matumoto1234 added the enhancement New feature or request label Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant