Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1918

Templates for Joomla! 5.x • Re: Admin Login Box Image Alignment (Atum)

$
0
0
Okay, I figured out what is happening...

It's a combination of your image size/width/ratio plus Atums CSS.

- The image space is 300x70.4px.
- The max-height, set by Atum, is 70.4px (4.4rem).
- When your image is scaled to the max height and it still exeeds 300px width, your image breaks out of the logo container.
- The left white space is the left (and right) padding on the logo container.

All this together makes your image to appear to be aligned to the right.
(You would have noticed it even more if your image had a bigger width)

How to fix?
2 options:

A. Size your image to fit within 300x70.4px (or a multiple of that i.e. 600x140.8px etc.)
or
B. Add a little bit of CSS to Atums user.css

Scale your image to fit

Code:

.view-login .login img,.task-logout .login img {  height: auto;  max-width: 100%}
Optional: Remove left/right padding of logo container, if you like to line the edges of your image with the form fields

Code:

.view-login .login .logo,.task-logout .login .logo {padding-inline: 0;}

Statistics: Posted by Mr. Wimpy — Sun Dec 15, 2024 11:40 am



Viewing all articles
Browse latest Browse all 1918

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>