css - Set text aligment on the right side -


i have table left text alignment. how can set checkbox right text alignment?

    <h:panelgroup styleclass="table-right">            <h:selectbooleancheckbox value="#{bean.method}"> </h:selectbooleancheckbox>      </h:panelgroup>      .table-right {         text-align: right;     } 

html output:

    <tr>     <td>security question</td>     <td><textarea id="form:securityquestion" name="form:securityquestion" cols="60" rows="3" onblur="mojarra.ab(this,event,'blur',0,'form:securityquestionvalidator')"></textarea><span id="form:securityquestionvalidator"></span></td>     </tr>     <tr>     <td>security answer</td>     <td><textarea id="form:securityanswer" name="form:securityanswer" cols="60" rows="3" onblur="mojarra.ab(this,event,'blur',0,'form:securityanswervalidator')"></textarea><span id="form:securityanswervalidator"></span></td>     </tr> 

is there solution change cell alignment of checkbox css?

.table-right input[type="checkbox"] {   float: right; } 

this should align checkbox right


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -