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
  • #209604


    I’m trying to use SVGs via the method described here:
    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:
    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?


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