Checkbox Label with long text


Topic: Checkbox Label with long text

MrSchizo pro asked 4 years ago

Expected behavior

If a checkbox with a long label text is used I would expect the label text to align with the checkbox, but it doesn't if the label text is to long. How can I fix this?

Actual behavior

A whitspace is added if the text is to long

Resources (screenshots, code snippets etc.)

I created a snippet for that:

https://mdbootstrap.com/snippets/standard/mrschizo/3047781


Dawid Wajszczuk staff answered 4 years ago

Hi,

Thanks for the snippet. Adding d-block class to the long label should fix it. If not try d-flex.

Keep coding,
Dawid


MrSchizo pro answered 4 years ago

Worked. thx for the tip


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.5.1
  • Device: Computer
  • Browser: Firefox
  • OS: Linux
  • Provided sample code: No
  • Provided link: Yes
Tags