Web Analytics Made Easy -
StatCounter Stretch to fit, but DON'T shrink setting - CodingForum

Announcement

Collapse
No announcement yet.

Stretch to fit, but DON'T shrink setting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stretch to fit, but DON'T shrink setting

    Is there a setting that I can set for my html elements like a table where i like set the threshold width... say for example 770 px but if the user's browser is bigger it will stretch to fit however if the browser's width goes below 770 the tabl retains it 770 px width
    I'm gonna find a way to download the internet if its the last thing I do...
    Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

  • #2
    I guess setting a percentage would be the best option? That way it would fit in all resolutions. Not many people (if any?!) will have less than a 770px width anyway.
    markaylward.co.uk

    Comment


    • #3
      An example of what I'm looking for is found on http://www.excite.com. I have 1024x768 and it will fit to that. If i resize it to below 1024 it will continue to fit the screen but the width will never go below about the 770px region... how do I do that?
      I'm gonna find a way to download the internet if its the last thing I do...
      Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

      Comment


      • #4
        Code:
        whatever {
         min-width: 770px;
         }
        Minimum width is the lowest width you assign to something. Give it to the body or a wrapper div for the effect you're looking for.

        BTW, it only works in standards-compliant browsers. (no IE)
        drums | web

        Comment


        • #5
          http://www.stunicholls.myby.co.uk/boxes/minwidth.html They apparently have a solution that makes IE appear to have a min-width on an element.
          ||||If you are getting paid to do a job, don't ask for help on it!||||

          Comment


          • #6
            Originally posted by _Aerospace_Eng_
            http://www.stunicholls.myby.co.uk/boxes/minwidth.html They apparently have a solution that makes IE appear to have a min-width on an element.
            thanks... checking that one out. I know it can be done it IE, I've seen it numerous places and IE is my main browser
            I'm gonna find a way to download the internet if its the last thing I do...
            Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

            Comment

            Working...
            X