FM Themes
Welcome to FM Themes
where you can share your punBB, phpBB 2, Invision, & phpBB 3 themes for Forumotion forums.

You are viewing the forum as a guest, so you will not be able to use the full forum. To use all the features of the forum, you need to log in or create a FREE account by registering.

Add Signature Resizing To Your Forum

View previous topic View next topic Go down

Add Signature Resizing To Your Forum

Post by Ange Tuteur on Wed Oct 09, 2013 7:47 pm

Add Signature Resizing To Your Forum

This tutorial will help you set up a Signature Resize for your forum using CSS. This prevents large images from stretching or otherwise breaking your forum.

Example: [You must be registered and logged in to see this link.]

Identifying Forum Version

First thing we need to do is find the CSS code for your forum version. Each version except bb2&3 have different selectors. To check your forum version navigate to..
Administration Panel > Display > Skins > Choose a theme > Version

Find General and look to Change version that will display your current version.

Installing CSS

Now that you know your forum version we can install the resize CSS for your forum. Find the correct CSS code for your forum version and navigate to..
Administration Panel > Display > Pictures and Colors > Colors > CSS stylesheet

Paste this in your CSS if your forum version is phpbb2 or phpbb3:
Code:
.signature_div img{
max-width: 500px !important;
max-height: 200px !important;
}
Paste this in your CSS if your forum version is punbb:
Code:
.sig-content img{
max-width: 500px !important;
max-height: 200px !important;
}
Paste this in your CSS if your forum version is invision:
Code:
div.signature_div img{
max-width: 500px !important;
max-height: 200px !important;
}
Once you have pasted the code in your CSS be sure to submit it to save the changes. If you've done the recent steps correctly your forum should now resize images larger than 500px width or 200px height. You can modify the size if you want images to be smaller or larger. Read Explanation for more information on the properties used in this tutorial.

Explanation

max-width: Sets the maximum width for an element.
max-height: Sets the maximum height for an element.
min-width: Sets the minimum width for an element.
min-height: Sets the minimum height for an element.
width: Sets the width for an element.
height: Sets the height for an element.

All properties above can be defined in px, cm, %, ect..  

auto: The height and width are automatically set depending on the element contents.
inherit: The height and width are inherited from the parent element.

Using the above you can put together quite a unique signature resizer. You can also use :hover to increase the size when the mouse is hovered over the image. Thanks for reading and good luck with your forum! Wink

Useful Reading


[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]

Tutorial written by [You must be registered and logged in to see this link.]
No reproduction possible without my consent.

Ange Tuteur
Themer

Reputation : 204
Points : 9162
Posts : 303

View user profile http://fmdesign.forumotion.com/

Back to top Go down

Re: Add Signature Resizing To Your Forum

Post by SLGray on Thu Oct 10, 2013 10:07 am

Tutorial Approved

SLGray
Administrator

Reputation : 294
Points : 1597
Posts : 3723

View user profile http://fmthemes.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum