css3 - Make element always at center of element in bootstrap 3? -


i have center navigation has need in center, not problem, problem have element has right of element, how add have now, goes in accordian head

enter image description here

here boostrap 3 code

    <div class="panel-heading">       <h4 class="panel-title text-right">         <a data-toggle="collapse" data-parent="#accordion" href="#collapseone">           click me         </a>       </h4>     </div> 

what need this

enter image description here

the problem dont know how many icons have, , have need @ center of panel, , click me need @ right?

if want achieve this, not complicated. have set default bootstrap accordion , set text-center insted of text-right. in way if place icons aligned center , after use <p style="float: right;">click me</p> in order place click me text in right.

here code:

<div class="panel-group" id="accordion">     <div class="panel panel-default">         <div class="panel-heading">             <h4 class="panel-title text-center">                 <a data-toggle="collapse" data-parent="#accordion" href="#collapseone">                     <img src="http://placehold.it/15x15">                     <img src="http://placehold.it/15x15">                     <img src="http://placehold.it/15x15">                     <p style="float: right">click me</p>                 </a>             </h4>         </div>         <div id="collapseone" class="panel-collapse collapse in">             <div class="panel-body">                 demo text here.             </div>         </div>     </div> </div> 

as can see, used 3 icons in example, can add many want , center aligned.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -