Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Img width 100% responsive

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #171233
    intodesign
    Participant

    Hello,

    I’m trying to set my image to be full width even if i change the width of the browser,
    link: http://codepen.io/anon/pen/dGCFl

    i tried to give it width:100% but i guess it doesn’t make it responsive,

    Can you help me please ? :)

    #171234
    Paulie_D
    Member

    Full width of what?

    Also, it can’t be responsive and 100% size at the same time..or have I misunderstood.

    Do you mean this:

    http://codepen.io/Paulie-D/pen/pazxI

    #171239
    intodesign
    Participant

    Thanks!

    So this is the secret:

    background-size: contain;

    and of course using the max-width, and min-width

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.