You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What specific section or headline is this issue about?
Active learning: building a form structure
What information was incorrect, unhelpful, or incomplete?
The screenshot showing what the result of building the form described in steps 1-8 should look like does not match the final result. The final result does match the form shown on the page that loads when the "running live" link is clicked. However, the final result appears to be a poorly designed form with the labels and asterisk in incorrect positions. The problem appears to be the following CSS code that was provided:
This bit of CSS is making both the labels and asterisks 120 pixels wide and aligned right, causing them to be in awkward positions. Changing this CSS code to the following looks much better:
At the very least, please fix the screenshot to match what the final form actually looks like with the provided code, so it doesn't look like the results of following the tutorial are wrong. However, changing the CSS so only the spans that are direct children of labels are 120px wide and aligned left makes the form look much better, so consider changing that too and updating the "running live" page.
What did you expect to see?
I expected for my final results to match the screenshot shown. The final results did not match, so I thought I may have made a mistake following the tutorial. However, when I clicked the link to see the live version of the form, it and my results matched. Although, there are still some issues regarding how the CSS is styling the form that should be addressed as well.
Do you have any supporting links, references, or citations?
It looks like what's happening here is that the "screenshot" is actually the result of scooping up all the code fragments in that section and sticking them inside an iframe, using the EmbedLiveSample macro. This code attempts to include CSS:
<link href="payment-form.css" rel="stylesheet" />
...but that doesn't work in the EmbedLiveSample system, and as a result the "screenshot" does not get any styling at all.
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/Forms/How_to_structure_a_web_form
What specific section or headline is this issue about?
Active learning: building a form structure
What information was incorrect, unhelpful, or incomplete?
The screenshot showing what the result of building the form described in steps 1-8 should look like does not match the final result. The final result does match the form shown on the page that loads when the "running live" link is clicked. However, the final result appears to be a poorly designed form with the labels and asterisk in incorrect positions. The problem appears to be the following CSS code that was provided:
This bit of CSS is making both the labels and asterisks 120 pixels wide and aligned right, causing them to be in awkward positions. Changing this CSS code to the following looks much better:
At the very least, please fix the screenshot to match what the final form actually looks like with the provided code, so it doesn't look like the results of following the tutorial are wrong. However, changing the CSS so only the spans that are direct children of labels are 120px wide and aligned left makes the form look much better, so consider changing that too and updating the "running live" page.
What did you expect to see?
I expected for my final results to match the screenshot shown. The final results did not match, so I thought I may have made a mistake following the tutorial. However, when I clicked the link to see the live version of the form, it and my results matched. Although, there are still some issues regarding how the CSS is styling the form that should be addressed as well.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/learn/forms/how_to_structure_a_web_form
The text was updated successfully, but these errors were encountered: