forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: ziolko on November 22, 2003, 08:30:58 pm

Title: Smileys
Post by: ziolko on November 22, 2003, 08:30:58 pm
Hello.

Ive changed smileys to non standard, some of them are not 15x15 images, but they are displayed as 15x15 and it sux.
Actually Im trying to modify smileys.inc.php
Quote
<td width="5%"><a href="javascript:emoticon_' . $form . '(\'' . $smiley[0] . '\')"><img src="images/smiles/' . $smiley[1] . '" alt="' . $caption . '" width="15" height="15" border="0" title="' . $caption . '"></a></td>
When I change width and height to "100%" smileys are not displayed at all.
Anybody knows how to fix it ?

--
Sorry for my English.
Title: Smileys
Post by: ziolko on November 22, 2003, 10:37:39 pm
:D  Problem solved by deleting "width=" "height="
Title: Smileys
Post by: Joachim Müller on November 23, 2003, 02:02:42 am
width and height attributes in <img>-tags can never be "%", they're always numbers (in pixels). You can only specify % values in tables (and in fact some other html tags as well). If your smileys are all the same size, you should have the width and height attributes, makes your page look nicer during loading (and is more standards compliant as well).
[This statement does of course not only apply to coppermine, as it's html-related]

GauGau
Title: Re: Smileys
Post by: LeaX on November 17, 2007, 03:20:17 pm
And what if they'are of different size? (though not big at all - about 21*20, 23*20, 26*20?
So what should I do to make each of them look good?
Title: Re: Smileys
Post by: LeaX on November 17, 2007, 03:33:09 pm
Oh I've got it so no need to explain.
Title: Re: Smileys
Post by: LeaX on November 17, 2007, 03:35:08 pm
Though here it is a very good pack of mini smiles for a gallery.
They're really cool.
I wish they were here in this forum.
Title: Re: Smileys
Post by: François Keller on November 17, 2007, 03:51:40 pm
@leaX
your posts have nothin to do with this very old post.
Please next time post in the right board.
locking this thread