2017-01-19 9 views
0

です。これは<select><option>です。私はなぜデスクトップのブラウザでテキストが中心に置かれ、応答性が高いのか分からない、それは中心にないモバイルで...私は何ができるのだろうか?応答文字は<select>で、アライメントセンターは

<p class="text-design col-xs-6 text-left orange-text">My line</p> 
     <select class="select-category col-xs-6" name=""> 
      <option value="test"> Add</option> 
     </select> 

答えて

0

あなたのCSSコードはどのように見えますか?

あなたが中央を揃えるために、text-centerクラスを使用することができますので、あなたはTwitterのブートストラップを使用している:

<select class="select-category col-xs-6 text-center" name="" > <option value="test"> Add</option> </select>

You can see the bootstrap documentation

0
.text-left{ 
    display:block; 
    width:100%; 
} 
0

あなたは<p></p>と​​3210の両方を中心にしたいように思え。 - それを中心にするにはブロック内の埋め込みが<option>である必要があります。 - これはブロック要素で、最初はパディング:15pxに設定されています。 私はcodepenソリューションを実装しました:)。 http://codepen.io/aayusharora/pen/xggQmq

関連する問題