Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要素を水平方向に中央揃えし、同時に固定するにはどうすればよいですか?
これは可能ですか?ページ上の別の要素は、html または css を使用できます。
例:
試してみてくださいmargin: auto;。水平方向に中央揃えされますが、要素には幅が必要です。
margin: auto;