mardi 14 juin 2016

Create input type="button" with two lines of text for newer version of chrome

I am trying to make an input button with two lines of words, but the newer versions of chrome are not letting me, here is what I have tried:

Carriage Return Separators

<input type="button" value="Line One&#13;&#10;Line Two"/>

<input type="submit" value="Line OnernLine Two">

I know you can use white-space: normal; but this will not let you <br> where you want it to.

input[type="submit"] {
    white-space: normal;
}

Is there a way that I can add the new line in the button where I choose?

i.e.

line one

line two

Aucun commentaire:

Enregistrer un commentaire