1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Limiting total signature size

Discussion in 'XenForo Questions and Support' started by lukeer31, Aug 11, 2013.

  1. lukeer31

    lukeer31 Member

    Hi there, i have been attempting to limit the signature size on my forums, however it has need been working.
    In my EXTRA.css template i have added the following
    .message .signature{
    max-height: 150px !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    .message .signature .bbCodeImage {
    max-height: 100px !important;
    max-width: 200px !important;
    However it does not limit the size, signatures can still be huge as normal, which is what i am trying to stop. Any help would be much appreciated.
  2. Jeremy

    Jeremy Well-Known Member

    Have you tried the new signature permissions in 1.2?
  3. Brogan

    Brogan XenForo Moderator Staff Member

    The CSS is different in 1.2.


    How can I limit the size of images in signatures?
    Add this to the EXTRA.css template:
    .signature.messageText img {
    max-width: 200px;
    Adjust the size to suit, or substitute for a percentage.
    Note that the images will still zoom to full size when clicked. To prevent that append the max-width with !important, for example max-width: 200px !important;.
    Jeremy likes this.
  4. lukeer31

    lukeer31 Member

    Thank you! What about if i just wanted to limit the size of the entire signature? Would it be something like this?
    .signature.messageText  {
    max-height: 150px;
    max-width: 200px;

    I just tried adding the given code to the EXTRA.css template and it did not have any affect, not sure what i did wrong. However i have now used the signature limits to limit the amount of rubbish people can fill their signatures with, i would like like the image size limit however
    Last edited: Aug 11, 2013
  5. Breixo

    Breixo Active Member

    Needs an extra img
    It should work ;)
  6. taylor_smith

    taylor_smith Well-Known Member

    I'm using this:

    /*Limiting image sizes in signatures*/
    <xen:if is="@enableResponsive">
        @media (min-width:700px) {
            .signature.messageText img {
            max-height: 150px !important;
            max-width: 600px !important;
        @media (min-width:481px) {
            .signature.messageText img {
            max-height: 150px !important;
    It's not working. See: http://noobist.com/community/threads/seeking-a-new-microphone.2255/

Share This Page