lundi 27 février 2017

HTML set label width in css?

How does one set a label width for all labels?

CSS:

label {
    width: 180px;
}

HTML:

<label for = "customerName">Name:</label><input type = "text" name = "customerName" required><br>

but the label is "Name:" length. I expected that the label will be 180px wide. It's the same width whether the css code exists or not.




Aucun commentaire:

Enregistrer un commentaire