I need help with aligning an image to the right while maintaining its max-width and max-height. The issue is that when the width is adjusted, the image moves to the left side instead of staying on the right edge. How can I prevent this and keep the image aligned to the right edge even when the width changes?
<div class="img-label-wrapper">
<img src="../assets/portal/css/x-logo.png" class="titleResource" width="60px" height="20px">
</div>
.img-label-wrapper {
position: relative;
top: -5px;
text-align: right;
width: 100%;
}
.img-label-wrapper .titleResource {
max-width: 100px !important;
max-height: 20px !important;
float: right;
margin-top: unset !important;
}