UnKnowN Posted July 3, 2006 at 08:16 PM Report #36026 Posted July 3, 2006 at 08:16 PM 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 ?
Triton Posted July 17, 2006 at 01:41 AM Report #38569 Posted July 17, 2006 at 01:41 AM <body bgcolor="#0095ee"> Não se deve misturar apresentação com conteúdo. Se usas CSS então faz tudo correctamente. 🙂 <3 life
UnKnowN Posted July 17, 2006 at 09:14 AM Author Report #38586 Posted July 17, 2006 at 09:14 AM <body bgcolor="#0095ee"> Não se deve misturar apresentação com conteúdo. Se usas CSS então faz tudo correctamente. 😄 ya, já resolvi 🙂 Obrigado na mesma
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now