I am designing the header of an invoice
I want the logo to be displayed on the far top right, regardless of its width. And the dimensions should be max width of 200 and max height of 80, which are the dimensions that I set for the element image.
If the logo is wide, it works perfectly (see example B below). The problem is that if the logo is square, it will center align in this container (see example A below). What I want is that if a logo is square, it will be displayed as in example C below (i.e. right aligned) and I canât design the containers such that the logo is always right aligned, regardless of whether the logo is wide or square.
image
Some more info on the containers:
black outline: group row
green outline: group column, infinite width
red outline: image, width min=0, max=200, height=80
Iâve tried including the image in a parent container and applying âfit width to contentâ to that parent container but the logo is not displayed anymore at all, see below:
Just to clarify, itâs the user (not me) that uploads their logo so I want to make it such that regardless of the logo they upload, it be right aligned.
Create a container that is a row. Put the another container in that and make it a column. In the column container put your text elements. Then in the row container add the image element. Set the row container alignment property to be spread as far apart as possible (I forget the terminology in the editor but it is the last option in the set of 5 choices)
I think youâre referring to the space between alignment property
I followed your suggestions but as you can see, while the coca cola logo is right aligned, the square logo is still centered aligned in the image element. Did I miss something?
Hereâs a link to the editor:
Your image element itself needs settings on itâs width to âfit width to contentâ likely so that the image element itself doesnât stretch itâs width as it does in the second logo.
Unfortunately, I havenât found a solution. @boston85719 suggested to use the setting âfit width to contentâ on the image element but that setting does not exist. And @S2294 suggested to use a group element and set the background to be of image type but that does not solve the issue outlined in this post either.