jquery mobile - Bring text of an anchor tag with data-role=button in center using css -


i want bring text of button in center using css. have tried using text-align vertical-align nothing working. please advice. button css

.button_eclipse { width: 100px !important; height: 100px !important; border-radius: 50% !important; background: rgb(247,107,32) !important; color: rgb(255,255,255) !important; } 

and in template creating buttons

<div> <a data-role="button" id="btn_gotohomepage" class="button_eclipse"><%= val_btn_gotohomepage %></a> <a data-role="button" id="btn_gotologinpage" class="button_eclipse"><%= val_btn_gotologinpage %></a> <a data-role="button" id="btn_gotolistpage" class="button_eclipse"><%= val_btn_gotolistpage %></a> </div> 

please me. in advance.

working example: http://jsfiddle.net/hyjeg/4/

html :

<div>     <a data-role="button" id="btn_gotohomepage" class="button_eclipse">some text</a>  </div> 

css :

.button_eclipse { width: 100px !important; height: 100px !important; border-radius: 50% !important; background: rgb(247,107,32) !important; color: rgb(255,255,255) !important; }

.button_eclipse .ui-btn-inner {     border-radius: 50% !important;     height: 80% !important; }  .button_eclipse .ui-btn-inner  .ui-btn-text {      display: block !important;     margin: 28px 0 0 -17px;     width: 95px !important;     height: 20px !important;     text-align: center !important; } 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -