sij
sij

Reputation: 1347

label for attribute changes color of label

I used 'for' attribute in label tag in HTML but using that made my lable look grey rather than default black help me to make this black uniformly without using any inline style or giving any special class attribute in each label.

Upvotes: 0

Views: 30062

Answers (1)

Mr Meow
Mr Meow

Reputation: 362

You could just change the style all labels.

label {
color: #000; /* makes the text-black */
}

of you can make it more specific...

#form-id-here label {
color:#000;
}

That way you can change the labels for a certain form only.

Upvotes: 2

Related Questions