forum.coppermine-gallery.net
Support => Older/other versions => cpg1.2 Standalone Support => Topic started 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
<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.
-
:D Problem solved by deleting "width=" "height="
-
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
-
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?
-
Oh I've got it so no need to explain.
-
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.
-
@leaX
your posts have nothin to do with this very old post.
Please next time post in the right board.
locking this thread