[英]vertically aligning elements in a div
I have these chech boxes in my div But they all are appearing in a 2 lines . 我的div中有这些检查框,但它们都以2行显示。
I want to make them vertically , so that only one checkbox will appear in one line and second chek box appear on 2nd line and so on .. 我想垂直放置它们,以便在一行中仅出现一个复选框,在第二行中出现第二个复选框,依此类推..
<g:CheckBox > Article </g:CheckBox>
<g:CheckBox > Form1 </g:CheckBox>
<g:CheckBox > Payroll </g:CheckBox>
<g:CheckBox > TAX </g:CheckBox>
<g:CheckBox > Import/Export </g:CheckBox>
<g:CheckBox > Business Consent Form </g:CheckBox>
<g:CheckBox > HST </g:CheckBox>
Thanks 谢谢
对于HTML代码,您可以输入以下内容:
input {display: block;}
For each textbox element, I'd use clear:both;
对于每个文本框元素,我都将使用
clear:both;
which means nothing to the right or to the left, therefore skip line. 这意味着右边或左边没有任何内容,因此跳过了一行。 Clear is sort of the opposite of
float
. 清除与
float
的相反。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.