Jump to content

Recommended Posts

  • Administrators
Posted

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.

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...