2
小規模(初心者)のプロジェクトで2つのテキスト列を持つピクルがあり、友人と私が取り組んでいます。これが私たちのコードです。CSSでテキストの列を中央に揃える方法
h3 {
text-align: left;
font-family: Times;
display:flex;
align-items:center;
}
.AboutBA {
text-align: justify;
width: 400px;
height: 300px;
position: relative;
left: 190px;
}
.Position {
text-align: justify;
width: 400px;
height: 300px;
position: relative;
left: 650px;
bottom: 319px;
}
私はレイアウトを破壊しないように、あまり変更したくないが、私が探している唯一のことは、彼らは上の写真の下に立つように、2つのテキスト列を中央にあります。
Here is how the code looks as of now.
あなたがセンタリングしたいテキスト列の対応するHTMLコードを追加してもらえますか? – Simplicity
また、html :) –
を見て親に 'text-align:center'を' inline-block'としておくと便利でしょうhttps://codepen.io/mcoker/pen/KvMVyd –