News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Limit signature hieight

Started by ExistenZ, May 22, 2006, 10:02:42 AM

Previous topic - Next topic

ExistenZ

Can someone create a mod that will limit the signature hight the max hight that the signature may be) to a specified unit in pixels? For instance, 200 pixels, etc.
Regards,
Andre

stevross


PrizeLive.com

I could use it also!

Any takers?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

jacortina

You might be able to control this by specifying a height (or max-height for browsers that support it) in the style.css for the theme you're using for the .signature element.

Scubasteve

Quote from: jacortina on July 27, 2006, 02:11:58 PM
You might be able to control this by specifying a height (or max-height for browsers that support it) in the style.css for the theme you're using for the .signature element.


Bingo. It's as simple as that, edite the CSS in this spot here:


/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
   width: 100%;
   overflow: auto;
   padding-bottom: 3px;
   line-height: 1.3em;
   max-height: 200px;
}
If it aint broke, break it.

1MileCrash

and it only works in firefox..
The only thing php can't do is tell you how much milk is left in the fridge.



PrizeLive.com

Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

jacortina

Quote from: SurfExcelerator.com on July 27, 2006, 02:48:31 PM
Quote from: Tippmaster on July 27, 2006, 02:47:57 PM
and it only works in firefox..

Why won't it work in IE?

Ask MS why they don't support max-height. As noted in my reply,
that would only work in browsers which support it.

I believe that the height attribute is supported by all, though that
would mean even smaller sigs would be given the specified amount.

1MileCrash

Exactly. Firefox is the only browser that supports max height. Using plain old "height" would make all signatures that tall, even if they are one line.

Advanced signature controls are being worked on.
The only thing php can't do is tell you how much milk is left in the fridge.



Advertisement: