I am putting together an HTML page with some divs, and within one of them there is a input
and a button
. But when I zoom out, the divs stay aligned the right way, but the button and input
leave the div.
How do I make the button and input
track the div and do not jump out?
<div id="search">
<form action="../php/CONSULTA.php" id="consulta" name="consulta" onsubmit="return validateFormC()" method="GET">
<b>Código para Consulta:</b>
<input type="text" name="CODIGOC" MAXLENGTH="13" size="11" value="" onkeypress="return Only_N(event)" />
<button type="submit" id="consulta" class="btnCons">CONSULTAR</button>
</form>
</div>
CSS
#search{
position:relative;
margin-top:3px;
margin-left:67%;
border:solid black 1px;
width:356px;
height:25px;
}