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: Label Div/Block like input

arigoldy pro asked 3 years ago


I would like to have the same material design look. that exists on label input to a div. Floating title of a block with border, like it appear on input on focus, Would that be possible?


Grzegorz Bujański staff answered 3 years ago


If I understand correctly you want to have a div that will have a label similar to our inputs?

It is possible to achieve such an effect, but we are not planning to add such a component at the moment. In our inputs, it is quite complicated logic requiring a lot of JS code. You can analyze this code and try to create your own solution based on it.

Below, I send you a snippet with the simplest solution you can use: https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/3390400#css-tab-view


arigoldy pro commented 3 years ago

Thank you,

Yes you understood correctly.



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: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No