The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

image issue

  • # February 11, 2013 at 9:39 pm

    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.

    # February 12, 2013 at 6:22 am

    This reply has been reported for inappropriate content.

    img {<br />

    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 =)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed