cfitz619 Posted January 28, 2022 Report Share Posted January 28, 2022 Hello. How do I center the rank image in my profile? Right now it runs off the page. I have been looking for a solution to this problem but have not found one. Thanks. Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted January 28, 2022 Administrators Report Share Posted January 28, 2022 Find the template file that displays that image and alter the html code to center and/or resize the image to fit the space you want it in. It appears the image is too large for the space and that is why it is overflowing the right side. Quote Link to comment Share on other sites More sharing options...
cfitz619 Posted January 28, 2022 Author Report Share Posted January 28, 2022 Ok, Thanks. Quote Link to comment Share on other sites More sharing options...
cfitz619 Posted January 28, 2022 Author Report Share Posted January 28, 2022 This is the line in question. I want to center the rank image. <img src="<?php echo $userinfo->rankimage?>"" /> Tried playing with it for a bit, but can't get it to center. Thanks. Quote Link to comment Share on other sites More sharing options...
DisposableHero Posted January 28, 2022 Report Share Posted January 28, 2022 It is basic html img tag usage, below link may help https://www.w3schools.com/tags/tag_img.asp If it is in a division or in a table cell, defining the width as percentage may help. Like making it <img src="..." width="90%" height="auto"> or maybe other styling tags can be used instead of pure html ones. In the end, in your example code, phpvms is responsible for providing the image url (src="...") and it works, rest is skinning or html styling. Good luck Quote Link to comment Share on other sites More sharing options...
cfitz619 Posted January 29, 2022 Author Report Share Posted January 29, 2022 Thanks for the help. It is greatly appreciated. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.