Does anyone have “css only” tips or a link to a tutorial on how to change the content of a label when a radio button is checked?
I have it working on a checkbox see the last multiple choice question. But the same css does not work for a radio button.
All the tests are working but I haven’t hit submit yet. I tried to do this with flex columns and rows but it took me ages to get it working. It looks ‘ok’ on a large screen and Samsung Galaxy mobile not sure about other phones or tablets. Any feedback on possible layout or readability issues would be appreciated.
Your form looks good @Martin_Donohoe. Some things to revisit;
Codepen provides the boilerplate for you. It only expects the code you’d put within the body element in HTML. (No need to include the body tags). For anything you want to add to the <head> element click on the ‘Settings’ button, then HTML and add it into the ‘Stuff for <head>’ box.
Hint: Instead of using <br> elements to have each inline element on a new line, use or set container elements to be block-level elements so they’ll each take up the full width.
Thanks for the tip . I used the span element and used the tooltip hover to trigger a class called block.
This has just helped me to understand why the unordered list was breaking the hidden tooltip text. It is a block element. The start point of the tooltip text is inline text.
To temporarily hide the list I could have changed its display to inline then use the hover action to reset it to display block.
Unfortunatly I wasted an hour or two last night before I saw your tip.