I am looking to automatically generate margin-left in the ".card" class "style" element every time a post is entered on a page.
My jQuery version is 1.12.4
This is my idea:
If the .card CSS style has a margin-left of 0 and width of 479px, set position to 0.
Otherwise, set position with margin-left at 479px.
Else, set position with margin-left... px
Since I am new to learning JavaScript, I am seeking help by asking questions about this code.