1
Good. I have the following draft of a contact form done on Wix.com but I wanted to put it in my Asp.net project as well..
So far, so good :
My code is this::
<body>
<style>
textarea, input {
border: 2px solid rgba(7, 143, 27, 1);
padding: 5px 10px;
background-color: white;
font-family:Arial;
width:400px;
height:33px;
}
</style>
<form id="form1" runat="server">
<div>
<table border="0" style="width: 409px">
<tr>
<td>
<asp:TextBox ID="txtName" runat="server" ValidationGroup="contact" placeholder="Nome*"></asp:TextBox>
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*Campo obrigatório"
ControlToValidate="txtName"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="TextBox1" runat="server" placeholder="Assunto*"></asp:TextBox>
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*Campo obrigatório"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="txtEmail" runat="server" placeholder="Email*"></asp:TextBox>
<br />
<asp:RegularExpressionValidator ID="valRegEx" runat="server"
ControlToValidate="txtEmail"
ValidationExpression=".*@.*\..*"
ErrorMessage="*Endereço de email inválido."
Display="dynamic">
</asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*Campo obrigatório"
ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" placeholder="Mensagem*"></asp:TextBox>
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*Campo obrigatório"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<%--<td></td>--%>
<td>
<asp:Button ID="btnSend" runat="server" Text="Enviar" OnClick="btnSend_Click" />
</td>
</tr>
<tr>
<%--<td></td>--%>
<td>
<asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Green"></asp:Label>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Can anyone please help? Thanks in advance!
Nice young lady thought the same thing, only with position only, so you don’t have to change from table-Cell to flex. I hope you don’t mind me using part of your code ;)
– hugocsl
@hugocsl, It’s all yours, css I just give pitaco not to leave the AP in hand and hope someone come up with the most complete answer.
– Leandro Angelo
For me it served! Thank you :)
– M.Carreira
There are times that simple is the most difficult to think rss and speaking in CSS almost always has more than one way to do... []s
– hugocsl