FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 16 users online :: 0 Registered, 0 Hidden and 16 Guests

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

Add Signature Resizing To Your Forum

View previous topic View next topic Go down

Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12004
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur 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://i.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.

Add Signature Resizing To Your Forum Ex18

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
FrOsTyXi
New Member
Gender : Unspecified
Posts : 8
Points : 3283
Reputation : 2
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB

PostFrOsTyXi Fri 17 Apr 2015, 08:21

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

PostGuest Wed 04 Jan 2017, 11:36

What's the element involved for Edge in regards to this tuto? .signature_div img ?
Spherical
Spherical
New Member
Gender : Female
Posts : 4
Points : 2587
Reputation : 0
Language : English - Dutch
Browser : Browser : Other Forum Version : Forum Version : phpBB2
http://spherical.forumotion.com/

PostSpherical Thu 23 Feb 2017, 13:32

So easy just with CSS.

Thank you Smile
Valoish
Valoish
Graphic Designer
Gender : Female
Age : 27
Posts : 3671
Points : 7110
Reputation : 360
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
http://www.canvasforums.com https://twitter.com/Valoishx3

PostValoish Thu 23 Feb 2017, 13:48

Spherical wrote:So easy just with CSS.

Thank you Smile
Yup~ Forumotion's coding is pretty easy to edit when it comes to CSS :3
Dr Jay
Dr Jay

Gender : Male
Posts : 156
Points : 2920
Reputation : 35
Location : USA
Language : English (Native)
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Forumactif Edge
http://www.geekpolice.net

PostDr Jay Thu 23 Feb 2017, 15:53

Spherical wrote:So easy just with CSS.

Thank you Smile
You seem familiar... Have we met?
Sponsored content

PostSponsored content

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