...

View Full Version : Fixed Positioning Min-Width?



explosivebeer
05-16-2008, 04:45 PM
I'm building a progressive site using position: fixed on many elements, with an alternate more basic fixed-width site for older browsers and PDAs. I have elements that are fixed to both the left and right sides of the window. When you make the browser very narrow they overlap. I was wondering if there was any way to prevent this, or if that is just an inherent problem with using fixed widths.

effpeetee
05-16-2008, 04:53 PM
I really don't know if it would work, but could you use percentages for the measurements? It works on divs.

Look at this site for inspiration.

http://nopeople.com/CSS/background_image_resize/

Frank

explosivebeer
05-20-2008, 05:24 PM
I really don't know if it would work, but could you use percentages for the measurements? It works on divs.

Look at this site for inspiration.

http://nopeople.com/CSS/background_image_resize/

Frank

Yeah I'm actually using a similar image scaling effect as they are but that's unrelated to my current issue.

Basically, I'm wondering if it's possible to use "position:fixed; right:10px" or something like that but have the element stop being fixed to the side of the browser viewport when the screen size goes below a certain width.

effpeetee
05-20-2008, 06:53 PM
We really need either a link to your site or the complete code that you are using, to help you further.

Frank



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum