Help with replace images

edited August 2009 in Style Development
Alright. Im writing a style for ogame.org, and some planets have same images so how you can create an code of custom image for each planet with different image?

so this is the main code atm: (mind you this is in a table, no div tags at all)



Mani Einn (Moon)







free







Asgardr



free

Jotunheimr




free



Midgardr



free


Muspellsheimr



free




Nidavellir



free

Niflheimr



free




Svartalfaheimr



free


Vanaheimr



free


Thanks

Comments

  • edited August 2009
    #Niflheimr {
    img[src$="s_dschjungelplanet03.jpg"]{
    height:90px!important;padding-left:90px!important;
    background-image:url("newimage.jpg")!important;width:0!important}
    }

    That's the code i try but it's not work =[
Sign In or Register to comment.