Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
WebDateChooser is forcing a line break
posted

I cannot put anything to the right of the WebDateChooser, like a validator for example.  It wants to push everything down to the next line and i don't want that.

All textboxes and other controls don't seem to have this issue, just WebDateChooser.

 

Any property I can change, or do I just have to live with this?

I can think of some workarounds, but would rather not.

Thanks

 

 

  • 24497
    Suggested Answer
    posted

    Hi Alex,

    That is correct. The WebDateChooser uses <table> to render itself, and that is "block" element.

    If you need to render another element next to it, then you have 2 options: use position:absolute (better foor both controls), or use table. Example:

    <table>
     <tr>
     <td>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
     </td>
     <td>
        <igsch:WebDateChooser ID="dc1" runat="server"></igsch:WebDateChooser>
     </td>
     </tr>
    </table>