Jump to content

Recommended Posts

Posted

Gostava de saber o que tenho mal neste code, já andei as voltas com isto mas... nada, uso labels para nao ter de fazer 1 estilo para cada palavra

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Contactos</title>
<style type="text/css">
div#main
{
height: 100%;
width: 100%;
position: relative;
float: left
}
input
{
border-style: solid;
border-width: 1px;
border-color: #4abb5b;
text-align: left;
color: #006bc0;
font-family: tahoma;
font-size: 12pt;
height: 20px;
width: 125px;
margin: 10px 0px 0px 820px;
position: absolute
}
input.botao
{
border-style: solid;
border-width: 1px;
border-color: #4abb5b;
text-align: center;
color: #006bc0;
font-family: tahoma;
font-size: 12pt;
height: 25px;
width: 125px;
margin: 10px 0px 0px 835px;
position: absolute;
background: white
}
input.botaow
{
border-style: solid;
border-width: 1px;
border-color: #4abb5b;
text-align: center;
color: #006bc0;
font-family: tahoma;
font-size: 12pt;
height: 25px;
width: 125px;
margin: 10px 0px 0px 700px;
position: absolute;
background: white
}
label
{
border-style: dashed;
border-width: 1px;
border-color: #4abb5b;
text-align: center;
color: #006bc0;
font-family: tahoma;
font-size: 12pt;
height: 25px;
width: 125px;
margin: 10px 0px 0px 700px;
position: absolute;
background: white
}
</style>
</head>

<body>
<div id="main">
<form action="Guardar.php" method="post">
<label>Nome</label>
 <input name="Nome" type="text" id="Nome" />

 <p>
<label>Idade</label>
   <input name="Idade" type="text" id="Idade" maxlength="2" />
   
 </p>
 <p>
<label>Data de Nascimento</label>
   <input name="data" type="text" id="data" value="aaaa/mm/dd" />
   
 <p>
<label>Telemóvel</label>
   <input name="telemovel" type="text" id="telemovel" maxlength="9" />
   
</p>
 <p>
<label>Morada</label>
   <input name="morada" type="text" id="morada" size="60" />
   
 </p>
 
 <p>
<label>E-mail</label>
   <input name="email" type="text" id="email" />
   
 </p>
 <p>
   
   <input type="submit" name="Submit" class="botaow" value="Guardar" />

   <input type="reset" name="Submit2" class="botao" value="Limpar" />
   
 </p>
</form>
<body bgcolor="#0095ee">
</div>
</body>
</html>

Obrigado, UnKnowN  ?

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.