PDA

View Full Version : The "sig size" hack


Geometric-sama
October 14th, 2005, 07:26 AM
There's a problem with it. It puts your sig into a sized div layer, regardless of how long it is. So when you have a small sig, like mine at the moment, even if it doesn't fill up the height it still displays a big blank space. Can you modify it to get rid of that?

Haraken
October 14th, 2005, 08:18 AM
If you have a CSS recommendation to help it, forward it to Kwesi. I can't find where he put the darn limit. Or, type/SMS me the coding.

Geometric-sama
October 15th, 2005, 04:08 AM
Not a clue. Can you calculate the height of the sig and use an if statement?

Master Kwesi Nkromah
October 15th, 2005, 04:21 AM
Lol.. not that I know of.. I don't think it's even possible for a divison to flex then scroll. I don't know, but i'll look it up for ya.

Geometric-sama
October 15th, 2005, 04:31 AM
Cool, thanks :P. The best way I know of doing it is with Javascript, but that still poses the problem of calculating the sig height. I'll think on it. I'm sure there's a way.

Edit: Ty, who apparently wrote the code, tells me that it should use the max-height instead of height property. However, max-height doesn't work in IE... stupid IE.

Haraken
October 15th, 2005, 04:39 AM
"Brains 'n' Brawns with Signature Limiter" should feature the max-height, but I don't think you like Max. XD

Master Kwesi Nkromah
October 15th, 2005, 04:50 AM
Yah Know, max-height just might work. Ive tried it in mozilla's applications and I'll try it in oprea (my new fav browser) and ie.

Geometric-sama
October 15th, 2005, 04:54 AM
Apparently it works in Mozilla/Netscape and Opera, but not with IE.

Master Kwesi Nkromah
October 15th, 2005, 05:07 AM
Yeah, I see.. erhh I’m tired, try experimenting with the !important tag. it specifies that one tag should take precedence over another. All browsers understand this except IE. My idea was to create two rules for the sig limiter, one for ie specified normally, and one of the other browsers using the !important tag. This way, all the other browsers would know what to do, while IE will just display the default.

Rukario
October 15th, 2005, 05:25 AM
"commonly know as" or "i.e." IE is dumb

Geometric-sama
October 15th, 2005, 05:26 AM
Kwesi, I think your !important flag idea is probably the best to go with ^^;.

Stevie-kun, I agree COMPLETELY.

Kylie-chan
October 17th, 2005, 08:33 AM
Steve, that didn't even make sense... we're talking about Internet Explorer, not the abbreviation o_O

Geometric-sama
October 18th, 2005, 07:43 AM
He meant that IE is a stupid browser.

And Kwesi, I just realised your thing won't work, because even if you set max-height to take precedence it doesn't negate the effect of height. o_O