html - Some divs don't move on page when re-sizing page -
i have several divs within container div. move flawlessly when re-sizing page while not. there no difference between ones move , ones don’t in terms of css details , coding in default file. names , values different.
anyone me out?
default file
<div id="container"> <div id="logo"><a href="default.aspx" class="cc02"> <img src="logo.png" alt="test" border="0"/></a></div> <div id="searchbox" > <form method="post" action="search.aspx" target="_search" > <table cellpadding="0px" cellspacing="0px" onkeypress=" (txtsearch.value==../mywebsite/search2.aspx?textbox1.value)"> <tr> <td style="border-style:solid none solid solid;border- color:#4b7b9f;border-width:1px;"> <input type="text" name="txtsearch")" style="width:140px; border:0px ; height:20px; padding:0px 3px; position:relative;"/> </td> <td style="border-style:solid;border-color:#4b7b9f;border-width:1px;"> <input type="button" onclick="search2.aspx" style="border-style: none; background: url('searchbutton3.gif') no-repeat; width: 24px; height: 20px;" /></a> </td> </tr> </table> </form> </div> <div id="td1"><a href="sale.aspx" target="mainsrc" class="cc02">sale</a></div> <div id="td2"><a href="new.aspx" class="cc02">outwear</a></div> logo , searchbox moving along page, while td1 , td2 not moving @ all.
css
div#container {width:960px; height:820px; background:transparent; text-align:left; margin-left:auto; margin-right:auto;} div#logo {position:absolute; top:12px; width:275px; height:60px; left:26px; left:auto;} div#searchbox { background:white; padding:0px; width:174px; position:absolute; height:24px; margin-left:400px; margin-top:10px; text-align:left; top: 22px;} div#td1 {position:absolute; left:760px; top:36px; width:45px; height:16px; text-align:center; border-right:1px solid red; margin:auto;} div#td2 {width:85px; position:absolute; left:790px; padding-left:5px; top:36px; text-align:center;}
i managed move ones stable. replaced direction values in css (i.e top, left etc.) margin-left, margin-top etc. seem working correctly.
Comments
Post a Comment