Currently, I am in the process of creating an app using VueJS and Bootstrap. My goal is to have a div with an image centered both vertically and horizontally, while also ensuring that the checkbox label is positioned at the top right corner. Here's what it looks like:
https://i.sstatic.net/p3mKf.png
However, when hovering over the card, the image seems to move slightly towards the left as shown here:
https://i.sstatic.net/ob4nC.png
.file-name-style{
height: 26px;
color: #424242;
font-family: 'Source Sans Pro';
font-size: 15px;
font-weight: normal;
font-style: normal;
text-decoration: none;
text-align: left;
padding: 5px 15px;
}
.file-size-style{
height: 26px;
color: #9E9E9E;
font-family: 'Source Sans Pro';
font-size: 12px;
text-align: left;
line-height: 1px;
padding: 10px 15px;
}
.header-rectangle {
height: 155px;
background: #F5F5F5;
border: 1px solid #E0E0E0;
border-radius: 0px;
border-bottom: none;
}
.footer-rectangle {
height: 65px;
background: #FAFAFA;
border: 1px solid #E0E0E0;
border-radius: 0px;
vertical-align:middle; text-align:center;
}
...
... (remaining code content)
...
Any suggestions on how I can achieve the desired layout where the image-centered and the checkbox positioned at the top right would be greatly appreciated. Thank you in advance.