I have an image that is on my webpage. The CSS I am currently using is...
#image1
{
position:absolute; top:150px; right:20%; width:300px;
}
I'm using percentages for some of the positioning values as I'm aiming for a fluid web page that repositions itself relative to the window size. When you resize this page with the current code, the image moves to the right as you increase the width. That is fine, but if you decrease the window width the picture will continue to disappear off the left of the page. I want it so the image freezes about 100px from the left of the page, so you can only shrink the page so far before it just stops. How can I do this? I've been playing with margins and padding and other crap but eh I can't figure it out.
EDIT: I've added a wrapper but while its helped it still doesn't make the content move very well. The wrapper margin shrinks as the window gets smaller it seems, displacing the content. RAWR. God damn you liquid website.