Can an Idevice background picture be responsive?

Inicio Forums Desarrolladores / Desenvolupadors / Garatzaileak / Desenvolvedores / Developers Can an Idevice background picture be responsive?

This topic contains 2 respuestas, has 3 voices, and was last updated by  Anónimo Hace 4 años, 10 meses.

  • Author
    Entradas
  • #31982

    Anónimo

    I would like to thank Ignacio for his advice about how to set a background picture inside an Idevice, it worked well however, I have a problem with the picture itself as it is not responsive like the text I am placing on it. In other words when the screen size becomes smaller the text moves accordingly and adjusts the width to be less and increases in the vertical while the background picture is not adjusting accordingly which makes the text go over the end of the background picture.

    Are there solutions for this?

    Please advise.

    my email is ramziataya@yahoo.com

    Thank you

  • #31987

    Ignacio Gros
    Keymaster

    You can use background-size:cover (more information).

    Try it here. Just replace background-size: 300px 100px; with background-size:cover; and click on “Run”.

  • #32756

    Anónimo

    Useful steps, thanks a lot.

You must be logged in to reply to this topic.

Skip to content