I have been trying to align the final item on the right side using margin-left: auto
. The desired output is achieved in jsfiddle. I am using Visual Studio Code with the same code, but when viewed in Firefox, Chrome, or Edge, the item does not appear on the right side as expected. What could be causing this discrepancy?
Link to jsfiddle for reference
Screenshot of how it appears on Firefox Browser
The issue lies in the inconsistency between how it displays in the browser compared to the jsfiddle version, even though the code used is identical.