私の問題は、私のテキストが完全に中央にならないことです。これをどうやって解決するのですか?私はまだそれを中央で上下に移動したい。テキストを中央に配置できません
<center>
<div class="home-text">
<div class="col-md-6 col-md-offset-3">
<h1 class="home-title bounceInUp animated">NAME</h1>
<h2 class="home-desc bounceInUp animated">HTML, CSS, JavaScript, Python</h2>
</div>
</div>
</center>
.home-text {
position: absolute;
left: 50%;
top: 45%;
color: rgb(255, 255, 255);
}
を左に設定された位置を使用することができます/ HTML/Element/center)センター要素の使用について – Nora
私の答えをここでチェックアウト - http://stackoverflow.com/questions/34912619/css-div-center-multi-line-text-vertically-and-horizontally- with-a-background-ima/34912867#34912867 – devtye
「center」要素は、10年以上にわたってベストプラクティスではありませんでした。どの本/リソースから作業していますか? –