indenting Button Text

Gabby

Well-known member
Hello,
Just a quicky.

I made a custom login button but had to indent the text some.

I deleted the "align center" and used this code. text-indent: 5em;

It worked well but worried if this is ok to use ? I just don't want to screw up my templates.

I found the indent code online and even though it works great, I have no idea if it's the right code or not?

Thank you! :)
 
Easiest way to test it is to change your resolution, preferably to a different aspect ratio. As you used em, it should display correctly on most resolutions, but I think it also depends on how the button sizes are defined.
 
Look at how the button is sized, if it is fixed (px) you can just use px to indent as well, it will display the same on all screens, assuming it doesn't use any js to resize to fit screen.
 
Top Bottom