Forums

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

Home Forums CSS Trouble with auto scaled SVG viewboxes

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #209604
    elmlish
    Participant

    Hello!

    I’m trying to use SVGs via the method described here: https://css-tricks.com/svg-symbol-good-choice-icons/
    and a few other css-tricks articles re: sizing SVGs, but I’m missing something.

    I’m having trouble with autoscaling the vertical attribute of the SVG viewboxes. An example can be found here: http://codepen.io/israelcevans/pen/jbLxWG/
    Notice that while the svgs scale vertically, their container and viewbox do not seem to scale. I can set the height with a px value, but if I try something more fluid (there will be a couple of rows of these things eventually), the viewboxes seem to be stuck at the default 150px.

    Any recommendations?

    Thanks.

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