.card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);…
- User
.card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 200px; height: 300px; background-color: #fff; border: 2px solid #000; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px; }
.card .card-name { font-size: 18px; font-weight: bold; text-align: center; }
.card .card-seduction { font-size: 24px; color: red; }
.card .card-power { font-size: 14px; text-align: center; }
.small-card { width: 70px; height: 100px; background-color: #fff; border: 2px solid #000; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px; }
.small-card .card-name { font-size: 8px; font-weight: bold; text-align: center; }
.small-card .card-seduction { font-size: 8px; color: red; }
.small-card .card-power { font-size: 5px; text-align: center; }
Je voudrais changer le css des cartes de mon jeu de cartes. Le titre (card-name) doit être affiché en haut à droite. En haut à gauche, il faut afficher le nombre de points de séduction (card-seduction) par dessus une image toto.png qui doit être coloriée en rouge
- Assistant
- User
comment coloriser en rouge une image toto.png à l'origine en noir sur fond transparent
- Assistant