mowgli
mowgli

Reputation: 2869

Set font-family for all elements

When I have set the font-family for html, body..

How can avoid restating the font-family for buttons, input, textarea etc.?

It seems to always default to some other font than my main font-family, on those elements

Setting !important does not help

And as I understand, setting the font-family on * is not advisable

Upvotes: 0

Views: 3208

Answers (1)

JohnCH
JohnCH

Reputation: 367

You could avoid restating by simply setting them all in one go:

html,body,buttons,input,textarea,etc {
    font-family: whatever font you want;
}

That's probably the simplest way if you're not using *

Upvotes: 3

Related Questions