2017-12-01 13 views
-1

bootstrap-4に問題があります。 私はtext-centerのセクションを中心:テキストセクションを左に揃え、ブートストラップの中央に配置します。4

<div class="text-center text-left"> 
    <h2>Hi,I'm,</h2> 
    <h2>Bonheur jed,</h2> 
    <h2>Web Developer.</h2> 
</div> 

をしかし、私ではなく、私は彼らが左に揃えたいが

    Hi,I'm, 
       Bonheur jed, 
       Web Developer. 
+0

を合わせたいいくつかのCSSを追加しなければなりませんこれは 'text-center'と' text-left'の両方 – core114

答えて

0
を中心

     Hi,I'm, 
        Bonheur jed, 
       Web Developer. 

を中央に見出しを必要はありません。

text-centerを削除し、text-left

あなたはセクションセンターにしたい場合は、あなたがあなたのdivクラス 例クラス=「mydiv」のためのいくつかのcssを書いて、あなたが使用しているなぜあなたは

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous"> 
 

 
<div class="text-left"> 
 
      <h2>Hi,I'm,</h2> 
 
      <h2>Bonheur jed,</h2> 
 
      <h2>Web Developer.</h2> 
 
    </div>

関連する問題