When developing a Lightning web component, which setting displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on tables-size and desktop-size screens?
The Correct answer should be B. Displays in one column on phones and in two columns on tablets, desktops" So we need: Full width on phones → small-device-size="12" Half width on larger screens → size="6"
Selected Answer: B
If you specify the size and smallDeviceSize attributes, the size attribute applies to small mobile phones, and the smallDeviceSize applies to smart phones. The sizing attributes are additive and apply to devices of the specified size and larger. For example, if you set mediumDeviceSize=10 and don't set largeDeviceSize, then mediumDeviceSize applies to tablets, desktops, and larger devices. You'd also have to set size to apply to devices smaller than tablets.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
igris01
1 month agodasabhisek404
1 year agoFriedConsole2000
1 year, 5 months agoamm12345
1 year, 9 months agoAppleDash
2 years, 5 months ago