papnkukn / qrcode-svg

A simple QR Code generator in pure JavaScript / node.js library
MIT License
451 stars 93 forks source link

How to make the s SVG full width? #32

Open phpcodingmaster opened 8 months ago

phpcodingmaster commented 8 months ago

Hi Everyone,

Hope someone can guide me in the right direction, please.

I am trying to make the SVG 100% width, but it does not work. I have tried the list of options and tried width: 100% in CSS, which works, but the QR code just moves to the center with whitespace on the left and right. It does not show the QR code to scan as 100% width.

I have also tried the width and heights props, but it has the same effect.

image