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 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2009
    Location
    Rizal Province, Philippines
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Width Percent Limit??

    I set the div width to 100% so it fills the entire window whatever its size
    But can I set the div width limit so that when the percentage of the width is less than 50% the div width will not decrease (or be a fixed width) and when the user resizes the window above 50% it will again adopt with the wndow's width percentage?

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,963
    Thanks
    120
    Thanked 76 Times in 76 Posts
    look for max-width, min-width css properties, it works in FF, don't know for other browsers.

  • #3
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,305
    Thanks
    28
    Thanked 276 Times in 270 Posts
    Quote Originally Posted by BubikolRamios View Post
    look for max-width, min-width css properties, it works in FF, don't know for other browsers.
    They work in everything except MSIE6 and lower.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

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