Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2008
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Fixed Positioning Min-Width?

    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.

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    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
    Last edited by effpeetee; 05-16-2008 at 05:13 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    New Coder
    Join Date
    Mar 2008
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by effpeetee View Post
    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.

  • #4
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    We really need either a link to your site or the complete code that you are using, to help you further.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •