title: How to add the checkbox item at the new line?
body: <p>I have a checkbox list like below:</p>
  
  <pre><code>&lt;asp:CheckBoxList  id="chx" runat="server" repeatdirection="Horizontal"&gt; &lt;asp:ListItem value="OPTION1"&gt;Option 1&lt;/asp:ListItem&gt;
  &lt;asp:ListItem value="OPTION2"&gt;Option 2&lt;/asp:ListItem&gt;
  &lt;asp:ListItem value="OPTION3"&gt;Option 3&lt;/asp:ListItem&gt;&lt;
  asp:ListItem value="OPTION4"&gt;Option 4&lt;/asp:ListItem&gt;
  &lt;/asp:CheckBoxList&gt;
  </code></pre>
  
  <p>And I am dynamically adding the list items to this checkbox using the following C# code:</p>
  
  <pre><code>chx.Items.Clear();
  while(dr.Read()){
      if(dr.GetOracleString(0).ToString()!="Null"){
          chx.Items.Add(dr.GetOracleString(0).ToString());
      }
  }
  </code></pre>
  
  <p>My requirement is whenever the new item is added in the checkboxlist, it should check whether the new item is going beyond the border(fixed width) of the page and if so the new item should go the next line of checkboxlist without <strong>overlapping below control</strong>.<br>
  Please help me to fix this.
  <img src="https://i.stack.imgur.com/6AxqI.jpg" alt="enter image description here"></p>