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 8633549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:30:37+00:00 2026-06-12T09:30:37+00:00

In Google Chrome, <input type=color> creates an input with a big bar of color

  • 0

In Google Chrome, <input type="color"> creates an input with a big bar of color inside it and by default, opens a colorpicker (looks like it’s OS dependent, mine has a Windows skin). I’m using a custom colorpicker globally that hooks into type="color" which looks like this in most browsers:

text input with colored borders

But in Chrome it looks like this:

solid colored bar with padding and a colored border

If you’ve never seen it before, a bare-bones one looks like this (Windows 7 64bit Google Chrome Version 22.0.1229.79 m):

enter image description here

The custom colorpicker overrides the default one just fine, but the problem is the way it’s displayed in Chrome. Another problem is that I can’t seem to clear the value (have tried js), the default value is always #000000 and can’t be set to an empty one.

It may or may not be true that if I don’t want this behavior I shouldn’t use type="color", but sometimes I find Chrome’s UI a little too aggressive. Changing all the input types is not something I look forward to, and I’m not positive what else the app is doing with them so I could end up breaking something else. I’ve had similar issues with date pickers.

Is there any way to change this behavior in Chrome so I can have a normal text-like field? JavaScript/jQuery is an option, but if it can be done with CSS -webkit rules somehow that would be great.

  • 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-12T09:30:38+00:00Added an answer on June 12, 2026 at 9:30 am

    You should not use type=color in this case. According to the standard, input[type=color] can’t have an empty value.

    If the value of the element is a valid simple color, then set it to the value of the element converted to ASCII lowercase; otherwise, set it to the string “#000000”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following markup: <input type=number max=99 /> In Google Chrome (and possibly
Google Chrome is acting buggy using border-radius, background color, and top and bottom borders.
While using Google chrome if I shut down it unexpectedly. like turn of pc
I am making a Google Chrome extension and I would like to have my
Using this code, user won't enter numeric value. In Google Chrome, input box is
Google Chrome now, and Opera before, shows a spin box control beside a input
Why doesn't initial page focus doesn't change input field to Green on Google Chrome?
When using a form with many text input, WebKit/Safari/Google Chrome submits the form when
Is there any way to extend browsers (e.g., Google Chrome) to handle input events
My code: $('input').hide().show(10000); I have tested the jsFiddle with Google Chrome 14 on Windows

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.