私は左のテキストアライメントを持つテーブルを持っています。チェックボックスを右揃えにすることができますか?右側にテキストアライメントを設定します。
<h:panelGroup styleClass="table-right">
<h:selectBooleanCheckbox value="#{bean.method}"> </h:selectBooleanCheckbox>
</h:panelGroup>
.table-right {
text-align: right;
}
HTML出力:
<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>
CSSでのチェックボックスのちょうどセルの配置を変更するには、任意の解決策はありますか?
なぜ、あなたのHTML出力は何のチェックボックスを持っていませんか? – Justinas
text-align:rigth ?? –