<form action="" id="test"> <div style="background-image:url('SearchBoxWT.gif');" id="searchBox"> <input name="q" id="Search" type="text"> </div> <div id="searchButton"> <input id="SearchBtn" style="height:49px;" class="button bigrounded" value="search" type="submit"/> <div id="searchType"> </div> </div> </form> Code (markup): any clue to make it float and follow the scroll? i don't have idea to do it.
If you want it present on the site at all times, say in the upper right corner, just make it position: fixed; in css?
sorry wrong question. I want create search box and follow the scroll on left. Can it do it with css only?
To be honest, I'm not sure. You might be able to do it with JavaScript. From looking at the source code (I know a little bit about web programming) it's just a form.
I'm wondering what's up with the multiple "DIV for nothing", lack of a FIELDSET, lack of any LABEL, endless pointless classes and ID's, static style in the markup, and other general "This is NOT how you build a form"... ... and have no clue what the blazes "follow the scroll on the left' even means.