ich habe da noch eine zweite idee!

marco789

New Member
License Active
wie währe es, wenn man noch ein pokal vergibt für den ersten und zweiten und dritten platzt?
pokal.jpg
so in der art vielleicht????
 

Basti

Administrator
Staff member
Es gibt ein tag in den files, {$rank}
In the table_* dateien mach dir ein element
HTML:
<span id="rank-icon-{$rank}"></span>
Mit css ziele auf diese 3 id's
CSS:
#rank-icon-1 {
    background-image: ('img/trophy-1.png');
    width: 30px;
    height: 40px;
}
Wiederhole das fuer #rank-icon-2 und #rank-icon-3 und passe die pfad/datei namen an und width/height halt so gross wie das bild ist
 

marco789

New Member
License Active
geht nicht ???

habe: <span id="rank-icon-{$rank}"></span> in table_top_row.html eingefügt!


tablerow.jpg

dann in user.css eingefügt:
usercss.jpg

warum geht das nicht??? mache ich was verkehrt?
 

Mark

Administrator
Staff member
span is inline element, so you may need to make it inline-block. Also you are mssing the url segment on your background-image declaration

this should work:
Code:
background-image: url('/skins/default/images/pokal1.png');
width: 100px;
height: 174px;
display: inline-block;
 
Last edited:

Basti

Administrator
Staff member
oh yea i forgot inline block and the most important "url" bit :D
p.s, no need for full img path, just images/pokal1.png is enough, never input full urls, can easy become a nightmare if you change domains, or skin etc
 
Top