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!

incutoStaff free asked 5 years ago


I have added height 100% to .stepper li a this strikes me as a good universal change to ensure stepper numbers stay level even when the text over runs. I can't see a down side. What do you think? (red lines are just for illustration purposes).

Unchanged: enter image description here

height 100%:

enter image description here


MDBootstrap staff answered 5 years ago


Hi incutoStaff,

Thanks for your contribution. Your example looks nice and will probably serve you well. I assume you wanted to suggest changing its default value of our package. Well, You can modify how certain MDB component looks at your will and changing default height value of this element could be misleading for some developers. Because you can add content to all these steps some developers might want to make one "step number" bigger or smaller. There are plenty of possibilities and as you can see some are effective and easy to implement like your height: 100% on a. I suggest adding class to an "a" and style the class instead of plain element value becouse this is a good practice.

I am sure some people looking for this example will find your post helpful.

Best Regards, Piotr



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: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: all
  • Browser: chrome
  • OS: OS Mojave
  • Provided sample code: Yes
  • Provided link: No