Click to See Complete Forum and Search --> : [RESOLVED] Text field not staying fixed


rasta_artist
02-05-2010, 02:28 PM
Hey all, Need some help here.


Please go here :

http://www.rossow-web.com/test/index.html


If you drag the sides of the window to expand out left and right, you will notice the "google custom search" text box moves independently of the rest of page.

I do not want that.

I want the google text window to stay with the page. I've tried a bunch of things with no success. Can someone look at the code and the CSS and advise me?


thanks

roy

rasta_artist
02-05-2010, 04:01 PM
here is a screen capture of the issue.


any help is really appreciated.

skywalker2208
02-05-2010, 04:08 PM
Your problem lies with this css.


#sitesearch {
position:absolute;
right:90px;
top:110px;
}


You are telling the browser that the search box needs to be 90px from the right of the screen at all times. When you resize your browser it will maintain having it 90px from the right. In general you don't want to use top, left, right in positioning.

If the search boxe is suppose to be in your navigation area then you should have it in your unordered list.

rasta_artist
02-05-2010, 04:58 PM
Awesome! That worked! Thanks Sky!