Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: How can i set a background-color for input-fields with readonly

punchbyte_boot premium asked 3 years ago


Expected behavior

We wish to get input-fields (type text) with "readonly" with grey background

Actual behavior

Input-Fields have a white background

Resources (screenshots, code snippets etc.)

.md-form.input-group .form-control:readonly {background-color: #00000;}


Marcin Luczak staff answered 3 years ago


Hi,

If you would like to change general background behavior of the input element you can check our documentation. For specific input change please check my snippet

Keep coding, Marcin from MDB



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: MDB4 4.19.2
  • Device: PC
  • Browser: Google Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No