Latest topics
» Widget : Recent Members
by WinaTickets Today at 03:11

» How To Install the Code Snippet Button
by SLGray Yesterday at 20:56

» Select Button
by SLGray Yesterday at 20:25

» FM Themes
by SLGray Yesterday at 16:48

» User - Made Creations
by SLGray Yesterday at 16:48

» The Football Forums
by Mati Yesterday at 15:22

» [BUG] Avatar doesn't resize when reading the profile
by Samantha NL Yesterday at 12:33

» Search Bar Options
by Samantha NL Yesterday at 11:38

» Chit Chat Thread
by Jazeon Yesterday at 05:42

» Christmas logo
by Teo! Yesterday at 03:56

» SyncEditor
by keko_ferkeko Yesterday at 00:31

» Private message bg color
by Mr.Alam Thu 08 Dec 2016, 22:54

» Multi-step Login Form
by Samantha NL Thu 08 Dec 2016, 12:54

» Member of the Month
by Samantha NL Thu 08 Dec 2016, 12:38

» Forumactif Edge - Dutch Translation
by Samantha NL Thu 08 Dec 2016, 10:49

Recent Tutorials
Who is online?
In total there are 7 users online :: 1 Registered, 0 Hidden and 6 Guests :: 1 Bot

WinaTickets

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Add Signature Resizing To Your Forum

View previous topic View next topic Go down

Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4091
Points : 8397
Reputation : 2011
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 21 Aug 2013, 15:56

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: https://i72.servimg.com/u/f72/18/45/41/65/ex11.jpg

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, phpbb3, or invision:
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;
}

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


Tutorial written by Ange Tuteur
FrOsTyXi
New Member
Title :
Gender : Unspecified
Posts : 8
Points : 637
Reputation : 2
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB
Awards :
View all awards
View user profile

PostFrOsTyXi on Fri 17 Apr 2015, 08:21

Been looking for something like this for ages didnt know it was a simple CSS code! thank you!

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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