html - Bootstrap css Aligns the text to the center by the text length of the other div -


i want use css, bootstrap align first line align left, , second line center on text length of first line.

i tried many ways not.enter image description here

code follow

             <div class="col-md-6">                 <a href="/" style="text-decoration:none">                     <div class="col-md-12 row-eq-height" style="padding:0;">                         <div class="col-md-2" style="padding:0">                             <img src="/content/images/logo.png" class="img-responsive" alt="">                         </div>                         <div class="col-md-10 tex-center" style="padding-right:0;">                             <div style="padding:0">                                 <div class="line1-bold">this first long headline</div>                                 <div class="line2">this second headline</div>                             </div>                         </div>                     </div>                 </a>             </div> 

please check this..

  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">         <div class="col-md-6">                  <a href="/" style="text-decoration:none">                      <div class="col-md-12 row-eq-height" style="padding:0;">                          <div class="col-xs-2" style="padding:0">                              <img src="https://www.tenforums.com/attachments/browsers-email/18558d1485951187t-microsoft-edge-logo-microsoft-edge-100582336-large.png" class="img-responsive" style="width:100px" alt="">                          </div>                          <div class="" style="float:left;">                           <div class="line1-bold" style="color:#b63957; font-size:18px;">this first long headline</div>                                  <div class="line2" style="color:#b63957; font-size:16px; text-align:center;">this second headline</div>                                                    </div>                                                                          </div>                  </a>              </div>


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -