Voila le résultat final:
Mais les champs bougent en fonction du navigateur... grrr
Je suis vraiment débutant avec les css etc... alors un peu de conseils seraient la bienvenues...
Le fichier html:
<HTML>
<HEAD>
<LINK rel="stylesheet" type="text/css" href= "parametersok.css">
</HEAD>
<BODY>
<FORM name="form" action="process.jsp" method ="post">
Selected flux : <var name="flux">No flux Selected</var>
<DIV id="image">
<DIV id="p2"><input type="hidden" name="flux" value=""></DIV>
<DIV id="p2">p<sub>2</sub> = <input type="text" name="p2" value="5" size=5 maxlength=5 ></DIV>
<DIV id="p1">p<sub>1</sub> = <input type="text" name="p1" value="1" size=5 maxlength=5 ></DIV>
<DIV id="dp">dp = <input type="text" name="dp" value="0.5" size=5 maxlength=5 ></DIV>
<DIV id="dt">dt = <input type="text" name="dt" value="1" size=5 maxlength=5 ></DIV>
<DIV id="nsoussat">n<sub>sous-sat.</sub> : <input type="text" name="nsoussat" value="5" size=2 maxlength=2 ></DIV>
<DIV id="nsat">n<sub>sat</sub> : <input type="text" name="nsat" value="10" size=2 maxlength=2 ></DIV>
<DIV id="nsursat">n<sub>sur-sat.</sub> : <input type="text" name="nsursat" value="5" size=2 maxlength=2 ></DIV>
<DIV id="submit"><input type="submit" value="Submit"></DIV>
<DIV id="reset"><input type="reset" value="Reset"></DIV>
</DIV>
</FORM>
</BODY>
</HTML>
Le fichier css:
body { margin: 20px; height: 100%; padding: 0px; font-style: bold; font-family: Arial, Helvetica, Sans Serif; font-size: 23px; color: #333333; background: #ffffff;}
#error { margin: 0px; height: 100%; padding: 0px; font-style: normal; font-family: Arial, Helvetica, Sans Serif; font-size: 12px; color: red; background: #ffffff;}
#image { background-image: url(diagramme.jpg); background-repeat: no-repeat; height: 250px; width: 450px;}
#submit { position:relative; top:0px; left:60px; width:200px; height:25px; }
#reset { position:relative; top:-25px; left:150px; width:200px; height:25px; }
#p2 { position:relative; top:-40px; left:350px; width:200px; height:25px; }
#p1 { position:relative; top:-10px; left:400px; width:200px; height:25px; }
#dp { position:relative; top:-15px; left:170px; width:200px; height:25px; }
#dt { position:relative; top:-50px; left:30px; width:200px; height:25px; }
#nsoussat { position:relative; top:30px; left:85px; width:200px; height:25px; }
#nsat { position:relative; top:-40px; left:200px; width:200px; height:25px; }
#nsursat { position:relative; top:-110px; left:370px; width:200px; height:25px; }
L'image: