Issue
I tried to include a height and width in the image using the class in Scss, and saw that nothing happens. Is it only possible to change the height or width inline?
HTML
<div class="footer">
<ion-img src="../../../assets/imgs/logo.png"
alt="Logo"></ion-img>
</div>
</ion-footer>
CSS
.footer {
ion-img {
width:40px;
height:40px;
}
}
Solution
You need to pierce the shadow Dom.
.footer {
::ng-deep ion-img {
width:40px!important;
height:40px!important;
}
}
Answered By - user796446
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.