What is it about the setup of Code 2 that won’t let you make the play button larger within the box?

Discussion in 'Web Development' started by RomieAnb90, Oct 5, 2017.

  1. RomieAnb90

    RomieAnb90 Registered Member

    Joined:
    Sep 12, 2017
    Messages:
    6
    Likes Received:
    0
    What is it about the setup of Code 2 that won't let you make the play button larger within the box? What's different about the code?

    Code 1.
    Code:
    <svg style="background-color:black;" width="100" height="106" viewBox="0 0 95 100">
     <path fill="currentColor" style="fill:#0059dd; " d="M81 44.6c5 3 5 7.8 0 10.8L9 98.7c-5 3-9 .7-9-5V6.3c0-5.7 4-8 9-5l72 43.3z"></path>
    </svg>
    Code 2.
    Code:
    <svg width="100" height="106" style="background-color:black;" viewBox="0 0 36 36">
     <path fill="currentColor" style="fill:#0059dd; " d="M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"></path>
    </svg>
     
  2. GerarDant90

    GerarDant90 Registered Member

    Joined:
    Sep 12, 2017
    Messages:
    6
    Likes Received:
    0
    This is the best I could do.
    Code:
    <svg width="100" height="106" style="background-color:black;" viewBox="15 9 11 17">
     <path fill="currentColor" style="fill:#0059dd; " d="M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"></path>
    </svg>
     

Share This Page