Forums

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

Home Forums Design SVG Bounding box with sprite hard to topic

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #272032
    dangdongho1
    Participant

    Hi guys

    I’m using an SVG from a sprite that Gulp has generated for me.

    You can see the page here:

    http://www.gourmetknight.co.uk/svg.html

    Do you know why the container svg with a class of logo-wrap–logo is square? i.e. why is it not just the height of the svg path its self?

    Might be super simple but its late and my brain hurts, any help will be massively appreciated.

    Thanks Dang

    #272042
    Paulie_D
    Member

    The SVG has a viewbox of 100 by 100 ….you would need to adjust that.

    You would need to use the same viewbox as the original SVG which, I assume, has the correct size.

    <svg id="icon-main-logo" viewBox="0 0 569.5 260.6" width="100%" height="100%">
        </svg>
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design’ is closed to new topics and replies.