treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] image issue

  • I am sure this is some bush league stuff, but i am making what can only be called a mock up it needs the most basic level of functionality.

    My problem is this... I need to have the image stretch to the width of the browser window until a certain point and then not resize any smaller. I can only imagine that this is possible and feel like a first class heel for not knowing how to do it.

  •   img {
          min-width: 400px; /* Or whatever */
          width: 100%;
      }
    

    Should do the trick, I think? Obviously, should only target that particular image, but...

    Also, reading helps, didn't spot it was solved =)