Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9201181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:56:39+00:00 2026-06-17T22:56:39+00:00

I am trying to override the font of all headers, input, select, text area

  • 0

I am trying to override the font of all headers, input, select, text area and input placeholders on my site with the following code:

h1, h2, h3, h4, h5, h6,
button, input, select, textarea,
:-ms-input-placeholder,
::-moz-placeholder,
:-moz-placeholder,
::-webkit-input-placeholder {
    font-family:some font name;
}

The problem is, for some reason it isn’t working on Chrome. If I delete the :-moz and :-ms references, then chrome works fine, which leads me to believe that Chrome doesn’t like pseudo-classes for some reason? I’m stumped, because I can’t see why pseudo-classes that have nothing to do with Chrome would make it not work!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:56:40+00:00Added an answer on June 17, 2026 at 10:56 pm

    You need to make separate declarations for it to work in all browsers, otherwise a conflict will cause undesired results like this.

    h1, h2, h3, h4, h5, h6,
    button, input, select, textarea {
        font-family: somefont;
    }
    ::-webkit-input-placeholder {
        font-family: somefont;
    }
    :-moz-placeholder {
        font-family: somefont;
    }
    ::-moz-placeholder {
        font-family: somefont;
    }
    :-ms-input-placeholder {
        font-family: somefont;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to recreate the following font style in code: Upon looking closely, you
I am trying to display arabic text with custom font. my code is as
Where should I put this code Button txt = (Button) findViewById(R.id.button1); Typeface font =
<string name=no_city><font color='#FF0000'><b>Please select your location under Preferences in the menu</b></font> </string> @Override public
I'm trying to override the jQuery mobile default font for my entire website. I
Trying to override a tostring in one of my classes. return string.Format(@ name =
im trying to override the add() but it will not compile public class AVLTree<E
I'm trying to override a JSP in Liferay 6.1, namely html/portlet/enterprise_admin/settings/authentication.jsp. I have created
I'm trying to override a method inside a jquery widget. The method can be
If I am trying to override a specific tag inside multiple classes, do I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.