Forums

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

Home Forums CSS How could this SVG be responsive?

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

    Hi,

    If I have a picture like this:
    <ellipse cx=”300″ cy=”110″ rx=”130″ ry=”20″></ellipse>

    So, it is declared by pixels, not percents.

    How could it be responsive?

    #250096
    Paulie_D
    Member

    The numbers there related to the viewbox co-ordinate system you set for the SVG.

    You have set a viewbox…right?

    So…it’s responsive by it’s very nature.

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

    Perhaps you could clarify why it is you are trying to do.

    #250146
    Ayala
    Participant

    That’s it! Thank you!!

    (I have written “width” instead of “viewbox”. That was the problem.)

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