Topic: Label Div/Block like input

arigoldy pro asked 2 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 2 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:

arigoldy pro commented 2 years ago

Thank you,

Yes you understood correctly.

Please insert min. 20 characters.


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



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