jeudi 8 octobre 2015

Conditional CSS. Different Colors for different input text

I am using the below code to format the buttons. Is there a way to format "0" in black color and "x" in a different color in this Tic Tac Toe game played against computer.

input[type='button'] {
    border : 3px solid #262626;
    cursor: pointer;
    background-color: #ffffff;
    color: #FF0066;
    padding : 3px;
    font-size: 30px;
    font-weight: bold;
    font-family:Papyrus,fantasy;
}

Aucun commentaire:

Enregistrer un commentaire