Reputation: 23
This is the html and css for the qrcode.Is there any other way I can add width?
<div nz-col *ngIf=showQRCode nzSpan="12" class="background">
<ngx-qrcode
[qrc-element-type]="'img'"
[errorCorrectionLevel]="correctionLevel"
[value]="value"
qrc-class = "bshadow"></ngx-qrcode>
</div>
.bshadow{
display: flex;
align-items: center;
justify-content: center;
filter: drop-shadow(5px 5px 5px #222222);
opacity: .5;
width:200px;
}
Upvotes: 0
Views: 3914
Reputation: 4453
did you tried by cssClass
?
like this
<div nz-col *ngIf=showQRCode nzSpan="12" class="background">
<ngx-qrcode
[qrc-element-type]="'img'"
[errorCorrectionLevel]="correctionLevel"
[value]="value"
cssClass="bshadow"></ngx-qrcode>
</div>
Upvotes: 0