Skip to content

How to use variable content as data for the qr generator? #284

Answered by codemasher
CurvyLineo asked this question in Q&A
Discussion options

You must be logged in to vote

Of course you can, but it's a good idea to use external CSS to style instead, see the authenticator example:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>QRCode Authenticator Example</title>
<style>
#authenticator-qrcode{
width: 500px;
margin: 2em auto;
}
#secret{
box-sizing: border-box;
display: inline-block;
width: 100%;
font-size: 20px;
}
/* styles for the embedded SVG QR code */
.my-qrcode.qr-svg{
margin-bottom: 1em;

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@CurvyLineo
Comment options

@codemasher
Comment options

@CurvyLineo
Comment options

@codemasher
Comment options

Answer selected by CurvyLineo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants