• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Multi-line label for radio button

Resolved: Multi-line label for radio button

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I would like “This is label” text to stack right underneath the “Prefix Text”, while radio button to be aligned right next “Prefix Text”. Is it possible to get this done by updating class for div element that contains “This is label” only? I would like to keep label-container class untouched if possible as I may add icon in front of “Prefix Text” so I will need display: inline-flex to wrap them up. https://codepen.io/Judoboy/pen/OJQqPEW?editors=1100


Answer:

You can do this:
  • Wrap both Prefix Text and This is label with additional div.
  • Change align-items in .label-container class to start (you can keep display: inline-flex).



If you have better answer, please add a comment about this, thank you!

css html javascript
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How do I use SetWindowText with Unicode in Win32 using PowerShell?

01/04/2023

Resolved: Shopware 400 Status Error “This value is too long. It should have 255 character or less.” When I Try Updating Database Table

01/04/2023

Resolved: Using AWK to count multiple patterns in a file

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.