I was wondering if there were any guidelines for centering an image in Affinity so that it didn't conflict with image resizing. As it is my images in the main area align to the left at widest view port but for some reason center themselves as the view port gets smaller. I want them centered at all view ports.
Centering image in Affinity
(2 posts) (1 voice)-
Posted 9 years ago
-
Ok it looks like I solved it by making the following changes (last 3 lines) to img.scalable
img.scalable {
height: auto !important;
width: auto !important;
max-width: 100%;
border-radius: 5px;
display: block;
margin-right: auto;
margin-left: auto;}
Posted 9 years ago
Reply
You must log in to post.