mercredi 4 novembre 2015

What I am do wrong? CSS input type file and submit

What I do wrong? Why two button not in one line? Why submit button below to 1 px than file button.

I am using Google Chrome desktop. In desktop browser this is not good. In mobile Google chrome browser this is good look. Why? What I must to write in CSS to see it in other browsers good look.

http://ift.tt/1l7vvab

<input type="file"><input type="submit"value="SUBMIT">

*
{
    margin:0;
    padding:0;
}
input[type=file],input[type=submit]
{
    background:#ff0;
    border:1px solid #f00;
    padding:4px;
    height:20px;
    line-height:20px;
}
input[type=submit]
{
    height:30px;
    line-height:20px;
}

Thanks.

Aucun commentaire:

Enregistrer un commentaire