+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Generic Content: 2 Forms

Generic Content: 2 Forms

2 posts, 1 answered
  1. Patrick Julicher
    Patrick Julicher avatar
    31 posts
    Registered:
    28 Feb 2010
    21 Mar 2010
    Link to this post
    Hi,

    I am trying to use Generic Content to dsisplay two forms below each other, each containing a Text Box and Button. This is the code used:

    <form id="form1" style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; input: ;" name="form1" method="post" type="text"> <table style="width: 369px; background-color: #ff0000;" cellspacing="0" cellpadding="0"> <thead> </thead> <tbody> <tr> <td style="width: 110px;">Keyword</td> <td style="width: 259px;"><input id="textfield" type="text" name="textfield" /> <input id="button" type="submit" value="Submit" name="button" /> </td> </tr> </tbody> </table> </form> <form id="form1" style="padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; input: ;" name="form1" method="post" type="text"> <table style="width: 369px; background-color: #ff0000;" cellspacing="0" cellpadding="0"> <thead> </thead> <tbody> <tr> <td style="width: 110px;">Keyword</td> <td style="width: 259px;"><input id="textfield" type="text" name="textfield" /> <input id="button" type="submit" value="Submit" name="button" /> </td> </tr> </tbody> </table> </form

    When I put this on a HTML page without Sitefinity, all shows OK.
    When I put this code in a Generic Content Module, I get unwanted spacing before the second form or the comlete second form is displayed at the bottom of the page bvetween other divs.

    I hope someone can help in this strange behavior.....

    Best regards,  Patrick 
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    23 Mar 2010
    Link to this post
    Hello Patrick Julicher,

    Can you, please try the forms like this:
    <form type="text" method="post" name="form1" style="padding: 0px; margin: 0px; text-align: left;" id="form1">
        <table cellspacing="0" cellpadding="0" style="width: 369px; background-color: #ff0000;">
            <thead>
            </thead>
            <tbody>
                <tr>
                    <td style="width: 110px;">Keyword</td>
                    <td style="width: 259px;"><input type="text" name="textfield" id="textfield" /> <input type="submit" name="button" value="Submit" id="button" /> </td>
                </tr>
            </tbody>
        </table>
    </form>
    <form type="text" method="post" name="form1" style="padding: 0px; margin: 0px; text-align: left;" id="form1">
        <table cellspacing="0" cellpadding="0" style="width: 369px; background-color: #ff0000;">
            <thead>
            </thead>
            <tbody>
                <tr>
                    <td style="width: 110px;">Keyword</td>
                    <td style="width: 259px;"><input type="text" name="textfield" id="textfield" /> <input type="submit" name="button" value="Submit" id="button" /> </td>
                </tr>
            </tbody>
        </table>
    </form>

    There are built in styles in Sitefnity's stock themes for form tags, aligning the text to the center.

    Kind regards,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
2 posts, 1 answered